LTL
2.0.x
|
Implementation of an OptionReader for config file processing. More...
Inherits util::OptionReader.
Public Member Functions | |
ConfigFileReader (const std::string &filename) | |
virtual | ~ConfigFileReader () |
virtual std::string | nextOptionName () |
virtual std::string | nextOptionValue (const Option *op) |
virtual bool | done () |
std::string | fileName () const |
Protected Member Functions | |
bool | nextLine () |
Protected Attributes | |
const std::string | filename_ |
bool | done_ |
std::ifstream | conffile_ |
std::string | optionname_ |
std::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 std::string & | filename | ) |
|
virtual |
|
virtual |
Implements util::OptionReader.
|
virtual |
Implements util::OptionReader.
|
virtual |
Implements util::OptionReader.
std::string util::ConfigFileReader::fileName | ( | ) | const |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |