Alientech 0.01
An extendable game engine
C:/Alientech/tempClone/AlienCargoHold/CACHFile.cpp
Go to the documentation of this file.
00001 #include "CACHFile.h"
00002 using namespace alien;
00003 
00004 ACHFile::ACHFile(ACHDirectory* Parent, string Name, streampos Offset, unsigned Size) : name(Name), offset(Offset), parent(Parent), size(Size)
00005 {}
00006 
00007 ACHFile::ACHFile(ACHDirectory* Parent) : parent(Parent), name(string("")), offset(0), size(0)
00008 {}
00009 
00010 string ACHFile::getName()
00011 {
00012         return name;
00013 }
00014 
00015 streampos ACHFile::getOffset()
00016 {
00017         return offset;
00018 }
00019 
00020 unsigned ACHFile::getSize()
00021 {
00022         return size;
00023 }
00024 
00025 ACHDirectory* ACHFile::getParent()
00026 {
00027         return parent;
00028 }
00029 
00030 void ACHFile::setName(string NewName)
00031 {
00032         name = NewName;
00033 }
00034 
00035 void ACHFile::setOffset(streampos NewOffset)
00036 {
00037         offset = NewOffset;
00038 }
00039 
00040 void ACHFile::setParent(ACHDirectory* NewParent)
00041 {
00042         parent = NewParent;
00043 }