gControl Class Reference

#include <gcontrol.h>

Inheritance diagram for gControl:

gStorage gTop gBigBuffer gConfig gFileControl gFileOut gHashElemGeneric gHAttrList gHInOpt gHNode gHOutOpt gHSelConf gHSelect gHSeq gHtmlLog gHtmlOpt gHtmlParser gHttpGeneric gIpAddr gNetConnect gParamVal gStorageControl List of all members.

Public Member Functions

 gControl (eStorage aKind=e_Control)
virtual ~gControl ()
virtual bool IsOk ()
virtual char * GetErrorStr ()
virtual t_uint16 GetRandom (t_uint16 maxRange)
virtual int MinimumStorageSize ()
virtual int MaximumStorageSize ()
virtual void Reset ()
virtual void ResetLog ()
virtual int SetDefaultDbgLevel (int aDbgLevel)
virtual int SetError (int opError)
int Log (FILE *dbgFile, int level, const char *formatStr,...)
virtual int ClearLogMem (int level)
virtual int ClearLogMemAll ()
virtual int ClearAllLogs ()
virtual gStorageNewObject ()
virtual t_ucharToString (t_uchar *uBuf)
virtual bool SaveGuts (FILE *f)
virtual bool RestoreGuts (FILE *f)

Public Attributes

int lastOpError
int dbgLevel

Static Public Attributes

static int nErrors [LOG_LOGMAX]
static gList lLog [LOG_LOGMAX]

Protected Attributes

char sStrError [200]

Static Protected Attributes

static int dbgLevelDefault = LOG_INFO
static char logBuf [4096]

Constructor & Destructor Documentation

gControl::gControl eStorage  aKind = e_Control  ) 
 

Definition at line 21 of file gcontrol.cpp.

virtual gControl::~gControl  )  [inline, virtual]
 

Definition at line 9 of file gcontrol.h.


Member Function Documentation

int gControl::ClearAllLogs  )  [virtual]
 

Definition at line 122 of file gcontrol.cpp.

int gControl::ClearLogMem int  level  )  [virtual]
 

Definition at line 105 of file gcontrol.cpp.

Referenced by ClearLogMemAll().

int gControl::ClearLogMemAll  )  [virtual]
 

Definition at line 114 of file gcontrol.cpp.

Referenced by ClearAllLogs().

virtual char* gControl::GetErrorStr  )  [inline, virtual]
 

Definition at line 23 of file gcontrol.h.

Referenced by gHtmlParser::thisParse().

t_uint16 gControl::GetRandom t_uint16  maxRange  )  [virtual]
 

Definition at line 31 of file gcontrol.cpp.

virtual bool gControl::IsOk  )  [inline, virtual]
 

Reimplemented from gStorage.

Reimplemented in gIpAddr, gHostAddr, and gTcpConnect.

Definition at line 19 of file gcontrol.h.

Referenced by gHSeq::thisCheck(), and gHSeq::thisFindRememberedBlock().

int gControl::Log FILE *  dbgFile,
int  level,
const char *  formatStr,
  ...
 

Definition at line 65 of file gcontrol.cpp.

virtual int gControl::MaximumStorageSize  )  [inline, virtual]
 

Reimplemented from gStorage.

Reimplemented in gFileOut.

Definition at line 32 of file gcontrol.h.

virtual int gControl::MinimumStorageSize  )  [inline, virtual]
 

Reimplemented from gStorage.

Reimplemented in gFileOut.

Definition at line 29 of file gcontrol.h.

gStorage * gControl::NewObject  )  [virtual]
 

Implements gStorage.

Reimplemented in gParamVal.

Definition at line 128 of file gcontrol.cpp.

void gControl::Reset  )  [virtual]
 

Reimplemented from gStorage.

Reimplemented in gHAttrList, and gIpAddr.

Definition at line 36 of file gcontrol.cpp.

Referenced by gIpAddr::Reset(), and gHAttrList::Reset().

void gControl::ResetLog  )  [virtual]
 

Definition at line 41 of file gcontrol.cpp.

virtual bool gControl::RestoreGuts FILE *  f  )  [inline, virtual]
 

Implements gStorage.

Definition at line 61 of file gcontrol.h.

virtual bool gControl::SaveGuts FILE *  f  )  [inline, virtual]
 

Implements gStorage.

Definition at line 58 of file gcontrol.h.

virtual int gControl::SetDefaultDbgLevel int  aDbgLevel  )  [inline, virtual]
 

Definition at line 41 of file gcontrol.h.

int gControl::SetError int  opError  )  [virtual]
 

Reimplemented from gStorage.

Reimplemented in gHtmlParser.

Definition at line 49 of file gcontrol.cpp.

Referenced by gTcpConnect::Connect(), gControl(), gXHttpCont::GetContent(), gIpAddr::GetHostByName(), gTcpConnect::gTcpConnect(), gNetConnect::Read(), gHtmlParser::SetError(), gTcpConnect::thisConnect(), gIpAddr::thisGetHostByAddr(), and gNetConnect::Write().

virtual t_uchar* gControl::ToString t_uchar uBuf  )  [inline, virtual]
 

Implements gStorage.

Reimplemented in gParamVal, gIpAddr, and gTcpConnect.

Definition at line 55 of file gcontrol.h.


Member Data Documentation

int gControl::dbgLevel
 

Definition at line 14 of file gcontrol.h.

Referenced by Log().

int gControl::dbgLevelDefault = LOG_INFO [static, protected]
 

Definition at line 12 of file gcontrol.cpp.

Referenced by SetDefaultDbgLevel().

int gControl::lastOpError
 

Reimplemented in gConfig, and gFileControl.

Definition at line 13 of file gcontrol.h.

Referenced by gHSelConf::ConfigFromFile(), gHOutOpt::ConfigFromFile(), gHInOpt::ConvertToInt(), gXHttpCont::GetContent(), gIpAddr::GetHostByName(), gHtmlParser::gHtmlParser(), gTcpConnect::gTcpConnect(), IsOk(), gNetConnect::Read(), Reset(), gHAttrList::Set(), gIpAddr::SetAddrFromStr(), gHtmlParser::SetError(), SetError(), gHtmlContent::thisAddHtmlTag(), gTcpConnect::thisConnect(), gXHttpCont::thisGetHtmlContrl(), gHtmlParser::thisParse(), and gNetConnect::Write().

gList gControl::lLog [static]
 

Definition at line 11 of file gcontrol.cpp.

Referenced by ClearLogMem(), Log(), and ResetLog().

char gControl::logBuf [static, protected]
 

Definition at line 13 of file gcontrol.cpp.

Referenced by Log().

int gControl::nErrors [static]
 

Definition at line 10 of file gcontrol.cpp.

Referenced by Log(), and ResetLog().

char gControl::sStrError[200] [protected]
 

Definition at line 66 of file gcontrol.h.

Referenced by GetErrorStr(), and SetError().


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