Ult3D
Implementation of "Ultimate 3D Game Engine Design & Architecture" by Allan Sherrod
Loading...
Searching...
No Matches
ArchiveFileHeader.h
Go to the documentation of this file.
1#ifndef ULT_ARCHIVE_FILE_HEADER_H_INCLUDED
2#define ULT_ARCHIVE_FILE_HEADER_H_INCLUDED
3
4namespace Ult
5{
6
12{
13public:
18
20 char* GetFileName() const { return (char*)mFileName; }
22 int GetSize() const { return mSize; }
24 int GetOffset() const { return mOffset; }
25
27 void SetFileName(const char* fileName);
29 void SetSize(int size) { mSize = size; }
31 void SetOffset(int offset) {mOffset = offset; }
32
34 void operator=(const ArchiveFileHeader& header);
35
36private:
37 char mFileName[256];
38 int mSize;
39 int mOffset;
40};
41
42} // namespace Ult
43
44#endif // ULT_ARCHIVE_FILE_HEADER_H_INCLUDED
45
Definition ArchiveFileHeader.h:12
void SetOffset(int offset)
Definition ArchiveFileHeader.h:31
int GetSize() const
Definition ArchiveFileHeader.h:22
void SetSize(int size)
Definition ArchiveFileHeader.h:29
ArchiveFileHeader()
Definition ArchiveFileHeader.cpp:7
void SetFileName(const char *fileName)
Definition ArchiveFileHeader.cpp:14
void operator=(const ArchiveFileHeader &header)
Definition ArchiveFileHeader.cpp:29
char * GetFileName() const
Definition ArchiveFileHeader.h:20
int GetOffset() const
Definition ArchiveFileHeader.h:24
Definition Archive.h:13