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

Public Member Functions

virtual ConfigINIFindOrAddSection (const string &name)
 
- Public Member Functions inherited from ConfigSection
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)
 

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
 
- Protected Member Functions inherited from ConfigSection
void printSection (size_t level) const
 

Protected Attributes

ConfigINIparent = NULL
 
- Protected Attributes inherited from ConfigSection
valueList _values
 
sectionList _sections
 

Additional Inherited Members

- Public Attributes inherited from ConfigSection
string name
 
const sectionList & sections = _sections
 
const valueList & values = _values
 
- Protected Types inherited from ConfigSection
typedef map< string, ConfigValue *, uc_lessvalueList
 
typedef map< string, ConfigSection *, uc_lesssectionList
 

Detailed Description

Definition at line 142 of file config2.h.

Member Function Documentation

◆ loadFromString()

bool ConfigINI::loadFromString ( const char **  pconfig,
size_t &  line,
const char *  fn 
)
protectedvirtual

Read in an INI file into a ConfigSection

Reimplemented from ConfigSection.

Definition at line 10 of file config2_ini.cpp.

References file_get_contents(), loadFromString(), sstrcpy, str_replaceA(), strlcpy(), and strtrim().

Referenced by loadFromString().


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