GlfRefSection.h
00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018 #ifndef __GLF_REFSECTION_H__
00019 #define __GLF_REFSECTION_H__
00020
00021 #include <stdint.h>
00022
00023 #include "InputFile.h"
00024 #include "CharBuffer.h"
00025
00026 class GlfRefSection
00027 {
00028 public:
00029 GlfRefSection();
00030 ~GlfRefSection();
00031
00032
00033 GlfRefSection(const GlfRefSection& refSection);
00034
00035
00036 GlfRefSection & operator = (const GlfRefSection& refSection);
00037
00038
00039 bool copy(const GlfRefSection& refSection);
00040
00041 void resetRefSection();
00042
00043
00044
00045 bool read(IFILE filePtr);
00046
00047
00048 bool write(IFILE filePtr) const;
00049
00051
00052
00053
00054 bool getName(std::string& name) const;
00055 uint32_t getRefLen() const;
00056
00057
00058 bool setName(const std::string& name);
00059 bool setRefLen(uint32_t refLen);
00060
00061 void print() const;
00062
00063 private:
00064
00065 CharBuffer myRefName;
00066 uint32_t myRefLen;
00067 };
00068
00069 #endif
00070