ConfigurationReader Class Reference

Class to handle ASCII config files. More...

List of all members.

Public Member Functions

 ConfigurationReader (const string &configuration_path)
string & getParameter (const string &paramName)
const char * getCParameter (const string &paramName)
bool found ()
vector< string > & getParameterNames ()


Detailed Description

Class to handle ASCII config files.

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


Constructor & Destructor Documentation

ConfigurationReader::ConfigurationReader ( const string &  configuration_path  ) 

Constructor

Parameters:
configuration_path Path to configuration file

References StringTools::change_case(), and StringTools::trimRight().


Member Function Documentation

bool ConfigurationReader::found (  ) 

Returns:
True if config file exists

Referenced by highlight::LanguageDefinition::load(), and highlight::DocumentStyle::load().

const char * ConfigurationReader::getCParameter ( const string &  paramName  ) 

Parameters:
paramName Name of parameter
Returns:
Value of parameter

string & ConfigurationReader::getParameter ( const string &  paramName  ) 

Parameters:
paramName Name of parameter
Returns:
Value of parameter

Referenced by highlight::LanguageDefinition::load(), and highlight::DocumentStyle::load().

vector< string > & ConfigurationReader::getParameterNames (  ) 

Returns:
List of parameter names

Referenced by highlight::LanguageDefinition::load(), and highlight::DocumentStyle::load().


The documentation for this class was generated from the following files:

Generated on Tue Oct 26 19:44:40 2010 for Highlight Code Converter by  doxygen 1.5.7.1