Alientech 0.01
An extendable game engine
C:/Alientech/AlienCargoHold/CACHFile.cpp
Go to the documentation of this file.
00001 #include "CACHFile.h"
00002 using namespace alien::utils;
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 string ACHFile::getPath()
00031 {
00032         return path;
00033 }
00034 
00035 void ACHFile::setName(string NewName)
00036 {
00037         name = NewName;
00038 }
00039 
00040 void ACHFile::setOffset(streampos NewOffset)
00041 {
00042         offset = NewOffset;
00043 }
00044 
00045 void ACHFile::setParent(ACHDirectory* NewParent)
00046 {
00047         parent = NewParent;
00048 }
00049 
00050 void ACHFile::setPath(string NewPath)
00051 {
00052         path = NewPath;
00053 }