TrinityCore
Loading...
Searching...
No Matches
DBCFileLoader Class Reference

#include <DBCFileLoader.h>

Classes

class  Record
 

Public Member Functions

 DBCFileLoader ()
 
 ~DBCFileLoader ()
 
bool Load (const char *filename, const char *fmt)
 
Record getRecord (size_t id)
 
uint32 GetNumRows () const
 Get begin iterator over records.
 
uint32 GetRowSize () const
 
uint32 GetCols () const
 
uint32 GetOffset (size_t id) const
 
bool IsLoaded () const
 
char * AutoProduceData (char const *fmt, uint32 &count, char **&indexTable)
 
char * AutoProduceStrings (char const *fmt, char *dataTable)
 

Static Public Member Functions

static uint32 GetFormatRecordSize (const char *format, int32 *index_pos=nullptr)
 

Private Member Functions

 DBCFileLoader (DBCFileLoader const &right)=delete
 
DBCFileLoaderoperator= (DBCFileLoader const &right)=delete
 

Private Attributes

uint32 recordSize
 
uint32 recordCount
 
uint32 fieldCount
 
uint32 stringSize
 
uint32fieldsOffset
 
unsigned char * data
 
unsigned char * stringTable
 

Detailed Description

Definition at line 40 of file DBCFileLoader.h.

Constructor & Destructor Documentation

◆ DBCFileLoader() [1/2]

DBCFileLoader::DBCFileLoader ( )

Definition at line 25 of file DBCFileLoader.cpp.

◆ ~DBCFileLoader()

DBCFileLoader::~DBCFileLoader ( )

Definition at line 111 of file DBCFileLoader.cpp.

◆ DBCFileLoader() [2/2]

DBCFileLoader::DBCFileLoader ( DBCFileLoader const &  right)
privatedelete

Member Function Documentation

◆ AutoProduceData()

char * DBCFileLoader::AutoProduceData ( char const *  fmt,
uint32 count,
char **&  indexTable 
)

Definition at line 169 of file DBCFileLoader.cpp.

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

◆ AutoProduceStrings()

char * DBCFileLoader::AutoProduceStrings ( char const *  fmt,
char *  dataTable 
)

Definition at line 261 of file DBCFileLoader.cpp.

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

◆ GetCols()

uint32 DBCFileLoader::GetCols ( ) const
inline

Definition at line 94 of file DBCFileLoader.h.

+ Here is the caller graph for this function:

◆ GetFormatRecordSize()

uint32 DBCFileLoader::GetFormatRecordSize ( const char *  format,
int32 index_pos = nullptr 
)
static

Definition at line 124 of file DBCFileLoader.cpp.

+ Here is the caller graph for this function:

◆ GetNumRows()

uint32 DBCFileLoader::GetNumRows ( ) const
inline

Get begin iterator over records.

Definition at line 92 of file DBCFileLoader.h.

+ Here is the caller graph for this function:

◆ GetOffset()

uint32 DBCFileLoader::GetOffset ( size_t  id) const
inline

Definition at line 95 of file DBCFileLoader.h.

◆ getRecord()

DBCFileLoader::Record DBCFileLoader::getRecord ( size_t  id)

Definition at line 118 of file DBCFileLoader.cpp.

+ Here is the caller graph for this function:

◆ GetRowSize()

uint32 DBCFileLoader::GetRowSize ( ) const
inline

Definition at line 93 of file DBCFileLoader.h.

◆ IsLoaded()

bool DBCFileLoader::IsLoaded ( ) const
inline

Definition at line 96 of file DBCFileLoader.h.

◆ Load()

bool DBCFileLoader::Load ( const char *  filename,
const char *  fmt 
)

Definition at line 27 of file DBCFileLoader.cpp.

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

◆ operator=()

DBCFileLoader & DBCFileLoader::operator= ( DBCFileLoader const &  right)
privatedelete

Member Data Documentation

◆ data

unsigned char* DBCFileLoader::data
private

Definition at line 107 of file DBCFileLoader.h.

◆ fieldCount

uint32 DBCFileLoader::fieldCount
private

Definition at line 104 of file DBCFileLoader.h.

◆ fieldsOffset

uint32* DBCFileLoader::fieldsOffset
private

Definition at line 106 of file DBCFileLoader.h.

◆ recordCount

uint32 DBCFileLoader::recordCount
private

Definition at line 103 of file DBCFileLoader.h.

◆ recordSize

uint32 DBCFileLoader::recordSize
private

Definition at line 102 of file DBCFileLoader.h.

◆ stringSize

uint32 DBCFileLoader::stringSize
private

Definition at line 105 of file DBCFileLoader.h.

◆ stringTable

unsigned char* DBCFileLoader::stringTable
private

Definition at line 108 of file DBCFileLoader.h.


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