gStorage Class Reference

#include <gstorage.h>

Inheritance diagram for gStorage:

gTop gControl gDateTime gElem gHashGeneric gInt gListGeneric gReal gStringGeneric gUChar gUInt List of all members.

Public Types

enum  eStorage {
  e_NoStorage, e_ResvdStore = 1, e_UChar = 2, e_SChar = 3,
  e_UInt = 4, e_SInt = 5, e_ULongInt = 6, e_SLongInt = 7,
  e_ResvdStore8 = 8, e_ResvdStore9 = 9, e_Real = 10, e_List = 11,
  e_ResvdStore12 = 12, e_ResvdStore13 = 13, e_ResvdStore14 = 14, e_ResvdStore15 = 15,
  e_ResvdStore16 = 16, e_ResvdStore17 = 17, e_ResvdStore18 = 18, e_ResvdStore19 = 19,
  e_String = 20, e_StrUnicode = 21, e_ResvdStore22 = 22, e_ResvdStore23 = 23,
  e_ResvdStore24 = 24, e_ResvdStore25 = 25, e_ResvdStore26 = 26, e_ResvdStore27 = 27,
  e_ResvdStore28 = 28, e_ResvdStore29 = 29, e_ResvdStore30 = 30, e_StoreExtend = 31,
  e_Control, e_UnusedStore
}
enum  eStoreMethod {
  e_StgNoStore = 0, e_StgGlobalString = 1, e_StgGlobalFlat = 2, e_StgString = 3,
  e_StgFlat = 4, e_StgDefault = 64
}

Public Member Functions

virtual ~gStorage ()
virtual bool IsOk ()
eStorage Kind ()
virtual eStoreMethod GetStoreMethod ()
virtual char * StorageName ()
virtual bool IsString ()
virtual char * Str ()
virtual int MinimumStorageSize ()
virtual int MaximumStorageSize ()
virtual void Reset ()
virtual int SetError (int opError)
virtual void SetStoreMethod (eStoreMethod aMethod)
virtual gStorageNewObject ()=0
virtual t_ucharToString (t_uchar *uBuf)=0
virtual bool EndGuts ()
virtual bool SaveGuts (FILE *f)=0
virtual bool RestoreGuts (FILE *f)=0
virtual void Show (bool doShowAll=true)

Static Public Attributes

static const sStorageDesc storeKindDesc []

Protected Member Functions

 gStorage (eStorage aKind, eStoreMethod aMethod=e_StgDefault)
bool thisSetStoreMethod (eStoreMethod aMethod, eStoreMethod &resMethod)
bool CanSave (FILE *f)
bool CanRestore (FILE *f)

Protected Attributes

eStorage kind
eStoreMethod storeMethod

Static Protected Attributes

static gUCharBuffer oneCharBuf

Member Enumeration Documentation

enum gStorage::eStorage
 

Enumeration values:
e_NoStorage 
e_ResvdStore 
e_UChar 
e_SChar 
e_UInt 
e_SInt 
e_ULongInt 
e_SLongInt 
e_ResvdStore8 
e_ResvdStore9 
e_Real 
e_List 
e_ResvdStore12 
e_ResvdStore13 
e_ResvdStore14 
e_ResvdStore15 
e_ResvdStore16 
e_ResvdStore17 
e_ResvdStore18 
e_ResvdStore19 
e_String 
e_StrUnicode 
e_ResvdStore22 
e_ResvdStore23 
e_ResvdStore24 
e_ResvdStore25 
e_ResvdStore26 
e_ResvdStore27 
e_ResvdStore28 
e_ResvdStore29 
e_ResvdStore30 
e_StoreExtend 
e_Control 
e_UnusedStore 

Definition at line 92 of file gstorage.h.

enum gStorage::eStoreMethod
 

Enumeration values:
e_StgNoStore 
e_StgGlobalString 
e_StgGlobalFlat 
e_StgString 
e_StgFlat 
e_StgDefault 

Definition at line 128 of file gstorage.h.


Constructor & Destructor Documentation

gStorage::~gStorage  )  [virtual]
 

Definition at line 134 of file gstorage.cpp.

gStorage::gStorage eStorage  aKind,
eStoreMethod  aMethod = e_StgDefault
[protected]
 

Definition at line 126 of file gstorage.cpp.


Member Function Documentation

bool gStorage::CanRestore FILE *  f  )  [protected]
 

Definition at line 217 of file gstorage.cpp.

Referenced by CanSave(), gUniString::RestoreGuts(), gDateDay::RestoreGuts(), gStringGeneric::RestoreGuts(), gReal::RestoreGuts(), gUInt::RestoreGuts(), gInt::RestoreGuts(), gUChar::RestoreGuts(), gListGeneric::RestoreGuts(), gHashGeneric::RestoreGuts(), gDirGeneric::RestoreGuts(), gControl::RestoreGuts(), and gDateTime::RestoreGuts().

bool gStorage::CanSave FILE *  f  )  [protected]
 

Definition at line 212 of file gstorage.cpp.

Referenced by gUniString::SaveGuts(), gDateDay::SaveGuts(), gStringGeneric::SaveGuts(), gReal::SaveGuts(), gUInt::SaveGuts(), gInt::SaveGuts(), gUChar::SaveGuts(), gListGeneric::SaveGuts(), gHashGeneric::SaveGuts(), gDirGeneric::SaveGuts(), gControl::SaveGuts(), and gDateTime::SaveGuts().

bool gStorage::EndGuts  )  [virtual]
 

Definition at line 165 of file gstorage.cpp.

virtual eStoreMethod gStorage::GetStoreMethod  )  [inline, virtual]
 

Definition at line 149 of file gstorage.h.

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

Reimplemented in gdURI, gHtmlString, gdHCouple, gdHttpURI, gdTxtCouple, gHAttrs, gHAType, gHATypeStringSingle, gHATypeSimple, gHATypeSimple32, gHATypeSimpleU32, gHtmlCouple, gTagTree, gVector, gArray, gDateTime, gTimeStamp, gControl, gFileSysName, gDirGeneric, gKey, gURI, gIpAddr, gHostAddr, gSocket, gTcpConnect, and gTagCoord.

Definition at line 143 of file gstorage.h.

Referenced by gHAttrs::IsOk(), gArray::IsOk(), and gVector::IsOk().

virtual bool gStorage::IsString  )  [inline, virtual]
 

Definition at line 154 of file gstorage.h.

eStorage gStorage::Kind  )  [inline]
 

Definition at line 146 of file gstorage.h.

Referenced by gListGeneric::ElementsKind(), gParamVal::FillParam(), gList::GetInt(), gConfig::GetSectionLine(), gList::GetUInt(), and gKey::MatchStorage().

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

Reimplemented in gControl, gFileOut, gElem, gListGeneric, gUChar, gReal, and gStringGeneric.

Definition at line 163 of file gstorage.h.

Referenced by gDateDay::MinimumStorageSize().

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

Reimplemented in gControl, gFileOut, gListGeneric, gStringGeneric, and gDateDay.

Definition at line 160 of file gstorage.h.

Referenced by IsString().

virtual gStorage* gStorage::NewObject  )  [pure virtual]
 

Implemented in gParamVal, gParamElem, gDateTime, gControl, gKey, gHashGeneric, gElem, gListGeneric, gUChar, gInt, gUInt, gReal, gString, gDateDay, gUniString, and gIntCoord.

Referenced by gList::CopyList().

virtual void gStorage::Reset  )  [inline, virtual]
 

Reimplemented in gHAttrList, gHAttrs, gHAType, gTagTree, gHTree, gVector, gArray, gDateTime, gControl, gKey, gListGeneric, gRandom, gIpAddr, gUChar, gInt, gUInt, gReal, gStringGeneric, gTimerTic, gIntCoord, and gTagCoord.

Definition at line 172 of file gstorage.h.

Referenced by gStringGeneric::Reset(), gReal::Reset(), gUInt::Reset(), gInt::Reset(), and gUChar::Reset().

virtual bool gStorage::RestoreGuts FILE *  f  )  [pure virtual]
 

Implemented in gArg, gDateTime, gControl, gDirGeneric, gHashGeneric, gHash, gElem, gListGeneric, gList, gUChar, gInt, gUInt, gReal, gStringGeneric, gString, gDateDay, and gUniString.

virtual bool gStorage::SaveGuts FILE *  f  )  [pure virtual]
 

Implemented in gArg, gDateTime, gControl, gDirGeneric, gHashGeneric, gHash, gElem, gListGeneric, gList, gUChar, gInt, gUInt, gReal, gStringGeneric, gString, gDateDay, and gUniString.

Referenced by gElem::RestoreGuts(), and gElem::SaveGuts().

int gStorage::SetError int  opError  )  [virtual]
 

Reimplemented in gHtmlParser, gDateTime, and gControl.

Definition at line 149 of file gstorage.cpp.

Referenced by Reset(), and gDateTime::SetError().

void gStorage::SetStoreMethod eStoreMethod  aMethod  )  [virtual]
 

Definition at line 157 of file gstorage.cpp.

void gStorage::Show bool  doShowAll = true  )  [virtual]
 

Reimplemented in gdHCouple, gdTxtCouple, gHAttrs, gHOutOpt, gHtmlContent, gHSelConf, gHTree, gParamVal, gArg, gKey, gHashElemTriple, gHash, gList, gIpAddr, gHostAddr, gTcpConnect, gInt, gUInt, gReal, gString, gUniString, and gIntCoord.

Definition at line 172 of file gstorage.cpp.

Referenced by sParamRaw::BuildParamVal(), gUniString::Show(), gList::Show(), and gHash::Show().

char * gStorage::StorageName  )  [virtual]
 

Reimplemented in gDateTime.

Definition at line 138 of file gstorage.cpp.

char * gStorage::Str  )  [virtual]
 

Reimplemented in gHAttrList, gTagTree, gVector, gArray, gFileSysName, gDirName, gURI, gElem, and gStringGeneric.

Definition at line 144 of file gstorage.cpp.

Referenced by gHtmlCouple::AddText(), gConfig::GetSectionLine(), gHtmlCouple::GetStr(), gdTxtCouple::GetStr(), gdHCouple::GetStr(), gHtmlCouple::GetStrForTree(), gList::Match(), gSmartList::MatchWhere(), gList::Show(), gHtmlContent::Show(), gdTxtCouple::Show(), gElem::Str(), gList::thisFind(), gKey::ToString(), gListGeneric::UStr(), and gHSeq::~gHSeq().

bool gStorage::thisSetStoreMethod eStoreMethod  aMethod,
eStoreMethod resMethod
[protected]
 

Definition at line 188 of file gstorage.cpp.

Referenced by SetStoreMethod().

virtual t_uchar* gStorage::ToString t_uchar uBuf  )  [pure virtual]
 

Implemented in gParamVal, gArg, gDateTime, gControl, gDirName, gDirGeneric, gKey, gHashGeneric, gHash, gElem, gListGeneric, gList, gIpAddr, gTcpConnect, gUChar, gInt, gUInt, gReal, gStringGeneric, gString, gUniString, and gIntCoord.

Referenced by sParamRaw::BuildParamVal(), Str(), and gElem::ToString().


Member Data Documentation

eStorage gStorage::kind [protected]
 

Definition at line 194 of file gstorage.h.

Referenced by Kind(), Show(), and StorageName().

gUCharBuffer gStorage::oneCharBuf [static, protected]
 

Referenced by gReal::MaximumStorageSize(), and Str().

const sStorageDesc gStorage::storeKindDesc [static]
 

Definition at line 14 of file gstorage.cpp.

Referenced by Show(), and StorageName().

eStoreMethod gStorage::storeMethod [protected]
 

Definition at line 195 of file gstorage.h.

Referenced by GetStoreMethod(), and SetStoreMethod().


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