Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

IFile.h

Go to the documentation of this file.
00001 // mortic - A game engine for the Expanses of Naryan.
00002 // Copyright (C) 2007  Aaron Griffith
00003 // This file is under the LGPL. See mortic.h for more information.
00004 
00006 //  ______ _ _                                                                //
00007 // |  ____(_) |                                                               //
00008 // | |__   _| | ___                                                           //
00009 // |  __| | | |/ _ \                                                          //
00010 // | |    | | |  __/                                                          //
00011 // |_|    |_|_|\___|                                                          //
00012 //                                                                            //
00013 //                                                                            //
00014 // IFile.h - Interface of File                                                //
00016 
00017 #ifndef __IFile_h_INCLUDED__
00018 #define __IFile_h_INCLUDED__
00019 
00020 #include <string>
00021 #include "IObject.h"
00022 #include "IRoot.h"
00023 
00024 namespace mortic
00025 {
00027         
00036     class IFile : public IObject
00037     {
00038     public:
00040         IFile(IRoot* root) : IObject(root, "File")
00041         { }
00042                 
00044                 
00050         virtual void close() = 0;
00051         
00053         
00059         virtual void flush() = 0;
00060                 
00062                 
00067         virtual std::string read(unsigned int size = 0) = 0;
00068         
00070         
00074         virtual void write(std::string s) = 0;
00075                 
00077                 
00080         virtual unsigned int tell() = 0;
00081         
00083         
00086         virtual void seek(unsigned int s) = 0;
00087                 
00089                 
00093         virtual bool eof() = 0;
00094         
00096         
00100         virtual bool isOpen() = 0;
00101         
00103         
00111         virtual std::string getPath() = 0;
00112     };
00113 
00114 }
00115 ; // namespace mortic
00116 #endif // __IFile_h_INCLUDED__

Generated on Sat Dec 30 21:21:59 2006 for mortic by  doxygen 1.4.4