#include <IniConfigReader.h>
Public Member Functions | |
IniConfigReader (const String &strFile) | |
Constructor. | |
~IniConfigReader () | |
Destructor. | |
DWORD | getString (const String sSection, const String sKey, const String sDefault, String &sReturn) |
This method is responsible for grabbing any string data from our ini file. | |
UINT | getInt (String sSection, String sKeyName, int) |
This method is just responsible for grabbing the UINT value from our ini file. | |
bool | getBool (const String sSection, const String sKeyName, const String sDefault) |
This method is responsible for grabbing any boolean information stored in our ini file. | |
float | getFloat (String sSection, String sKeyName, String sDefault) |
This method is responsible for grabbing any float information stored in our INI file. | |
Protected Attributes | |
String | m_strFileName |
our ini filename |
We can store anything from our wanted renderer, to our application window size, to even some basic scripting elements.
Note that this object is completely Win32-specific. It is using the GetPrivateProfile* family of API functions which I think are only available on Windows.
|
Constructor.
|
|
This method is responsible for grabbing any boolean information stored in our ini file.
|
|
This method is responsible for grabbing any float information stored in our INI file.
|
|
This method is just responsible for grabbing the UINT value from our ini file.
|
|
This method is responsible for grabbing any string data from our ini file.
|