SQLite::RealRecord Class Reference

Class handling a single SQLite record (row). More...

Collaboration diagram for SQLite::RealRecord:
Collaboration graph
[legend]

List of all members.

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

Realsetm_pSet
 Pointer to the record set this record belongs to.

Detailed Description

Class handling a single SQLite record (row).

Definition at line 26 of file SQLiteDB.cpp.


Constructor & Destructor Documentation

SQLite::RealRecord::RealRecord ( Realset pSet,
char **  pData,
int  nColumns 
) [inline]

Constructor from a query result.

Parameters:
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).

Parameters:
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.


Member Function Documentation

std::tstring SQLite::RealRecord::GetField ( const std::tstring &  sName  )  const

Retrieves a field value (by field name).

Parameters:
sName The name of the field to retrieve value of
Returns:
The contents of the requested field

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).

Parameters:
nColumn The field to retrieve the value of
Returns:
The contents of the field

Definition at line 58 of file SQLiteDB.cpp.

Referenced by SQLite::Record::GetField(), and SQLite::Record::operator[]().


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

Generated on Mon Jun 18 12:40:50 2012 for CC PDF Converter by doxygen 1.6.1