#include <gmlinifile.h>
Public Member Functions | |
bool | IsSuchKeyInFile (const char *key) |
bool | IsSuchNameInThisKey (const char *key, const char *name) |
CIniFile () | |
Default constructor. | |
CIniFile (const char *inipath) | |
Constructor, can specify pathname here instead of using SetPath later. | |
virtual | ~CIniFile () |
Default destructor. | |
void | SetPath (const char *newpath) |
Sets path of ini file to read and write from. | |
bool | ReadFile () |
Reads ini file specified using CIniFile::SetPath(). | |
void | WriteFile () |
Writes data stored in class to ini file. | |
void | Reset () |
Deletes all stored ini data. | |
int | GetNumKeys () |
number of keys currently in the ini | |
int | GetNumValues (const char *keyname) |
number of values stored for specified key | |
std::string | GetValue (const char *keyname, const char *valuename) |
gets value of [keyname] valuename = | |
void | GetValue (const char *keyname, const char *valuename, char *out_pcBuf, int in_iMaxChar) |
gets value of [keyname] valuename = | |
int | GetValueI (const char *keyname, const char *valuename) |
gets value of [keyname] valuename = | |
double | GetValueF (const char *keyname, const char *valuename) |
gets value of [keyname] valuename = | |
bool | SetValue (const char *key, const char *valuename, const char *value, bool create=1) |
sets value of [keyname] valuename =. | |
bool | SetValueI (const char *key, const char *valuename, int value, bool create=1) |
sets value of [keyname] valuename =. | |
bool | SetValueF (const char *key, const char *valuename, double value, bool create=1) |
sets value of [keyname] valuename =. | |
bool | DeleteValue (const char *keyname, const char *valuename) |
deletes specified value | |
bool | DeleteKey (const char *keyname) |
deletes specified key and all values contained within | |
Public Attributes | |
std::string | error |
will contain error info if one occurs ended up not using much, just in ReadFile and GetValue |
|
Reads ini file specified using CIniFile::SetPath().
|
|
gets value of [keyname] valuename =
|
|
gets value of [keyname] valuename =
|
|
gets value of [keyname] valuename =
|
|
gets value of [keyname] valuename =
|
|
sets value of [keyname] valuename =. specify the optional paramter as false (0) if you do not want it to create the key if it doesn't exist.
|
|
sets value of [keyname] valuename =. specify the optional paramter as false (0) if you do not want it to create the key if it doesn't exist.
|
|
sets value of [keyname] valuename =. specify the optional paramter as false (0) if you do not want it to create the key if it doesn't exist.
|
|
deletes specified value
|
|
deletes specified key and all values contained within
|