#include <ConfigFile.h>
|
| template<class T > |
| void | add (string key, const T &value) |
| |
| | ConfigFile (string filename, string delimiter="=", string comment="#", string sentry="EndConfigFile") |
| |
| | ConfigFile () |
| |
| string | getComment () const |
| |
| string | getDelimiter () const |
| |
| string | getSentry () const |
| |
| bool | keyExists (const string &key) const |
| |
| 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 |
| |
| void | remove (const string &key) |
| |
| string | setComment (const string &s) |
| |
| string | setDelimiter (const string &s) |
| |
|
| typedef std::map< string, string >::const_iterator | mapci |
| |
| typedef std::map< string, string >::iterator | mapi |
| |
|
| template<class T > |
| static T | string_as_T (const string &s) |
| |
| template<class T > |
| static string | T_as_string (const T &t) |
| |
| static void | trim (string &s) |
| |
Definition at line 54 of file ConfigFile.h.
| ConfigFile::ConfigFile |
( |
string |
filename, |
|
|
string |
delimiter = "=", |
|
|
string |
comment = "#", |
|
|
string |
sentry = "EndConfigFile" |
|
) |
| |
| ConfigFile::ConfigFile |
( |
| ) |
|
template<class T >
| void ConfigFile::add |
( |
string |
key, |
|
|
const T & |
value |
|
) |
| |
| string ConfigFile::getComment |
( |
| ) |
const |
|
inline |
| string ConfigFile::getDelimiter |
( |
| ) |
const |
|
inline |
| string ConfigFile::getSentry |
( |
| ) |
const |
|
inline |
| bool ConfigFile::keyExists |
( |
const string & |
key | ) |
const |
template<class T >
| T ConfigFile::read |
( |
const string & |
key | ) |
const |
template<class T >
| T ConfigFile::read |
( |
const string & |
key, |
|
|
const T & |
value |
|
) |
| const |
template<class T >
| bool ConfigFile::readInto |
( |
T & |
var, |
|
|
const string & |
key |
|
) |
| const |
template<class T >
| bool ConfigFile::readInto |
( |
T & |
var, |
|
|
const string & |
key, |
|
|
const T & |
value |
|
) |
| const |
| void ConfigFile::remove |
( |
const string & |
key | ) |
|
| string ConfigFile::setComment |
( |
const string & |
s | ) |
|
|
inline |
| string ConfigFile::setDelimiter |
( |
const string & |
s | ) |
|
|
inline |
template<class T >
| T ConfigFile::string_as_T |
( |
const string & |
s | ) |
|
|
staticprotected |
template<>
| string ConfigFile::string_as_T |
( |
const string & |
s | ) |
|
|
inlineprotected |
template<>
| bool ConfigFile::string_as_T |
( |
const string & |
s | ) |
|
|
inlineprotected |
template<class T >
| string ConfigFile::T_as_string |
( |
const T & |
t | ) |
|
|
staticprotected |
| void ConfigFile::trim |
( |
string & |
s | ) |
|
|
staticprotected |
| std::ostream& operator<< |
( |
std::ostream & |
os, |
|
|
const ConfigFile & |
cf |
|
) |
| |
|
friend |
| std::istream& operator>> |
( |
std::istream & |
is, |
|
|
ConfigFile & |
cf |
|
) |
| |
|
friend |
| string ConfigFile::myComment |
|
protected |
| std::map<string,string> ConfigFile::myContents |
|
protected |
| string ConfigFile::myDelimiter |
|
protected |
| string ConfigFile::mySentry |
|
protected |
The documentation for this class was generated from the following files: