TrinityCore
DB2Record Class Reference

#include <DB2FileLoader.h>

Public Member Functions

 DB2Record (DB2FileLoaderImpl const &db2, uint32 recordIndex, std::size_t *fieldOffsets)
 
 DB2Record (DB2Record const &other)
 
 DB2Record (DB2Record &&other) noexcept
 
DB2Recordoperator= (DB2Record const &other)=delete
 
DB2Recordoperator= (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
 

Detailed Description

Definition at line 129 of file DB2FileLoader.h.

Constructor & Destructor Documentation

◆ DB2Record() [1/3]

DB2Record::DB2Record ( DB2FileLoaderImpl const &  db2,
uint32  recordIndex,
std::size_t *  fieldOffsets 
)

Definition at line 1676 of file DB2FileLoader.cpp.

◆ DB2Record() [2/3]

DB2Record::DB2Record ( DB2Record const &  other)

Definition at line 1681 of file DB2FileLoader.cpp.

◆ DB2Record() [3/3]

DB2Record::DB2Record ( DB2Record &&  other)
noexcept

Definition at line 1686 of file DB2FileLoader.cpp.

◆ ~DB2Record()

DB2Record::~DB2Record ( )

Definition at line 1691 of file DB2FileLoader.cpp.

+ Here is the call graph for this function:

Member Function Documentation

◆ GetFloat() [1/2]

float DB2Record::GetFloat ( char const *  fieldName) const

Definition at line 1771 of file DB2FileLoader.cpp.

+ Here is the call graph for this function:

◆ GetFloat() [2/2]

float DB2Record::GetFloat ( uint32  field,
uint32  arrayIndex 
) const

Definition at line 1766 of file DB2FileLoader.cpp.

+ Here is the call graph for this function:

◆ GetId()

uint32 DB2Record::GetId ( ) const

Definition at line 1701 of file DB2FileLoader.cpp.

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

◆ GetInt32() [1/2]

int32 DB2Record::GetInt32 ( char const *  fieldName) const

Definition at line 1747 of file DB2FileLoader.cpp.

+ Here is the call graph for this function:

◆ GetInt32() [2/2]

int32 DB2Record::GetInt32 ( uint32  field,
uint32  arrayIndex 
) const

Definition at line 1742 of file DB2FileLoader.cpp.

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

◆ GetString() [1/2]

char const * DB2Record::GetString ( char const *  fieldName) const

Definition at line 1783 of file DB2FileLoader.cpp.

+ Here is the call graph for this function:

◆ GetString() [2/2]

char const * DB2Record::GetString ( uint32  field,
uint32  arrayIndex 
) const

Definition at line 1778 of file DB2FileLoader.cpp.

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

◆ GetUInt16() [1/2]

uint16 DB2Record::GetUInt16 ( char const *  fieldName) const

Definition at line 1723 of file DB2FileLoader.cpp.

+ Here is the call graph for this function:

◆ GetUInt16() [2/2]

uint16 DB2Record::GetUInt16 ( uint32  field,
uint32  arrayIndex 
) const

Definition at line 1718 of file DB2FileLoader.cpp.

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

◆ GetUInt32() [1/2]

uint32 DB2Record::GetUInt32 ( char const *  fieldName) const

Definition at line 1735 of file DB2FileLoader.cpp.

+ Here is the call graph for this function:

◆ GetUInt32() [2/2]

uint32 DB2Record::GetUInt32 ( uint32  field,
uint32  arrayIndex 
) const

Definition at line 1730 of file DB2FileLoader.cpp.

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

◆ GetUInt64() [1/2]

uint64 DB2Record::GetUInt64 ( char const *  fieldName) const

Definition at line 1759 of file DB2FileLoader.cpp.

+ Here is the call graph for this function:

◆ GetUInt64() [2/2]

uint64 DB2Record::GetUInt64 ( uint32  field,
uint32  arrayIndex 
) const

Definition at line 1754 of file DB2FileLoader.cpp.

+ Here is the call graph for this function:

◆ GetUInt8() [1/2]

uint8 DB2Record::GetUInt8 ( char const *  fieldName) const

Definition at line 1711 of file DB2FileLoader.cpp.

+ Here is the call graph for this function:

◆ GetUInt8() [2/2]

uint8 DB2Record::GetUInt8 ( uint32  field,
uint32  arrayIndex 
) const

Definition at line 1706 of file DB2FileLoader.cpp.

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

◆ MakePersistent()

void DB2Record::MakePersistent ( )

Definition at line 1790 of file DB2FileLoader.cpp.

+ Here is the call graph for this function:

◆ operator bool()

DB2Record::operator bool ( ) const
explicit

Definition at line 1696 of file DB2FileLoader.cpp.

◆ operator=() [1/2]

DB2Record & DB2Record::operator= ( DB2Record &&  other)
deletenoexcept

◆ operator=() [2/2]

DB2Record & DB2Record::operator= ( DB2Record const &  other)
delete

Member Data Documentation

◆ _db2

DB2FileLoaderImpl const& DB2Record::_db2
private

Definition at line 164 of file DB2FileLoader.h.

◆ _fieldOffsets

std::size_t* DB2Record::_fieldOffsets
private

Definition at line 167 of file DB2FileLoader.h.

◆ _recordData

unsigned char const* DB2Record::_recordData
private

Definition at line 166 of file DB2FileLoader.h.

◆ _recordIndex

uint32 DB2Record::_recordIndex
private

Definition at line 165 of file DB2FileLoader.h.


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