TrinityCore
Loading...
Searching...
No Matches
DBCStorageBase Class Referenceabstract

Interface class for common access. More...

#include <DBCStore.h>

+ Inheritance diagram for DBCStorageBase:

Public Member Functions

 DBCStorageBase (char const *fmt)
 
virtual ~DBCStorageBase ()
 
char const * GetFormat () const
 
uint32 GetFieldCount () const
 
virtual bool Load (char const *path)=0
 
virtual bool LoadStringsFrom (char const *path)=0
 
virtual void LoadFromDB (char const *table, char const *format, char const *index)=0
 

Protected Member Functions

bool Load (char const *path, char **&indexTable)
 
bool LoadStringsFrom (char const *path, char **indexTable)
 
void LoadFromDB (char const *table, char const *format, char const *index, char **&indexTable)
 

Protected Attributes

uint32 _fieldCount
 
char const * _fileFormat
 
char * _dataTable
 
std::vector< char * > _stringPool
 
uint32 _indexTableSize
 

Detailed Description

Interface class for common access.

Definition at line 27 of file DBCStore.h.

Constructor & Destructor Documentation

◆ DBCStorageBase()

DBCStorageBase::DBCStorageBase ( char const *  fmt)

Definition at line 21 of file DBCStore.cpp.

◆ ~DBCStorageBase()

DBCStorageBase::~DBCStorageBase ( )
virtual

Definition at line 25 of file DBCStore.cpp.

Member Function Documentation

◆ GetFieldCount()

uint32 DBCStorageBase::GetFieldCount ( ) const
inline

Definition at line 34 of file DBCStore.h.

+ Here is the caller graph for this function:

◆ GetFormat()

char const * DBCStorageBase::GetFormat ( ) const
inline

Definition at line 33 of file DBCStore.h.

+ Here is the caller graph for this function:

◆ Load() [1/2]

virtual bool DBCStorageBase::Load ( char const *  path)
pure virtual

Implemented in DBCStorage< T >.

+ Here is the caller graph for this function:

◆ Load() [2/2]

bool DBCStorageBase::Load ( char const *  path,
char **&  indexTable 
)
protected

Definition at line 32 of file DBCStore.cpp.

+ Here is the call graph for this function:

◆ LoadFromDB() [1/2]

virtual void DBCStorageBase::LoadFromDB ( char const *  table,
char const *  format,
char const *  index 
)
pure virtual

Implemented in DBCStorage< T >.

+ Here is the caller graph for this function:

◆ LoadFromDB() [2/2]

void DBCStorageBase::LoadFromDB ( char const *  table,
char const *  format,
char const *  index,
char **&  indexTable 
)
protected

Definition at line 72 of file DBCStore.cpp.

+ Here is the call graph for this function:

◆ LoadStringsFrom() [1/2]

virtual bool DBCStorageBase::LoadStringsFrom ( char const *  path)
pure virtual

Implemented in DBCStorage< T >.

+ Here is the caller graph for this function:

◆ LoadStringsFrom() [2/2]

bool DBCStorageBase::LoadStringsFrom ( char const *  path,
char **  indexTable 
)
protected

Definition at line 54 of file DBCStore.cpp.

+ Here is the call graph for this function:

Member Data Documentation

◆ _dataTable

char* DBCStorageBase::_dataTable
protected

Definition at line 47 of file DBCStore.h.

◆ _fieldCount

uint32 DBCStorageBase::_fieldCount
protected

Definition at line 45 of file DBCStore.h.

◆ _fileFormat

char const* DBCStorageBase::_fileFormat
protected

Definition at line 46 of file DBCStore.h.

◆ _indexTableSize

uint32 DBCStorageBase::_indexTableSize
protected

Definition at line 49 of file DBCStore.h.

◆ _stringPool

std::vector<char*> DBCStorageBase::_stringPool
protected

Definition at line 48 of file DBCStore.h.


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