#include <configreader.h>
Public Member Functions | |
ConfigReader (bool buffer=false) | |
Constructor. | |
ConfigReader (PMString fileName, bool buffer=false) | |
Constructor. | |
~ConfigReader () | |
Destructor. | |
void | SetBuffered (bool buffer) |
Sets the buffer bool and buffers accordingly. | |
void | SetFileName (PMString fileName) |
Set the filename. | |
void | BufferReader () |
Buffer the reader. | |
PMString | GetFileName () |
Return the filename. | |
PMString | GetConfigValue (PMString variable) |
Return a config variable. | |
std::vector< PMString > | ListVariables () |
List all the variables in the reader. | |
Protected Attributes | |
bool | _buffered |
Is the reader buffered? | |
PMString | _fileName |
The filename. | |
std::vector< ConfigPair > | _configPairs |
The ConfigPairs in the reader. |
|
Constructor that just sets the buffer bool, basically does nothing.
|
|
Constructor that just sets the buffer bool and the fileName. Buffers the reader if the bool is true.
|
|
Empty Destructor. |
|
Buffer the reader.
|
|
Get the value of variable. Checks the buffer if it exists, otherwise opens the _fileName and checks in there.
|
|
Get the _fileName.
|
|
List all the variables in the reader.
|
|
Sets the value of _buffered to be buffer. Then buffers or clears the buffer, depending on the appropriate values of the bools.
|
|
Sets the fileName for the reader - buffers if _buffered is true.
|