Alientech 0.01
An extendable game engine
C:/Alientech/tempClone/AlienCargoHold/CACHFile.h
Go to the documentation of this file.
00001 #ifndef C_ACH_FILE_H
00002 #define C_ACH_FILE_H
00003 #include <string>
00004 using namespace std;
00005 
00006 namespace alien
00007 {
00008         class ACHDirectory; //forward definition to allow for parenting
00009 
00016         class ACHFile
00017         {
00018         private:
00019                 string name;
00020                 streampos offset;
00021                 unsigned size;
00022                 ACHDirectory* parent;
00023         public:
00031                 ACHFile(ACHDirectory* Parent, string Name, streampos Offset, unsigned Size);
00035                 ACHFile(ACHDirectory* Parent=NULL);
00036 
00038                 string getName();
00039 
00041                 streampos getOffset();
00042 
00044                 unsigned getSize();
00045 
00047                 ACHDirectory* getParent();
00048 
00052                 void setName(string NewName);
00053 
00057                 void setOffset(streampos NewOffset);
00058 
00062                 void setParent(ACHDirectory* NewParent);
00063         };
00064 }
00065 
00066 #endif //C_ACH_FILE_H