#include <ConfigFile.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) |
|
template<class T > |
string | T_as_string (const T &t) |
|
template<class T > |
T | string_as_T (const string &s) |
|
|
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) |
|
Definition at line 59 of file ConfigFile.h.
ibrcommon::ConfigFile::ConfigFile |
( |
string |
filename, |
|
|
string |
delimiter = "=" , |
|
|
string |
comment = "#" , |
|
|
string |
sentry = "EndConfigFile" |
|
) |
| |
ibrcommon::ConfigFile::ConfigFile |
( |
) | |
|
template<class T >
void ibrcommon::ConfigFile::add |
( |
string |
key, |
|
|
const T & |
value |
|
) |
| |
string ibrcommon::ConfigFile::getComment |
( |
) | |
const |
|
inline |
string ibrcommon::ConfigFile::getDelimiter |
( |
) | |
const |
|
inline |
string ibrcommon::ConfigFile::getSentry |
( |
) | |
const |
|
inline |
bool ibrcommon::ConfigFile::keyExists |
( |
const string & |
key) | |
const |
template<class T >
T ibrcommon::ConfigFile::read |
( |
const string & |
key) | |
const |
Definition at line 179 of file ConfigFile.h.
References myContents.
Referenced by dtn::daemon::Configuration::Discovery::address(), dtn::daemon::Configuration::Discovery::announce(), dtn::daemon::Configuration::getAPIInterface(), dtn::daemon::Configuration::getAPISocket(), dtn::daemon::Configuration::getLimit(), dtn::daemon::Configuration::getNodename(), dtn::daemon::Configuration::getPath(), dtn::daemon::Configuration::getStorage(), dtn::daemon::Configuration::getUsePersistentBundleSets(), dtn::daemon::Configuration::Discovery::load(), dtn::daemon::Configuration::Logger::load(), dtn::daemon::Configuration::Network::load(), dtn::daemon::Configuration::Security::load(), dtn::daemon::Configuration::TimeSync::load(), dtn::daemon::Configuration::DHT::load(), dtn::daemon::Configuration::P2P::load(), dtn::daemon::Configuration::EMail::load(), dtn::daemon::Configuration::Discovery::port(), dtn::daemon::Configuration::Discovery::shortbeacon(), and dtn::daemon::Configuration::Discovery::version().
template<class T >
T ibrcommon::ConfigFile::read |
( |
const string & |
key, |
|
|
const T & |
value |
|
) |
| const |
template<class T >
bool ibrcommon::ConfigFile::readInto |
( |
T & |
var, |
|
|
const string & |
key |
|
) |
| const |
template<class T >
bool ibrcommon::ConfigFile::readInto |
( |
T & |
var, |
|
|
const string & |
key, |
|
|
const T & |
value |
|
) |
| const |
void ibrcommon::ConfigFile::remove |
( |
const string & |
key) | |
|
string ibrcommon::ConfigFile::setComment |
( |
const string & |
s) | |
|
|
inline |
string ibrcommon::ConfigFile::setDelimiter |
( |
const string & |
s) | |
|
|
inline |
template<class T >
static T ibrcommon::ConfigFile::string_as_T |
( |
const string & |
s) | |
|
|
staticprotected |
template<class T >
T ibrcommon::ConfigFile::string_as_T |
( |
const string & |
s) | |
|
template<>
string ibrcommon::ConfigFile::string_as_T |
( |
const string & |
s) | |
|
|
inlineprotected |
template<>
bool ibrcommon::ConfigFile::string_as_T |
( |
const string & |
s) | |
|
|
inlineprotected |
template<class T >
static string ibrcommon::ConfigFile::T_as_string |
( |
const T & |
t) | |
|
|
staticprotected |
template<class T >
string ibrcommon::ConfigFile::T_as_string |
( |
const T & |
t) | |
|
void ibrcommon::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 ibrcommon::ConfigFile::myComment |
|
protected |
std::map<string,string> ibrcommon::ConfigFile::myContents |
|
protected |
string ibrcommon::ConfigFile::myDelimiter |
|
protected |
string ibrcommon::ConfigFile::mySentry |
|
protected |
The documentation for this class was generated from the following files: