Public Member Functions | |
ConfigurationReader (const string &configuration_path) | |
string & | getParameter (const string ¶mName) |
const char * | getCParameter (const string ¶mName) |
bool | found () |
vector< string > & | getParameterNames () |
Configuration file format:
$ParamName=ParamValue
ParamValue may be splittet over multiple lines
ParamName is not case sensitive
Comments start with # as the first character of a line
ConfigurationReader::ConfigurationReader | ( | const string & | configuration_path | ) |
Constructor
configuration_path | Path to configuration file |
References StringTools::change_case(), and StringTools::trimRight().
bool ConfigurationReader::found | ( | ) |
Referenced by highlight::LanguageDefinition::load(), and highlight::DocumentStyle::load().
const char * ConfigurationReader::getCParameter | ( | const string & | paramName | ) |
paramName | Name of parameter |
string & ConfigurationReader::getParameter | ( | const string & | paramName | ) |
paramName | Name of parameter |
Referenced by highlight::LanguageDefinition::load(), and highlight::DocumentStyle::load().
vector< string > & ConfigurationReader::getParameterNames | ( | ) |
Referenced by highlight::LanguageDefinition::load(), and highlight::DocumentStyle::load().