Project SkyFire Core
SkyFire 5.4.8 server core API documentation
Loading...
Searching...
No Matches
DBCStorage< T > Class Template Reference

#include <DBCStore.h>

Public Member Functions

void Clear ()
 DBCStorage (char const *f)
uint32 GetFieldCount () const
char const * GetFormat () const
uint32 GetNumRows () const
bool Load (char const *fn, SqlDbc *sql)
bool LoadStringsFrom (char const *fn)
T const * LookupEntry (uint32 id) const
 ~DBCStorage ()

Private Types

typedef std::list< char * > StringPoolList

Private Member Functions

 DBCStorage (DBCStorage const &right)=delete
DBCStorageoperator= (DBCStorage const &right)=delete

Private Attributes

T * dataTable
uint32 fieldCount
char const * fmt
union { 
   char **   asChar 
   T **   asT 
indexTable
uint32 nCount
StringPoolList stringPoolList

Detailed Description

template<class T>
class DBCStorage< T >

Definition at line 59 of file DBCStore.h.

Member Typedef Documentation

◆ StringPoolList

template<class T>
typedef std::list<char*> DBCStorage< T >::StringPoolList
private

Definition at line 61 of file DBCStore.h.

Constructor & Destructor Documentation

◆ DBCStorage() [1/2]

template<class T>
DBCStorage< T >::DBCStorage ( char const * f)
inlineexplicit

Definition at line 63 of file DBCStore.h.

References dataTable, fieldCount, fmt, indexTable, and nCount.

Referenced by DBCStorage(), and operator=().

◆ ~DBCStorage()

template<class T>
DBCStorage< T >::~DBCStorage ( )
inline

Definition at line 69 of file DBCStore.h.

References Clear().

◆ DBCStorage() [2/2]

template<class T>
DBCStorage< T >::DBCStorage ( DBCStorage< T > const & right)
privatedelete

References DBCStorage().

Member Function Documentation

◆ Clear()

template<class T>
void DBCStorage< T >::Clear ( )
inline

Definition at line 251 of file DBCStore.h.

References dataTable, indexTable, nCount, and stringPoolList.

Referenced by ~DBCStorage().

◆ GetFieldCount()

template<class T>
uint32 DBCStorage< T >::GetFieldCount ( ) const
inline

Definition at line 78 of file DBCStore.h.

References fieldCount.

Referenced by LoadDBC().

◆ GetFormat()

template<class T>
char const * DBCStorage< T >::GetFormat ( ) const
inline

Definition at line 77 of file DBCStore.h.

References fmt.

Referenced by LoadDBC().

◆ GetNumRows()

template<class T>
uint32 DBCStorage< T >::GetNumRows ( ) const
inline

Definition at line 76 of file DBCStore.h.

References nCount.

◆ Load()

◆ LoadStringsFrom()

template<class T>
bool DBCStorage< T >::LoadStringsFrom ( char const * fn)
inline

◆ LookupEntry()

template<class T>
T const * DBCStorage< T >::LookupEntry ( uint32 id) const
inline

Definition at line 71 of file DBCStore.h.

References indexTable, and nCount.

Referenced by FillItemDamageFields().

◆ operator=()

template<class T>
DBCStorage & DBCStorage< T >::operator= ( DBCStorage< T > const & right)
privatedelete

References DBCStorage().

Member Data Documentation

◆ asChar

template<class T>
char** DBCStorage< T >::asChar

Definition at line 278 of file DBCStore.h.

◆ asT

template<class T>
T** DBCStorage< T >::asT

Definition at line 277 of file DBCStore.h.

◆ dataTable

template<class T>
T* DBCStorage< T >::dataTable
private

Definition at line 282 of file DBCStore.h.

Referenced by Clear(), DBCStorage(), Load(), and LoadStringsFrom().

◆ fieldCount

template<class T>
uint32 DBCStorage< T >::fieldCount
private

Definition at line 273 of file DBCStore.h.

Referenced by DBCStorage(), GetFieldCount(), and Load().

◆ fmt

template<class T>
char const* DBCStorage< T >::fmt
private

Definition at line 271 of file DBCStore.h.

Referenced by DBCStorage(), GetFormat(), Load(), and LoadStringsFrom().

◆ [union]

union { ... } DBCStorage< T >::indexTable

◆ nCount

template<class T>
uint32 DBCStorage< T >::nCount
private

Definition at line 272 of file DBCStore.h.

Referenced by Clear(), DBCStorage(), GetNumRows(), Load(), and LookupEntry().

◆ stringPoolList

template<class T>
StringPoolList DBCStorage< T >::stringPoolList
private

Definition at line 283 of file DBCStore.h.

Referenced by Clear(), Load(), and LoadStringsFrom().


The documentation for this class was generated from the following file: