![]() |
TrinityCore
|
#include <DB2FileLoader.h>
Public Member Functions | |
| DB2Record (DB2FileLoaderImpl const &db2, uint32 recordIndex, std::size_t *fieldOffsets) | |
| DB2Record (DB2Record const &other) | |
| DB2Record (DB2Record &&other) noexcept | |
| DB2Record & | operator= (DB2Record const &other)=delete |
| DB2Record & | operator= (DB2Record &&other) noexcept=delete |
| ~DB2Record () | |
| operator bool () const | |
| uint32 | GetId () const |
| uint8 | GetUInt8 (uint32 field, uint32 arrayIndex) const |
| uint8 | GetUInt8 (char const *fieldName) const |
| uint16 | GetUInt16 (uint32 field, uint32 arrayIndex) const |
| uint16 | GetUInt16 (char const *fieldName) const |
| uint32 | GetUInt32 (uint32 field, uint32 arrayIndex) const |
| uint32 | GetUInt32 (char const *fieldName) const |
| int32 | GetInt32 (uint32 field, uint32 arrayIndex) const |
| int32 | GetInt32 (char const *fieldName) const |
| uint64 | GetUInt64 (uint32 field, uint32 arrayIndex) const |
| uint64 | GetUInt64 (char const *fieldName) const |
| float | GetFloat (uint32 field, uint32 arrayIndex) const |
| float | GetFloat (char const *fieldName) const |
| char const * | GetString (uint32 field, uint32 arrayIndex) const |
| char const * | GetString (char const *fieldName) const |
| void | MakePersistent () |
Private Attributes | |
| DB2FileLoaderImpl const & | _db2 |
| uint32 | _recordIndex |
| unsigned char const * | _recordData |
| std::size_t * | _fieldOffsets |
Definition at line 129 of file DB2FileLoader.h.
| DB2Record::DB2Record | ( | DB2FileLoaderImpl const & | db2, |
| uint32 | recordIndex, | ||
| std::size_t * | fieldOffsets | ||
| ) |
Definition at line 1598 of file DB2FileLoader.cpp.
| DB2Record::DB2Record | ( | DB2Record const & | other | ) |
Definition at line 1603 of file DB2FileLoader.cpp.
|
noexcept |
Definition at line 1608 of file DB2FileLoader.cpp.
| DB2Record::~DB2Record | ( | ) |
Definition at line 1613 of file DB2FileLoader.cpp.
References _db2, _fieldOffsets, and DB2FileLoaderImpl::RecordDestroyFieldOffsets().
| float DB2Record::GetFloat | ( | char const * | fieldName | ) | const |
Definition at line 1693 of file DB2FileLoader.cpp.
References _db2, _recordData, ASSERT, DB2FileLoadInfo::GetFieldIndexByName(), DB2FileLoaderImpl::GetLoadInfo(), and DB2FileLoaderImpl::RecordGetFloat().
Definition at line 1688 of file DB2FileLoader.cpp.
References _db2, _recordData, and DB2FileLoaderImpl::RecordGetFloat().
| uint32 DB2Record::GetId | ( | ) | const |
Definition at line 1623 of file DB2FileLoader.cpp.
References _db2, _recordData, _recordIndex, and DB2FileLoaderImpl::RecordGetId().
Referenced by ExtractGameobjectModels(), LoadLiquid(), LoadMap(), ReadLiquidMaterialTable(), ReadLiquidObjectTable(), ReadLiquidTypeTable(), ReadMapDBC(), and ReadMapTable().
| int32 DB2Record::GetInt32 | ( | char const * | fieldName | ) | const |
Definition at line 1669 of file DB2FileLoader.cpp.
References _db2, _recordData, ASSERT, DB2FileLoadInfo::GetFieldIndexByName(), DB2FileLoaderImpl::GetLoadInfo(), and DB2FileLoaderImpl::RecordGetInt32().
Definition at line 1664 of file DB2FileLoader.cpp.
References _db2, _recordData, and DB2FileLoaderImpl::RecordGetInt32().
Referenced by LoadMap(), ReadMapDBC(), and ReadMapTable().
| char const * DB2Record::GetString | ( | char const * | fieldName | ) | const |
Definition at line 1705 of file DB2FileLoader.cpp.
References _db2, _recordData, ASSERT, DB2FileLoadInfo::GetFieldIndexByName(), DB2FileLoaderImpl::GetLoadInfo(), and DB2FileLoaderImpl::RecordGetString().
Definition at line 1700 of file DB2FileLoader.cpp.
References _db2, _recordData, and DB2FileLoaderImpl::RecordGetString().
Referenced by ReadMapDBC(), and ReadMapTable().
| uint16 DB2Record::GetUInt16 | ( | char const * | fieldName | ) | const |
Definition at line 1645 of file DB2FileLoader.cpp.
References _db2, _recordData, ASSERT, DB2FileLoadInfo::GetFieldIndexByName(), DB2FileLoaderImpl::GetLoadInfo(), and DB2FileLoaderImpl::RecordGetUInt16().
Definition at line 1640 of file DB2FileLoader.cpp.
References _db2, _recordData, and DB2FileLoaderImpl::RecordGetUInt16().
Referenced by LoadMap(), ReadLiquidObjectTable(), and ReadMapTable().
| uint32 DB2Record::GetUInt32 | ( | char const * | fieldName | ) | const |
Definition at line 1657 of file DB2FileLoader.cpp.
References _db2, _recordData, ASSERT, DB2FileLoadInfo::GetFieldIndexByName(), DB2FileLoaderImpl::GetLoadInfo(), and DB2FileLoaderImpl::RecordGetUInt32().
Definition at line 1652 of file DB2FileLoader.cpp.
References _db2, _recordData, and DB2FileLoaderImpl::RecordGetUInt32().
Referenced by ExtractGameobjectModels(), ReadCinematicCameraDBC(), and ReadLiquidMaterialTable().
| uint64 DB2Record::GetUInt64 | ( | char const * | fieldName | ) | const |
Definition at line 1681 of file DB2FileLoader.cpp.
References _db2, _recordData, ASSERT, DB2FileLoadInfo::GetFieldIndexByName(), DB2FileLoaderImpl::GetLoadInfo(), and DB2FileLoaderImpl::RecordGetUInt64().
Definition at line 1676 of file DB2FileLoader.cpp.
References _db2, _recordData, and DB2FileLoaderImpl::RecordGetUInt64().
| uint8 DB2Record::GetUInt8 | ( | char const * | fieldName | ) | const |
Definition at line 1633 of file DB2FileLoader.cpp.
References _db2, _recordData, ASSERT, DB2FileLoadInfo::GetFieldIndexByName(), DB2FileLoaderImpl::GetLoadInfo(), and DB2FileLoaderImpl::RecordGetUInt8().
Definition at line 1628 of file DB2FileLoader.cpp.
References _db2, _recordData, and DB2FileLoaderImpl::RecordGetUInt8().
Referenced by LoadLiquid(), LoadMap(), ReadLiquidMaterialTable(), and ReadLiquidTypeTable().
| void DB2Record::MakePersistent | ( | ) |
Definition at line 1712 of file DB2FileLoader.cpp.
References _db2, _fieldOffsets, and DB2FileLoaderImpl::RecordCreateDetachedFieldOffsets().
|
explicit |
Definition at line 1618 of file DB2FileLoader.cpp.
|
private |
Definition at line 164 of file DB2FileLoader.h.
Referenced by GetFloat(), GetFloat(), GetId(), GetInt32(), GetInt32(), GetString(), GetString(), GetUInt16(), GetUInt16(), GetUInt32(), GetUInt32(), GetUInt64(), GetUInt64(), GetUInt8(), GetUInt8(), MakePersistent(), and ~DB2Record().
|
private |
Definition at line 167 of file DB2FileLoader.h.
Referenced by MakePersistent(), and ~DB2Record().
|
private |
Definition at line 166 of file DB2FileLoader.h.
Referenced by GetFloat(), GetFloat(), GetId(), GetInt32(), GetInt32(), GetString(), GetString(), GetUInt16(), GetUInt16(), GetUInt32(), GetUInt32(), GetUInt64(), GetUInt64(), GetUInt8(), and GetUInt8().
|
private |
Definition at line 165 of file DB2FileLoader.h.
Referenced by GetId().