WhirlyGlobe  1.1
A 3D interactive globe toolkit for ios
sqlhelpers::StatementRead Class Reference

#include <sqlhelpers.h>

List of all members.

Public Member Functions

 StatementRead (sqlite3 *db, const char *, bool justRun=false)
 Construct with the statement and maybe just run the damn thing.
 StatementRead (sqlite3 *db, NSString *, bool justRun=false)
 ~StatementRead ()
 Destructor will call finalize.
bool stepRow ()
void finalize ()
 You can force a finalize here.
int getInt ()
 Return an int from the current row.
double getDouble ()
 Return a double from the current row.
NSString * getString ()
 Return an NSString from the current row.
BOOL getBool ()
 Return a boolean from the current row.

Protected Member Functions

void init (sqlite3 *db, const char *, bool justRun=false)

Protected Attributes

sqlite3 * db
sqlite3_stmt * stmt
bool isFinalized
int curField

Detailed Description

Encapsulates a SQLite3 statement in a way that does not make me want to punch someone.


Member Function Documentation

bool sqlhelpers::StatementRead::stepRow ( )

Calls step, expecting a row. Returns false if we're done, throws an exception on error


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