ConfigFile Class Reference

Collaboration diagram for ConfigFile:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 ConfigFile (string filename, bool isList=false, string delimiter="=", string comment="##", string sentry="EndConfigFile")
 ConfigFile ()
template<class T>
read (const string &key) const
template<class 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 ()

Protected Types

typedef std::map< string,
string >::iterator 
mapi
typedef std::map< string,
string >::const_iterator 
mapci

Static Protected Member Functions

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)

Protected Attributes

string myDelimiter
string myComment
string mySentry
std::map< string, string > myContents
std::string file
bool listmode

Friends

std::ostream & operator<< (std::ostream &os, const ConfigFile &cf)
std::istream & operator>> (std::istream &is, ConfigFile &cf)

Classes

struct  file_not_found
struct  key_not_found

Detailed Description

Definition at line 54 of file ConfigFile.h.


The documentation for this class was generated from the following files:
Generated on Sun Nov 26 03:04:44 2006 for wsdlpull by  doxygen 1.4.6