ZNC  trunk
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Types | Public Member Functions | List of all members
CConfig Class Reference

#include <Config.h>

Public Types

typedef std::map< CString,
VCString
EntryMap
 
typedef std::map< CString,
CConfigEntry
SubConfig
 
typedef std::map< CString,
SubConfig
SubConfigMap
 
typedef EntryMap::const_iterator EntryMapIterator
 
typedef
SubConfigMap::const_iterator 
SubConfigMapIterator
 

Public Member Functions

 CConfig ()
 
EntryMapIterator BeginEntries () const
 
EntryMapIterator EndEntries () const
 
SubConfigMapIterator BeginSubConfigs () const
 
SubConfigMapIterator EndSubConfigs () const
 
void AddKeyValuePair (const CString &sName, const CString &sValue)
 
bool AddSubConfig (const CString &sTag, const CString &sName, CConfig Config)
 
bool FindStringVector (const CString &sName, VCString &vsList, bool bErase=true)
 
bool FindStringEntry (const CString &sName, CString &sRes, const CString &sDefault="")
 
bool FindBoolEntry (const CString &sName, bool &bRes, bool bDefault=false)
 
bool FindUIntEntry (const CString &sName, unsigned int &uRes, unsigned int uDefault=0)
 
bool FindUShortEntry (const CString &sName, unsigned short &uRes, unsigned short uDefault=0)
 
bool FindDoubleEntry (const CString &sName, double &fRes, double fDefault=0)
 
bool FindSubConfig (const CString &sName, SubConfig &Config, bool bErase=true)
 
bool empty () const
 
bool Parse (CFile &file, CString &sErrorMsg)
 
void Write (CFile &file, unsigned int iIndentation=0)
 

Member Typedef Documentation

typedef std::map<CString, VCString> CConfig::EntryMap
typedef EntryMap::const_iterator CConfig::EntryMapIterator
typedef SubConfigMap::const_iterator CConfig::SubConfigMapIterator

Constructor & Destructor Documentation

CConfig::CConfig ( )
inline

Member Function Documentation

void CConfig::AddKeyValuePair ( const CString sName,
const CString sValue 
)
inline
bool CConfig::AddSubConfig ( const CString sTag,
const CString sName,
CConfig  Config 
)
inline
EntryMapIterator CConfig::BeginEntries ( ) const
inline
SubConfigMapIterator CConfig::BeginSubConfigs ( ) const
inline
bool CConfig::empty ( ) const
inline
EntryMapIterator CConfig::EndEntries ( ) const
inline
SubConfigMapIterator CConfig::EndSubConfigs ( ) const
inline
bool CConfig::FindBoolEntry ( const CString sName,
bool &  bRes,
bool  bDefault = false 
)
inline
bool CConfig::FindDoubleEntry ( const CString sName,
double &  fRes,
double  fDefault = 0 
)
inline
bool CConfig::FindStringEntry ( const CString sName,
CString sRes,
const CString sDefault = "" 
)
inline
bool CConfig::FindStringVector ( const CString sName,
VCString vsList,
bool  bErase = true 
)
inline
bool CConfig::FindSubConfig ( const CString sName,
SubConfig Config,
bool  bErase = true 
)
inline
bool CConfig::FindUIntEntry ( const CString sName,
unsigned int &  uRes,
unsigned int  uDefault = 0 
)
inline
bool CConfig::FindUShortEntry ( const CString sName,
unsigned short &  uRes,
unsigned short  uDefault = 0 
)
inline
bool CConfig::Parse ( CFile file,
CString sErrorMsg 
)
void CConfig::Write ( CFile file,
unsigned int  iIndentation = 0 
)

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