16 #define INI_DEFAULT_SECTION "rasystem" 18 #define INI_MAX_LENGTH 300 19 #define INI_MAX_LINES_PER_SEC 50 20 #define INI_MAX_SECTIONS 20 21 #define INI_LINE_DONTSAVE "rasystem-notsave" 30 virtual bool Open(
const char filename[]);
35 virtual int GetInt(
const char section[],
const char key[]);
36 virtual long GetLong(
const char section[],
const char key[]);
37 virtual bool GetBool(
const char section[],
const char key[]);
39 virtual raString Get(
const char section[],
const char key[]);
41 virtual void SetInt(
const char section[],
const char key[],
int newval);
42 virtual void SetLong(
const char section[],
const char key[],
long newval);
43 virtual void SetBool(
const char section[],
const char key[],
bool newval);
45 virtual void Set(
const char section[],
const char key[],
const char newval[]);
49 virtual void RemoveEntry(
const char section[],
const char key[]);
51 virtual bool ValidEntry(
const char section[],
const char key[]);
67 std::vector<raString> sectionnames;
68 std::vector<std::vector<raString> > buffer;
virtual void Set(const char section[], const char key[], const char newval[])
virtual void SetInt(const char section[], const char key[], int newval)
virtual void RemoveEntry(const char section[], const char key[])
virtual void SetBool(const char section[], const char key[], bool newval)
virtual bool Open(const char filename[])
virtual void CreateSection(const char section[])
virtual void SetLong(const char section[], const char key[], long newval)
virtual int GetInt(const char section[], const char key[])
virtual bool ValidSection(const char section[])
virtual int CountSections()
virtual void SetString(const char section[], const char key[], raString newval)
virtual raString Get(const char section[], const char key[])
virtual bool GetBool(const char section[], const char key[])
virtual int CountEntries()
virtual raString GetString(const char section[], const char key[])
virtual bool ValidEntry(const char section[], const char key[])
virtual void RemoveSection(const char section[])
virtual long GetLong(const char section[], const char key[])