DSL
Public Member Functions | Public Attributes | Protected Types | Protected Member Functions | Protected Attributes | List of all members
ConfigSection Class Reference
Inheritance diagram for ConfigSection:
Inheritance graph
[legend]

Public Member Functions

void Clear ()
 
void PrintConfigTree () const
 
bool LoadFromString (const string &config, const string &filename)
 
bool LoadFromFile (const string &filename)
 
bool LoadFromFile (FILE *fp, const string &filename)
 
string WriteToString () const
 
bool WriteToFile (const string &filename) const
 
bool WriteToFile (FILE *fp) const
 
ConfigSectionGetSection (const string &name)
 
const ConfigValueGetValue (const string &name) const
 
bool GetValue (const string &name, ConfigValue &value) const
 
bool HasValue (const string &name) const
 
void SetValue (const string &name, const ConfigValue &val)
 
virtual ConfigSectionFindOrAddSection (const string &name)
 

Public Attributes

string name
 
const sectionList & sections = _sections
 
const valueList & values = _values
 

Protected Types

typedef map< string, ConfigValue *, uc_lessvalueList
 
typedef map< string, ConfigSection *, uc_lesssectionList
 

Protected Member Functions

virtual bool loadFromString (const char **config, size_t &line, const char *fn)
 
virtual void writeSection (stringstream &sstr, int level, bool single=false) const
 
void printSection (size_t level) const
 

Protected Attributes

valueList _values
 
sectionList _sections
 

Detailed Description

Definition at line 99 of file config2.h.


The documentation for this class was generated from the following files: