TrinityCore
DB2StorageBase Class Reference

Interface class for common access. More...

#include <DB2Store.h>

+ Inheritance diagram for DB2StorageBase:

Public Member Functions

 DB2StorageBase (char const *fileName, DB2LoadInfo const *loadInfo)
 
 DB2StorageBase (DB2StorageBase const &)=delete
 
 DB2StorageBase (DB2StorageBase &&)=delete
 
DB2StorageBaseoperator= (DB2StorageBase const &)=delete
 
DB2StorageBaseoperator= (DB2StorageBase &&)=delete
 
 ~DB2StorageBase ()
 
uint32 GetTableHash () const
 
uint32 GetLayoutHash () const
 
bool HasRecord (uint32 id) const
 
void WriteRecord (uint32 id, LocaleConstant locale, ByteBuffer &buffer) const
 
void EraseRecord (uint32 id)
 
std::string const & GetFileName () const
 
uint32 GetFieldCount () const
 
DB2LoadInfo const * GetLoadInfo () const
 
uint32 GetNumRows () const
 
void Load (std::string const &path, LocaleConstant locale)
 
void LoadStringsFrom (std::string const &path, LocaleConstant locale)
 
void LoadFromDB ()
 
void LoadStringsFromDB (LocaleConstant locale)
 

Protected Attributes

uint32 _tableHash
 
uint32 _layoutHash
 
std::string _fileName
 
uint32 _fieldCount
 
DB2LoadInfo const * _loadInfo
 
char * _dataTable
 
char * _dataTableEx [2]
 
std::vector< char * > _stringPool
 
char ** _indexTable
 
uint32 _indexTableSize
 
uint32 _minId
 

Friends

class UnitTestDataLoader
 

Detailed Description

Interface class for common access.

Definition at line 30 of file DB2Store.h.

Constructor & Destructor Documentation

◆ DB2StorageBase() [1/3]

DB2StorageBase::DB2StorageBase ( char const *  fileName,
DB2LoadInfo const *  loadInfo 
)

Definition at line 25 of file DB2Store.cpp.

◆ DB2StorageBase() [2/3]

DB2StorageBase::DB2StorageBase ( DB2StorageBase const &  )
delete

◆ DB2StorageBase() [3/3]

DB2StorageBase::DB2StorageBase ( DB2StorageBase &&  )
delete

◆ ~DB2StorageBase()

DB2StorageBase::~DB2StorageBase ( )

Definition at line 31 of file DB2Store.cpp.

Member Function Documentation

◆ EraseRecord()

void DB2StorageBase::EraseRecord ( uint32  id)
inline

Definition at line 45 of file DB2Store.h.

◆ GetFieldCount()

uint32 DB2StorageBase::GetFieldCount ( ) const
inline

Definition at line 48 of file DB2Store.h.

◆ GetFileName()

std::string const & DB2StorageBase::GetFileName ( ) const
inline

Definition at line 47 of file DB2Store.h.

+ Here is the caller graph for this function:

◆ GetLayoutHash()

uint32 DB2StorageBase::GetLayoutHash ( ) const
inline

Definition at line 41 of file DB2Store.h.

◆ GetLoadInfo()

DB2LoadInfo const * DB2StorageBase::GetLoadInfo ( ) const
inline

Definition at line 49 of file DB2Store.h.

+ Here is the caller graph for this function:

◆ GetNumRows()

uint32 DB2StorageBase::GetNumRows ( ) const
inline

Definition at line 50 of file DB2Store.h.

◆ GetTableHash()

uint32 DB2StorageBase::GetTableHash ( ) const
inline

Definition at line 40 of file DB2Store.h.

+ Here is the caller graph for this function:

◆ HasRecord()

bool DB2StorageBase::HasRecord ( uint32  id) const
inline

Definition at line 43 of file DB2Store.h.

+ Here is the caller graph for this function:

◆ Load()

void DB2StorageBase::Load ( std::string const &  path,
LocaleConstant  locale 
)

Definition at line 88 of file DB2Store.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ LoadFromDB()

void DB2StorageBase::LoadFromDB ( )

Definition at line 127 of file DB2Store.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ LoadStringsFrom()

void DB2StorageBase::LoadStringsFrom ( std::string const &  path,
LocaleConstant  locale 
)

Definition at line 110 of file DB2Store.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ LoadStringsFromDB()

void DB2StorageBase::LoadStringsFromDB ( LocaleConstant  locale)

Definition at line 136 of file DB2Store.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ operator=() [1/2]

DB2StorageBase & DB2StorageBase::operator= ( DB2StorageBase &&  )
delete

◆ operator=() [2/2]

DB2StorageBase & DB2StorageBase::operator= ( DB2StorageBase const &  )
delete

◆ WriteRecord()

void DB2StorageBase::WriteRecord ( uint32  id,
LocaleConstant  locale,
ByteBuffer buffer 
) const

Definition at line 41 of file DB2Store.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Friends And Related Function Documentation

◆ UnitTestDataLoader

friend class UnitTestDataLoader
friend

Definition at line 70 of file DB2Store.h.

Member Data Documentation

◆ _dataTable

char* DB2StorageBase::_dataTable
protected

Definition at line 63 of file DB2Store.h.

◆ _dataTableEx

char* DB2StorageBase::_dataTableEx[2]
protected

Definition at line 64 of file DB2Store.h.

◆ _fieldCount

uint32 DB2StorageBase::_fieldCount
protected

Definition at line 61 of file DB2Store.h.

◆ _fileName

std::string DB2StorageBase::_fileName
protected

Definition at line 60 of file DB2Store.h.

◆ _indexTable

char** DB2StorageBase::_indexTable
protected

Definition at line 66 of file DB2Store.h.

◆ _indexTableSize

uint32 DB2StorageBase::_indexTableSize
protected

Definition at line 67 of file DB2Store.h.

◆ _layoutHash

uint32 DB2StorageBase::_layoutHash
protected

Definition at line 59 of file DB2Store.h.

◆ _loadInfo

DB2LoadInfo const* DB2StorageBase::_loadInfo
protected

Definition at line 62 of file DB2Store.h.

◆ _minId

uint32 DB2StorageBase::_minId
protected

Definition at line 68 of file DB2Store.h.

◆ _stringPool

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

Definition at line 65 of file DB2Store.h.

◆ _tableHash

uint32 DB2StorageBase::_tableHash
protected

Definition at line 58 of file DB2Store.h.


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