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