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

#include <dbcfile.h>

Classes

class  Exception
 
class  Iterator
 
class  NotFound
 
class  Record
 

Public Member Functions

 DBCFile (const std::string &filename)
 
 ~DBCFile ()
 
bool open ()
 
Record getRecord (size_t id)
 
Iterator begin ()
 Get begin iterator over records.
 
Iterator end ()
 Get begin iterator over records.
 
size_t getRecordCount () const
 Trivial.
 
size_t getFieldCount () const
 
size_t getMaxId ()
 
 DBCFile (const std::string &filename)
 
 ~DBCFile ()
 
bool open ()
 
Record getRecord (size_t id)
 
Iterator begin ()
 Get begin iterator over records.
 
Iterator end ()
 Get begin iterator over records.
 
size_t getRecordCount () const
 Trivial.
 
size_t getFieldCount () const
 

Private Attributes

std::string filename
 
size_t recordSize
 
size_t recordCount
 
size_t fieldCount
 
size_t stringSize
 
unsigned char * data
 
unsigned char * stringTable
 

Detailed Description

Definition at line 23 of file dbcfile.h.

Constructor & Destructor Documentation

◆ DBCFile() [1/2]

DBCFile::DBCFile ( const std::string &  filename)

Definition at line 21 of file dbcfile.cpp.

◆ ~DBCFile() [1/2]

DBCFile::~DBCFile ( )

Definition at line 64 of file dbcfile.cpp.

◆ DBCFile() [2/2]

DBCFile::DBCFile ( const std::string &  filename)

◆ ~DBCFile() [2/2]

DBCFile::~DBCFile ( )

Member Function Documentation

◆ begin() [1/2]

DBCFile::Iterator DBCFile::begin ( )

Get begin iterator over records.

Definition at line 88 of file dbcfile.cpp.

+ Here is the caller graph for this function:

◆ begin() [2/2]

Iterator DBCFile::begin ( )

Get begin iterator over records.

◆ end() [1/2]

DBCFile::Iterator DBCFile::end ( )

Get begin iterator over records.

Definition at line 93 of file dbcfile.cpp.

+ Here is the caller graph for this function:

◆ end() [2/2]

Iterator DBCFile::end ( )

Get begin iterator over records.

◆ getFieldCount() [1/2]

size_t DBCFile::getFieldCount ( ) const
inline

Definition at line 124 of file dbcfile.h.

◆ getFieldCount() [2/2]

size_t DBCFile::getFieldCount ( ) const
inline

Definition at line 139 of file dbcfile.h.

◆ getMaxId()

size_t DBCFile::getMaxId ( )

Definition at line 75 of file dbcfile.cpp.

+ Here is the call graph for this function:

◆ getRecord() [1/2]

DBCFile::Record DBCFile::getRecord ( size_t  id)

Definition at line 69 of file dbcfile.cpp.

+ Here is the caller graph for this function:

◆ getRecord() [2/2]

Record DBCFile::getRecord ( size_t  id)

◆ getRecordCount() [1/2]

size_t DBCFile::getRecordCount ( ) const
inline

Trivial.

Definition at line 123 of file dbcfile.h.

+ Here is the caller graph for this function:

◆ getRecordCount() [2/2]

size_t DBCFile::getRecordCount ( ) const
inline

Trivial.

Definition at line 138 of file dbcfile.h.

◆ open() [1/2]

bool DBCFile::open ( )

Definition at line 27 of file dbcfile.cpp.

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

◆ open() [2/2]

bool DBCFile::open ( )

Member Data Documentation

◆ data

unsigned char * DBCFile::data
private

Definition at line 132 of file dbcfile.h.

◆ fieldCount

size_t DBCFile::fieldCount
private

Definition at line 130 of file dbcfile.h.

◆ filename

std::string DBCFile::filename
private

Definition at line 127 of file dbcfile.h.

◆ recordCount

size_t DBCFile::recordCount
private

Definition at line 129 of file dbcfile.h.

◆ recordSize

size_t DBCFile::recordSize
private

Definition at line 128 of file dbcfile.h.

◆ stringSize

size_t DBCFile::stringSize
private

Definition at line 131 of file dbcfile.h.

◆ stringTable

unsigned char * DBCFile::stringTable
private

Definition at line 133 of file dbcfile.h.


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