Class handling a single SQLite record (row). More...
Public Member Functions | |
RealRecord (Realset *pSet, char **pData, int nColumns) | |
Constructor from a query result. | |
RealRecord (Realset *pSet, RealStatement *pStatement, int nColumns) | |
Constructor from a statement (used while stepping through it). | |
virtual | ~RealRecord () |
std::tstring | GetField (int nColumn) const |
Retrieves a field value (by field order). | |
std::tstring | GetField (const std::tstring &sName) const |
Retrieves a field value (by field name). | |
Protected Attributes | |
Realset * | m_pSet |
Pointer to the record set this record belongs to. |
Class handling a single SQLite record (row).
Definition at line 26 of file SQLiteDB.cpp.
SQLite::RealRecord::RealRecord | ( | Realset * | pSet, | |
char ** | pData, | |||
int | nColumns | |||
) | [inline] |
Constructor from a query result.
pSet | Record set this record belongs to | |
pData | The data of the record | |
nColumns | Number of fields in the record |
Definition at line 36 of file SQLiteDB.cpp.
References MakeTString().
SQLite::RealRecord::RealRecord | ( | Realset * | pSet, | |
RealStatement * | pStatement, | |||
int | nColumns | |||
) |
Constructor from a statement (used while stepping through it).
pSet | The result set this record belongs to | |
pStatement | The statement that this record was created from | |
nColumns | The number of columns in the result |
Definition at line 786 of file SQLiteDB.cpp.
References SQLite::RealStatement::m_pStatement, and MakeTString().
virtual SQLite::RealRecord::~RealRecord | ( | ) | [inline, virtual] |
Destructor
Definition at line 42 of file SQLiteDB.cpp.
std::tstring SQLite::RealRecord::GetField | ( | const std::tstring & | sName | ) | const |
Retrieves a field value (by field name).
sName | The name of the field to retrieve value of |
Definition at line 283 of file SQLiteDB.cpp.
References SQLite::Realset::GetColumn(), and m_pSet.
std::tstring SQLite::RealRecord::GetField | ( | int | nColumn | ) | const [inline] |
Retrieves a field value (by field order).
nColumn | The field to retrieve the value of |
Definition at line 58 of file SQLiteDB.cpp.
Referenced by SQLite::Record::GetField(), and SQLite::Record::operator[]().