LTL
2.0.x
|
Implementation of an OptionReader for config file processing. More...
Inherits util::OptionReader.
Public Member Functions | |
ConfigFileReader (const string &filename) | |
virtual | ~ConfigFileReader () |
virtual string | nextOptionName () throw (UException) |
virtual string | nextOptionValue (const Option *op) throw (UException) |
virtual bool | done () |
string | fileName () const |
Protected Member Functions | |
bool | nextLine () |
Protected Attributes | |
const string | filename_ |
bool | done_ |
ifstream | conffile_ |
string | optionname_ |
string | optionvalue_ |
Implementation of an OptionReader for config file processing.
Syntax of config-file must be
option = value
Value must be of proper type. After '#' (comment indicator) rest of line will be ignored.
util::ConfigFileReader::ConfigFileReader | ( | const string & | filename | ) |
|
virtual |
|
virtual |
Implements util::OptionReader.
|
virtual |
Implements util::OptionReader.
|
virtual |
Implements util::OptionReader.
string util::ConfigFileReader::fileName | ( | ) | const |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |