#include <gconfig.h>
Inheritance diagram for gConfig:
Public Types | |
enum | eConfKind { e_ConfLinearFree, e_ConfLinear, e_ConfSectionStrict, e_ConfSectionFree } |
Public Member Functions | |
gConfig (eConfKind aKind=e_ConfLinearFree) | |
gConfig (eConfKind aKind, char *fName, bool doOpenToRead=true) | |
virtual | ~gConfig () |
bool | HasSections () |
bool | HasSection (unsigned idxSection) |
bool | HasSection (unsigned idxSection, unsigned &nLines) |
unsigned | GetSectionFromName (char *sSection) |
virtual gList * | GetSection (char *sSection) |
bool | GetSectionLine (unsigned idxSection, unsigned idxLine, gString &sSep, gString &sLeft, gString &sRight, bool &isAssign) |
bool | SetConfKind (eConfKind aKind) |
bool | Process () |
bool | Process (char *fName) |
Public Attributes | |
int | lastOpError |
int | maxNLines |
eConfKind | confKind |
gString | sFileName |
gList | lineStartCommentL |
unsigned | lineStartPos |
bool | doTrim |
gList | linesInputL |
gString | lineSepChrs |
gList | lineSepStrs |
unsigned | sectionStartPos |
gString | sectionSep |
int | iLineError |
unsigned | nConf |
gList * | confL |
gList * | conpL |
gList | sectL |
gList | nIdxSectL |
gList | noSectL |
Protected Member Functions | |
int | thisConfigInit () |
int | thisConfigDelete () |
int | thisRead (char *fName, gList &aL, gList &idxL) |
int | thisProcess (gList &aL, gList &iLineL, int &lineError) |
int | thisParseLine (char *str, gList &pL) |
int | thisAddLineToList (gList &lineL, gList &pL) |
bool | thisSectionChrStartEnd (t_uchar uSecChr) |
Protected Attributes | |
bool | hasSections |
gList | cfgL |
|
|
|
Definition at line 218 of file gconfig.cpp. |
|
Definition at line 226 of file gconfig.cpp. |
|
Definition at line 236 of file gconfig.cpp. |
|
Definition at line 268 of file gconfig.cpp. Referenced by gHOutOpt::Show(), and gHOutOpt::thisConfig(). |
|
Definition at line 257 of file gconfig.cpp. Referenced by GetSection(), and gHOutOpt::thisConfig(). |
|
Definition at line 275 of file gconfig.cpp. |
|
Definition at line 247 of file gconfig.cpp. |
|
Definition at line 241 of file gconfig.cpp. Referenced by GetSectionLine(). |
|
|
|
Definition at line 338 of file gconfig.cpp. |
|
Definition at line 332 of file gconfig.cpp. |
|
Definition at line 314 of file gconfig.cpp. Referenced by gConfig(). |
|
Definition at line 545 of file gconfig.cpp. Referenced by thisParseLine(). |
|
Definition at line 361 of file gconfig.cpp. Referenced by thisRead(), and ~gConfig(). |
|
Definition at line 344 of file gconfig.cpp. Referenced by gConfig(). |
|
Definition at line 510 of file gconfig.cpp. Referenced by thisProcess(). |
|
Definition at line 423 of file gconfig.cpp. Referenced by thisRead(). |
|
Definition at line 374 of file gconfig.cpp. |
|
Definition at line 563 of file gconfig.cpp. Referenced by thisProcess(). |
|
Definition at line 155 of file gconfig.h. Referenced by gConfig(), Process(), and thisConfigDelete(). |
|
Definition at line 94 of file gconfig.h. Referenced by SetConfKind(). |
|
Definition at line 122 of file gconfig.h. Referenced by HasSection(), thisConfigDelete(), thisConfigInit(), and thisProcess(). |
|
Definition at line 123 of file gconfig.h. Referenced by GetSection(), GetSectionLine(), gHOutOpt::Show(), thisConfigDelete(), thisConfigInit(), and thisProcess(). |
|
Definition at line 103 of file gconfig.h. Referenced by thisConfigInit(), and thisRead(). |
|
Definition at line 154 of file gconfig.h. Referenced by HasSection(), HasSections(), SetConfKind(), and thisProcess(). |
|
Definition at line 120 of file gconfig.h. Referenced by gHOutOpt::thisConfig(), thisConfigInit(), and thisRead(). |
|
Reimplemented from gControl. Definition at line 86 of file gconfig.h. Referenced by gHSelConf::ConfigFromFile(), gHOutOpt::ConfigFromFile(), gConfig(), and Process(). |
|
Definition at line 109 of file gconfig.h. Referenced by thisConfigInit(), and thisParseLine(). |
|
Definition at line 110 of file gconfig.h. Referenced by thisConfigInit(), and thisParseLine(). |
|
Definition at line 106 of file gconfig.h. Referenced by gConfig(), Process(), thisConfigDelete(), and thisRead(). |
|
Definition at line 96 of file gconfig.h. Referenced by thisConfigInit(), and thisRead(). |
|
Definition at line 100 of file gconfig.h. Referenced by thisConfigInit(), and thisRead(). |
|
Definition at line 93 of file gconfig.h. Referenced by thisRead(). |
|
Definition at line 121 of file gconfig.h. Referenced by GetSectionFromName(), HasSection(), gHOutOpt::Show(), gHOutOpt::thisConfig(), thisConfigDelete(), thisConfigInit(), and thisProcess(). |
|
Definition at line 127 of file gconfig.h. Referenced by gHOutOpt::Show(), gHOutOpt::thisConfig(), and thisProcess(). |
|
Definition at line 128 of file gconfig.h. Referenced by thisProcess(). |
|
Definition at line 114 of file gconfig.h. Referenced by thisConfigInit(), and thisProcess(). |
|
Definition at line 113 of file gconfig.h. Referenced by thisConfigInit(), and thisProcess(). |
|
Definition at line 126 of file gconfig.h. Referenced by GetSectionFromName(), gHOutOpt::Show(), gHOutOpt::thisConfig(), thisConfigDelete(), and thisProcess(). |
|
Definition at line 95 of file gconfig.h. Referenced by Process(), and thisRead(). |