INI File class. More...
#include <inifile.h>
Public Member Functions | |
INIFile () | |
Empty constructor. | |
bool | OpenFile (const char *const fname) |
Loads given INI file. | |
~INIFile () | |
Destructor. | |
INISection * | GetSection (const char *const name) const |
Gets pointer to requested section. | |
INISection * | operator[] (const char *const name) const |
[] operator : alias for GetSection(). | |
unsigned | GetLength () const |
INI File class.
Definition at line 15 of file inifile.h.
INIFile::INIFile | ( | ) |
Empty constructor.
Definition at line 17 of file inifile.cpp.
INIFile::~INIFile | ( | ) |
unsigned INIFile::GetLength | ( | ) | const |
Definition at line 223 of file inifile.cpp.
INISection * INIFile::GetSection | ( | const char *const | name | ) | const |
Gets pointer to requested section.
name | Name of the section to get. Must be a valid, zero terminated string. |
Definition at line 203 of file inifile.cpp.
bool INIFile::OpenFile | ( | const char *const | fname | ) |
Loads given INI file.
fname | Filename of the file to load. Must be a valid, zero terminated string. |
Definition at line 22 of file inifile.cpp.
INISection * INIFile::operator[] | ( | const char *const | name | ) | const |
[] operator : alias for GetSection().
name | Name of the section to get. Must be a valid, zero terminated string. |
Definition at line 218 of file inifile.cpp.