|
Project SkyFire Core
SkyFire 5.4.8 server core API documentation
|
#include <DB2Store.h>
Public Member Functions | |
| void | Clear () |
| T * | CreateEntry (uint32 id, bool evenIfExists=false) |
| DB2Storage (char const *f, EntryChecker checkEntry=NULL, PacketWriter writePacket=NULL) | |
| void | EraseEntry (uint32 id) |
| uint32 | GetFieldCount () const |
| char const * | GetFormat () const |
| uint32 | GetNumRows () const |
| bool | HasRecord (uint32 id) const |
| bool | Load (char const *fn, uint32 locale) |
| bool | LoadStringsFrom (char const *fn, uint32 locale) |
| T const * | LookupEntry (uint32 id) const |
| void | WriteRecord (uint32 id, uint32 locale, ByteBuffer &buffer) const |
| ~DB2Storage () | |
| Public Member Functions inherited from DB2StorageBase | |
| uint32 | GetHash () const |
| virtual | ~DB2StorageBase () |
Public Attributes | |
| EntryChecker | CheckEntry |
| PacketWriter | WritePacket |
Private Types | |
| typedef std::vector< T * > | DataTableEx |
| typedef bool(* | EntryChecker) (DB2Storage< T > const &, uint32) |
| typedef void(* | PacketWriter) (DB2Storage< T > const &, uint32, uint32, ByteBuffer &) |
| typedef std::list< char * > | StringPoolList |
Private Attributes | |
| uint32 | fieldCount |
| char const * | fmt |
| union { | |
| char ** asChar | |
| T ** asT | |
| } | indexTable |
| T * | m_dataTable |
| DataTableEx | m_dataTableEx |
| StringPoolList | m_stringPoolList |
| uint32 | nCount |
Additional Inherited Members | |
| Protected Attributes inherited from DB2StorageBase | |
| uint32 | tableHash |
Definition at line 89 of file DB2Store.h.
|
private |
Definition at line 92 of file DB2Store.h.
|
private |
Definition at line 93 of file DB2Store.h.
|
private |
Definition at line 94 of file DB2Store.h.
|
private |
Definition at line 91 of file DB2Store.h.
|
inline |
Definition at line 96 of file DB2Store.h.
References CheckEntry, DB2StorageHasEntry(), fieldCount, fmt, indexTable, m_dataTable, nCount, WriteDB2RecordToPacket(), and WritePacket.
|
inline |
Definition at line 104 of file DB2Store.h.
References Clear().
|
inline |
Definition at line 180 of file DB2Store.h.
References indexTable, m_dataTable, m_dataTableEx, m_stringPoolList, and nCount.
Referenced by ~DB2Storage().
|
inline |
Definition at line 116 of file DB2Store.h.
References indexTable, LookupEntry(), m_dataTableEx, and nCount.
|
inline |
Definition at line 138 of file DB2Store.h.
References indexTable.
|
inline |
|
inline |
Definition at line 109 of file DB2Store.h.
References fmt.
Referenced by LoadDB2(), and WriteDB2RecordToPacket().
|
inline |
Definition at line 108 of file DB2Store.h.
References nCount.
|
inlinevirtual |
|
inline |
Definition at line 140 of file DB2Store.h.
References DB2FileLoader::AutoProduceData(), DB2FileLoader::AutoProduceStrings(), DB2FileLoader::AutoProduceStringsArrayHolders(), fieldCount, fmt, DB2FileLoader::GetCols(), DB2FileLoader::GetHash(), indexTable, DB2FileLoader::Load(), m_dataTable, m_stringPoolList, nCount, and DB2StorageBase::tableHash.
Referenced by LoadDB2().
|
inline |
Definition at line 163 of file DB2Store.h.
References DB2FileLoader::AutoProduceStrings(), fmt, indexTable, DB2FileLoader::Load(), m_dataTable, and m_stringPoolList.
Referenced by LoadDB2().
|
inline |
Definition at line 107 of file DB2Store.h.
References indexTable, and nCount.
Referenced by CreateEntry(), DB2StorageHasEntry(), and WriteDB2RecordToPacket().
|
inlinevirtual |
| char** DB2Storage< T >::asChar |
Definition at line 214 of file DB2Store.h.
| T** DB2Storage< T >::asT |
Definition at line 213 of file DB2Store.h.
| EntryChecker DB2Storage< T >::CheckEntry |
Definition at line 204 of file DB2Store.h.
Referenced by DB2Storage(), and HasRecord().
|
private |
Definition at line 209 of file DB2Store.h.
Referenced by DB2Storage(), GetFieldCount(), and Load().
|
private |
Definition at line 210 of file DB2Store.h.
Referenced by DB2Storage(), GetFormat(), Load(), and LoadStringsFrom().
| union { ... } DB2Storage< T >::indexTable |
Referenced by Clear(), CreateEntry(), DB2Storage(), EraseEntry(), Load(), LoadStringsFrom(), and LookupEntry().
|
private |
Definition at line 216 of file DB2Store.h.
Referenced by Clear(), DB2Storage(), Load(), and LoadStringsFrom().
|
private |
Definition at line 217 of file DB2Store.h.
Referenced by Clear(), and CreateEntry().
|
private |
Definition at line 218 of file DB2Store.h.
Referenced by Clear(), Load(), and LoadStringsFrom().
|
private |
Definition at line 208 of file DB2Store.h.
Referenced by Clear(), CreateEntry(), DB2Storage(), GetNumRows(), Load(), and LookupEntry().
| PacketWriter DB2Storage< T >::WritePacket |
Definition at line 205 of file DB2Store.h.
Referenced by DB2Storage(), and WriteRecord().