#include <confparser.h>
|
| | ConfigFile (string filename, string delimiter="=", string comment="#", string sentry="EndConfigFile") |
| |
| | ConfigFile () |
| |
| template<class T > |
| T | read (const string &key) const |
| |
| template<class T > |
| T | read (const string &key, const T &value) const |
| |
| template<class T > |
| bool | readInto (T &var, const string &key) const |
| |
| template<class T > |
| bool | readInto (T &var, const string &key, const T &value) const |
| |
| template<class T > |
| void | add (string key, const T &value) |
| |
| void | remove (const string &key) |
| |
| bool | keyExists (const string &key) const |
| |
| string | getDelimiter () const |
| |
| string | getComment () const |
| |
| string | getSentry () const |
| |
| string | setDelimiter (const string &s) |
| |
| string | setComment (const string &s) |
| |
| void | saveCurrentConfig () |
| |
|
| typedef std::map< string, string >::iterator | mapi |
| |
| typedef std::map< string, string >::const_iterator | mapci |
| |
|
| template<class T > |
| static string | T_as_string (const T &t) |
| |
| template<class T > |
| static T | string_as_T (const string &s) |
| |
| static void | trim (string &s) |
| |
§ mapci
§ mapi
§ ConfigFile() [1/2]
| ConfigFile::ConfigFile |
( |
string |
filename, |
|
|
string |
delimiter = "=", |
|
|
string |
comment = "#", |
|
|
string |
sentry = "EndConfigFile" |
|
) |
| |
§ ConfigFile() [2/2]
| ConfigFile::ConfigFile |
( |
| ) |
|
§ add()
template<class T >
| void ConfigFile::add |
( |
string |
key, |
|
|
const T & |
value |
|
) |
| |
§ getComment()
| string ConfigFile::getComment |
( |
| ) |
const |
|
inline |
§ getDelimiter()
| string ConfigFile::getDelimiter |
( |
| ) |
const |
|
inline |
§ getSentry()
| string ConfigFile::getSentry |
( |
| ) |
const |
|
inline |
§ keyExists()
| bool ConfigFile::keyExists |
( |
const string & |
key | ) |
const |
§ read() [1/2]
template<class T >
| T ConfigFile::read |
( |
const string & |
key | ) |
const |
§ read() [2/2]
template<class T >
| T ConfigFile::read |
( |
const string & |
key, |
|
|
const T & |
value |
|
) |
| const |
§ readInto() [1/2]
template<class T >
| bool ConfigFile::readInto |
( |
T & |
var, |
|
|
const string & |
key |
|
) |
| const |
§ readInto() [2/2]
template<class T >
| bool ConfigFile::readInto |
( |
T & |
var, |
|
|
const string & |
key, |
|
|
const T & |
value |
|
) |
| const |
§ remove()
| void ConfigFile::remove |
( |
const string & |
key | ) |
|
§ saveCurrentConfig()
| void ConfigFile::saveCurrentConfig |
( |
| ) |
|
§ setComment()
| string ConfigFile::setComment |
( |
const string & |
s | ) |
|
|
inline |
§ setDelimiter()
| string ConfigFile::setDelimiter |
( |
const string & |
s | ) |
|
|
inline |
§ string_as_T() [1/3]
template<class T >
| T ConfigFile::string_as_T |
( |
const string & |
s | ) |
|
|
staticprotected |
§ string_as_T() [2/3]
template<>
| string ConfigFile::string_as_T |
( |
const string & |
s | ) |
|
|
inlineprotected |
§ string_as_T() [3/3]
template<>
| bool ConfigFile::string_as_T |
( |
const string & |
s | ) |
|
|
inlineprotected |
§ T_as_string()
template<class T >
| string ConfigFile::T_as_string |
( |
const T & |
t | ) |
|
|
staticprotected |
§ trim()
| void ConfigFile::trim |
( |
string & |
s | ) |
|
|
staticprotected |
§ operator<<
| std::ostream& operator<< |
( |
std::ostream & |
os, |
|
|
const ConfigFile & |
cf |
|
) |
| |
|
friend |
§ operator>>
| std::istream& operator>> |
( |
std::istream & |
is, |
|
|
ConfigFile & |
cf |
|
) |
| |
|
friend |
§ _fname
| string ConfigFile::_fname |
|
protected |
§ myComment
| string ConfigFile::myComment |
|
protected |
§ myContents
| std::map<string, string> ConfigFile::myContents |
|
protected |
§ myDelimiter
| string ConfigFile::myDelimiter |
|
protected |
§ mySentry
| string ConfigFile::mySentry |
|
protected |
The documentation for this class was generated from the following files: