#include <ConfigFile.h>
|
| | ConfigFile (string filename, bool isList=false, 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, bool store=false) |
| |
| template<class T > |
| void | add (const T &key, bool store=false) |
| |
| void | remove (const string &key) |
| |
| template<class T > |
| void | remove (const T &key) |
| |
| bool | keyExists (const string &key) const |
| |
| template<class T > |
| bool | keyExists (const T &key) const |
| |
| string | getDelimiter () const |
| |
| string | getComment () const |
| |
| string | getSentry () const |
| |
| string | setDelimiter (const string &s) |
| |
| string | setComment (const string &s) |
| |
| void | load (string filename, bool isList=false) |
| |
| void | save () |
| |
|
| typedef std::map< string, string >::iterator | mapi |
| |
| typedef std::map< string, string >::const_iterator | mapci |
| |
Definition at line 54 of file ConfigFile.h.
◆ mapi
◆ mapci
◆ ConfigFile() [1/2]
| ConfigFile::ConfigFile |
( |
string |
filename, |
|
|
bool |
isList = false, |
|
|
string |
delimiter = "=", |
|
|
string |
comment = "##", |
|
|
string |
sentry = "EndConfigFile" |
|
) |
| |
◆ ConfigFile() [2/2]
| ConfigFile::ConfigFile |
( |
| ) |
|
◆ 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 |
◆ add() [1/2]
template<class T >
| void ConfigFile::add |
( |
string |
key, |
|
|
const T & |
value, |
|
|
bool |
store = false |
|
) |
| |
◆ add() [2/2]
template<class T >
| void ConfigFile::add |
( |
const T & |
key, |
|
|
bool |
store = false |
|
) |
| |
◆ remove() [1/2]
| void ConfigFile::remove |
( |
const string & |
key | ) |
|
◆ remove() [2/2]
template<class T >
| void ConfigFile::remove |
( |
const T & |
key | ) |
|
◆ keyExists() [1/2]
| bool ConfigFile::keyExists |
( |
const string & |
key | ) |
const |
◆ keyExists() [2/2]
template<class T >
| bool ConfigFile::keyExists |
( |
const T & |
key | ) |
const |
◆ getDelimiter()
| string ConfigFile::getDelimiter |
( |
| ) |
const |
|
inline |
◆ getComment()
| string ConfigFile::getComment |
( |
| ) |
const |
|
inline |
◆ getSentry()
| string ConfigFile::getSentry |
( |
| ) |
const |
|
inline |
◆ setDelimiter()
| string ConfigFile::setDelimiter |
( |
const string & |
s | ) |
|
|
inline |
◆ setComment()
| string ConfigFile::setComment |
( |
const string & |
s | ) |
|
|
inline |
◆ load()
| void ConfigFile::load |
( |
string |
filename, |
|
|
bool |
isList = false |
|
) |
| |
◆ save()
| void ConfigFile::save |
( |
| ) |
|
◆ T_as_string()
template<class T >
| string ConfigFile::T_as_string |
( |
const T & |
t | ) |
|
|
staticprotected |
◆ string_as_T() [1/3]
template<class T >
| T ConfigFile::string_as_T |
( |
const string & |
s | ) |
|
|
staticprotected |
◆ trim()
| void ConfigFile::trim |
( |
string & |
s | ) |
|
|
staticprotected |
◆ string_as_T() [2/3]
template<>
| string ConfigFile::string_as_T |
( |
const string & |
s | ) |
|
|
inlinestaticprotected |
◆ string_as_T() [3/3]
template<>
| bool ConfigFile::string_as_T |
( |
const string & |
s | ) |
|
|
inlinestaticprotected |
◆ operator<<
| std::ostream & operator<< |
( |
std::ostream & |
os, |
|
|
const ConfigFile & |
cf |
|
) |
| |
|
friend |
◆ operator>>
| std::istream & operator>> |
( |
std::istream & |
is, |
|
|
ConfigFile & |
cf |
|
) |
| |
|
friend |
◆ myDelimiter
| string ConfigFile::myDelimiter |
|
protected |
◆ myComment
| string ConfigFile::myComment |
|
protected |
◆ mySentry
| string ConfigFile::mySentry |
|
protected |
◆ myContents
| std::map<string,string> ConfigFile::myContents |
|
protected |
◆ file
| std::string ConfigFile::file |
|
protected |
◆ listmode
| bool ConfigFile::listmode |
|
protected |
The documentation for this class was generated from the following files:
- /opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_devel_wsdlpull/wsdlpull/work/wsdlpull-1.24/src/xmlpull/ConfigFile.h
- /opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_devel_wsdlpull/wsdlpull/work/wsdlpull-1.24/src/xmlpull/ConfigFile.cpp