My Project
SallyAPI::Database::CResultSet Class Reference

Result set. More...

#include <ResultSet.h>

List of all members.

Public Member Functions

 CResultSet (sqlite3_stmt *ps)
 Constructor.
 ~CResultSet ()
 Destructor.
bool Next ()
 Nexts this object.
bool IsNull (int colNum)
 Query if 'colNum' is null.
std::string GetString (int colNum)
 Gets a string.
int GetInt (int colNum)
 Gets an int.
long GetLong (int colNum)
 Gets a long.
unsigned int GetUInt (int colNum)
 Gets a u int.
unsigned long GetULong (int colNum)
 Gets a u long.
float GetFloat (int colNum)
 Gets a float.
double GetDouble (int colNum)
 Gets a double.
bool GetBoolean (int colNum)
 Gets a boolean.
CResultSetMetaDataGetMetaData ()
 Gets the meta data.

Detailed Description

Result set.

Author:
Christian Knobloch
Date:
19.04.2010

Constructor & Destructor Documentation

CResultSet::CResultSet ( sqlite3_stmt *  ps)

Constructor.

Author:
Christian Knobloch
Date:
19.04.2010
Exceptions:
CSQLExceptionThrown when csql.
Parameters:
[in,out]psIf non-null, the ps.

Destructor.

Author:
Christian Knobloch
Date:
19.04.2010

Member Function Documentation

bool CResultSet::GetBoolean ( int  colNum)

Gets a boolean.

Author:
Christian Knobloch
Date:
19.04.2010
Parameters:
colNumThe col number.
Returns:
true if it succeeds, false if it fails.
double CResultSet::GetDouble ( int  colNum)

Gets a double.

Author:
Christian Knobloch
Date:
19.04.2010
Parameters:
colNumThe col number.
Returns:
The double.
float CResultSet::GetFloat ( int  colNum)

Gets a float.

Author:
Christian Knobloch
Date:
19.04.2010
Parameters:
colNumThe col number.
Returns:
The float.
int CResultSet::GetInt ( int  colNum)

Gets an int.

Author:
Christian Knobloch
Date:
19.04.2010
Parameters:
colNumThe col number.
Returns:
The int.
long CResultSet::GetLong ( int  colNum)

Gets a long.

Author:
Christian Knobloch
Date:
19.04.2010
Parameters:
colNumThe col number.
Returns:
The long.

Gets the meta data.

Author:
Christian Knobloch
Date:
19.04.2010
Returns:
null if it fails, else the meta data.
std::string CResultSet::GetString ( int  colNum)

Gets a string.

Author:
Christian Knobloch
Date:
19.04.2010
Exceptions:
CSQLExceptionThrown when csql.
Parameters:
colNumThe col number.
Returns:
The string.
unsigned int CResultSet::GetUInt ( int  colNum)

Gets a u int.

Author:
Christian Knobloch
Date:
19.04.2010
Parameters:
colNumThe col number.
Returns:
The u int.
unsigned long CResultSet::GetULong ( int  colNum)

Gets a u long.

Author:
Christian Knobloch
Date:
19.04.2010
Parameters:
colNumThe col number.
Returns:
The u long.
bool CResultSet::IsNull ( int  colNum)

Query if 'colNum' is null.

Author:
Christian Knobloch
Date:
19.04.2010
Parameters:
colNumThe col number.
Returns:
true if null, false if not.
bool CResultSet::Next ( )

Nexts this object.

Author:
Christian Knobloch
Date:
19.04.2010
Exceptions:
CSQLExceptionThrown when csql.
Returns:
true if it succeeds, false if it fails.

The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines