gConfig Class Reference

#include <gconfig.h>

Inheritance diagram for gConfig:

gControl gStorage gTop List of all members.

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 gListGetSection (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
gListconfL
gListconpL
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

Member Enumeration Documentation

enum gConfig::eConfKind
 

Enumeration values:
e_ConfLinearFree 
e_ConfLinear 
e_ConfSectionStrict 
e_ConfSectionFree 

Definition at line 65 of file gconfig.h.


Constructor & Destructor Documentation

gConfig::gConfig eConfKind  aKind = e_ConfLinearFree  ) 
 

Definition at line 218 of file gconfig.cpp.

gConfig::gConfig eConfKind  aKind,
char *  fName,
bool  doOpenToRead = true
 

Definition at line 226 of file gconfig.cpp.

gConfig::~gConfig  )  [virtual]
 

Definition at line 236 of file gconfig.cpp.


Member Function Documentation

gList * gConfig::GetSection char *  sSection  )  [virtual]
 

Definition at line 268 of file gconfig.cpp.

Referenced by gHOutOpt::Show(), and gHOutOpt::thisConfig().

unsigned gConfig::GetSectionFromName char *  sSection  ) 
 

Definition at line 257 of file gconfig.cpp.

Referenced by GetSection(), and gHOutOpt::thisConfig().

bool gConfig::GetSectionLine unsigned  idxSection,
unsigned  idxLine,
gString sSep,
gString sLeft,
gString sRight,
bool &  isAssign
 

Definition at line 275 of file gconfig.cpp.

bool gConfig::HasSection unsigned  idxSection,
unsigned &  nLines
 

Definition at line 247 of file gconfig.cpp.

bool gConfig::HasSection unsigned  idxSection  ) 
 

Definition at line 241 of file gconfig.cpp.

Referenced by GetSectionLine().

bool gConfig::HasSections  )  [inline]
 

Definition at line 131 of file gconfig.h.

bool gConfig::Process char *  fName  ) 
 

Definition at line 338 of file gconfig.cpp.

bool gConfig::Process  ) 
 

Definition at line 332 of file gconfig.cpp.

bool gConfig::SetConfKind eConfKind  aKind  ) 
 

Definition at line 314 of file gconfig.cpp.

Referenced by gConfig().

int gConfig::thisAddLineToList gList lineL,
gList pL
[protected]
 

Definition at line 545 of file gconfig.cpp.

Referenced by thisParseLine().

int gConfig::thisConfigDelete  )  [protected]
 

Definition at line 361 of file gconfig.cpp.

Referenced by thisRead(), and ~gConfig().

int gConfig::thisConfigInit  )  [protected]
 

Definition at line 344 of file gconfig.cpp.

Referenced by gConfig().

int gConfig::thisParseLine char *  str,
gList pL
[protected]
 

Definition at line 510 of file gconfig.cpp.

Referenced by thisProcess().

int gConfig::thisProcess gList aL,
gList iLineL,
int &  lineError
[protected]
 

Definition at line 423 of file gconfig.cpp.

Referenced by thisRead().

int gConfig::thisRead char *  fName,
gList aL,
gList idxL
[protected]
 

Definition at line 374 of file gconfig.cpp.

Referenced by gConfig(), and Process().

bool gConfig::thisSectionChrStartEnd t_uchar  uSecChr  )  [protected]
 

Definition at line 563 of file gconfig.cpp.

Referenced by thisProcess().


Member Data Documentation

gList gConfig::cfgL [protected]
 

Definition at line 155 of file gconfig.h.

Referenced by gConfig(), Process(), and thisConfigDelete().

eConfKind gConfig::confKind
 

Definition at line 94 of file gconfig.h.

Referenced by SetConfKind().

gList* gConfig::confL
 

Definition at line 122 of file gconfig.h.

Referenced by HasSection(), thisConfigDelete(), thisConfigInit(), and thisProcess().

gList* gConfig::conpL
 

Definition at line 123 of file gconfig.h.

Referenced by GetSection(), GetSectionLine(), gHOutOpt::Show(), thisConfigDelete(), thisConfigInit(), and thisProcess().

bool gConfig::doTrim
 

Definition at line 103 of file gconfig.h.

Referenced by thisConfigInit(), and thisRead().

bool gConfig::hasSections [protected]
 

Definition at line 154 of file gconfig.h.

Referenced by HasSection(), HasSections(), SetConfKind(), and thisProcess().

int gConfig::iLineError
 

Definition at line 120 of file gconfig.h.

Referenced by gHOutOpt::thisConfig(), thisConfigInit(), and thisRead().

int gConfig::lastOpError
 

Reimplemented from gControl.

Definition at line 86 of file gconfig.h.

Referenced by gHSelConf::ConfigFromFile(), gHOutOpt::ConfigFromFile(), gConfig(), and Process().

gString gConfig::lineSepChrs
 

Definition at line 109 of file gconfig.h.

Referenced by thisConfigInit(), and thisParseLine().

gList gConfig::lineSepStrs
 

Definition at line 110 of file gconfig.h.

Referenced by thisConfigInit(), and thisParseLine().

gList gConfig::linesInputL
 

Definition at line 106 of file gconfig.h.

Referenced by gConfig(), Process(), thisConfigDelete(), and thisRead().

gList gConfig::lineStartCommentL
 

Definition at line 96 of file gconfig.h.

Referenced by thisConfigInit(), and thisRead().

unsigned gConfig::lineStartPos
 

Definition at line 100 of file gconfig.h.

Referenced by thisConfigInit(), and thisRead().

int gConfig::maxNLines
 

Definition at line 93 of file gconfig.h.

Referenced by thisRead().

unsigned gConfig::nConf
 

Definition at line 121 of file gconfig.h.

Referenced by GetSectionFromName(), HasSection(), gHOutOpt::Show(), gHOutOpt::thisConfig(), thisConfigDelete(), thisConfigInit(), and thisProcess().

gList gConfig::nIdxSectL
 

Definition at line 127 of file gconfig.h.

Referenced by gHOutOpt::Show(), gHOutOpt::thisConfig(), and thisProcess().

gList gConfig::noSectL
 

Definition at line 128 of file gconfig.h.

Referenced by thisProcess().

gString gConfig::sectionSep
 

Definition at line 114 of file gconfig.h.

Referenced by thisConfigInit(), and thisProcess().

unsigned gConfig::sectionStartPos
 

Definition at line 113 of file gconfig.h.

Referenced by thisConfigInit(), and thisProcess().

gList gConfig::sectL
 

Definition at line 126 of file gconfig.h.

Referenced by GetSectionFromName(), gHOutOpt::Show(), gHOutOpt::thisConfig(), thisConfigDelete(), and thisProcess().

gString gConfig::sFileName
 

Definition at line 95 of file gconfig.h.

Referenced by Process(), and thisRead().


The documentation for this class was generated from the following files:
Generated on Sat Aug 18 02:41:03 2007 for xpfweb_v2x lib by  doxygen 1.4.2