WoW Model Viewer
Your premiere tool for viewing, equipping and animating World of Warcraft models.
Loading...
Searching...
No Matches
DB2Row Class Reference

Lightweight handle to a single row in a DB2Table. More...

#include <DB2Table.h>

Collaboration diagram for DB2Row:
[legend]

Public Member Functions

 DB2Row ()=default
 
 DB2Row (const DB2Table *table, size_t recordIndex)
 
bool isValid () const
 
 operator bool () const
 
uint32_t recordID () const
 
uint32_t getUInt (const std::string &field, unsigned int arrayIndex=0) const
 
int32_t getInt (const std::string &field, unsigned int arrayIndex=0) const
 
float getFloat (const std::string &field, unsigned int arrayIndex=0) const
 
std::string getString (const std::string &field, unsigned int arrayIndex=0) const
 

Private Attributes

const DB2Tablem_table = nullptr
 
size_t m_recordIndex = SIZE_MAX
 

Detailed Description

Lightweight handle to a single row in a DB2Table.

Definition at line 26 of file DB2Table.h.

Constructor & Destructor Documentation

◆ DB2Row() [1/2]

DB2Row::DB2Row ( )
default

◆ DB2Row() [2/2]

DB2Row::DB2Row ( const DB2Table table,
size_t  recordIndex 
)
inline

Definition at line 30 of file DB2Table.h.

Member Function Documentation

◆ getFloat()

float DB2Row::getFloat ( const std::string &  field,
unsigned int  arrayIndex = 0 
) const

Definition at line 54 of file DB2Table.cpp.

Here is the call graph for this function:

◆ getInt()

int32_t DB2Row::getInt ( const std::string &  field,
unsigned int  arrayIndex = 0 
) const

Definition at line 26 of file DB2Table.cpp.

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

◆ getString()

std::string DB2Row::getString ( const std::string &  field,
unsigned int  arrayIndex = 0 
) const

Definition at line 67 of file DB2Table.cpp.

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

◆ getUInt()

uint32_t DB2Row::getUInt ( const std::string &  field,
unsigned int  arrayIndex = 0 
) const

Definition at line 17 of file DB2Table.cpp.

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

◆ isValid()

bool DB2Row::isValid ( ) const
inline

Definition at line 33 of file DB2Table.h.

Here is the caller graph for this function:

◆ operator bool()

DB2Row::operator bool ( ) const
inlineexplicit

Definition at line 34 of file DB2Table.h.

Here is the call graph for this function:

◆ recordID()

uint32_t DB2Row::recordID ( ) const

Definition at line 11 of file DB2Table.cpp.

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

Member Data Documentation

◆ m_recordIndex

size_t DB2Row::m_recordIndex = SIZE_MAX
private

Definition at line 45 of file DB2Table.h.

◆ m_table

const DB2Table* DB2Row::m_table = nullptr
private

Definition at line 44 of file DB2Table.h.


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