Alientech 0.01
An extendable game engine
C:/Alientech/TestWTF/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 
00007 class ACHDirectory; //forward definition to allow for parenting
00008 
00015 class ACHFile
00016 {
00017 private:
00018         string name;
00019         streampos offset;
00020         unsigned size;
00021         ACHDirectory* parent;
00022 public:
00030         ACHFile(ACHDirectory* Parent, string Name, streampos Offset, unsigned Size);
00034         ACHFile(ACHDirectory* Parent=NULL);
00035 
00037         string getName();
00038 
00040         streampos getOffset();
00041 
00043         unsigned getSize();
00044 
00046         ACHDirectory* getParent();
00047 
00051         void setName(string NewName);
00052 
00056         void setOffset(streampos NewOffset);
00057 
00061         void setParent(ACHDirectory* NewParent);
00062 };
00063 
00064 
00065 #endif //C_ACH_FILE_H