AzerothCore 3.3.5a
OpenSource WoW Emulator
|
#include "dbcfile.h"
Classes | |
class | Exception |
class | Iterator |
class | NotFound |
class | Record |
Public Member Functions | |
DBCFile (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 (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 |
DBCFile::DBCFile | ( | std::string | filename | ) |
DBCFile::DBCFile | ( | std::string | filename | ) |
DBCFile::~DBCFile | ( | ) |
DBCFile::Iterator DBCFile::begin | ( | ) |
Iterator DBCFile::begin | ( | ) |
Get begin iterator over records.
DBCFile::Iterator DBCFile::end | ( | ) |
Get begin iterator over records.
References data, and stringTable.
Iterator DBCFile::end | ( | ) |
Get begin iterator over records.
|
inline |
References fieldCount.
|
inline |
References fieldCount.
size_t DBCFile::getMaxId | ( | ) |
References data, getRecord(), getRecordCount(), and DBCFile::Record::getUInt().
DBCFile::Record DBCFile::getRecord | ( | size_t | id | ) |
References data, and recordSize.
Referenced by ExtractCameraFiles(), getMaxId(), main(), ReadLiquidTypeTableDBC(), and ReadMapDBC().
Record DBCFile::getRecord | ( | size_t | id | ) |
|
inline |
Trivial.
References recordCount.
Referenced by ExtractCameraFiles(), getMaxId(), main(), ReadLiquidTypeTableDBC(), and ReadMapDBC().
|
inline |
bool DBCFile::open | ( | ) |
References MPQFile::close(), data, fieldCount, filename, MPQFile::read(), recordCount, recordSize, stringSize, and stringTable.
Referenced by ExtractCameraFiles(), ExtractGameobjectModels(), main(), ReadLiquidTypeTableDBC(), and ReadMapDBC().
bool DBCFile::open | ( | ) |
|
private |
Referenced by begin(), end(), getMaxId(), getRecord(), open(), and ~DBCFile().
|
private |
|
private |
Referenced by open().
|
private |
Referenced by getRecordCount(), and open().
|
private |
Referenced by DBCFile::Record::getByte(), getRecord(), open(), and DBCFile::Iterator::operator++().
|
private |
Referenced by DBCFile::Record::getString(), and open().
|
private |
Referenced by end(), DBCFile::Record::getString(), and open().