SQLiteObject

Engine/source/sqlite/SQLiteObject.h

More...

Protected Types

Parent 

Public Attributes

sqlite3 *

Public Functions

bool
EndOfResult(S32 resultSet)
escapeSingleQuotes(const char * source, char * dest)
ExecuteSQL(const char * sql)
GetColumnIndex(S32 iResult, const char * columnName)
loadOrSaveDb(const char * zFilename, bool isSave)
NextRow(S32 resultSet)
bool

Called when the object is added to the sim.

Called when the object is removed from the sim.

bool
OpenDatabase(const char * filename)
bool
processArguments(S32 argc, const char ** argv)
bool

Public Static Functions

Detailed Description

Protected Types

typedef SimObject Parent 

Public Attributes

sqlite3 * m_pDatabase 

Private Attributes

S32 m_iLastResultSet 
S32 m_iNextResultSet 
char * m_szErrorString 
VectorPtr< sqlite_resultset * > m_vResultSets 

Public Functions

SQLiteObject()

~SQLiteObject()

ClearErrorString()

ClearResultSet(S32 index)

CloseDatabase()

DECLARE_CONOBJECT(SQLiteObject )

EndOfResult(S32 resultSet)

escapeSingleQuotes(const char * source, char * dest)

ExecuteSQL(const char * sql)

GetColumnIndex(S32 iResult, const char * columnName)

getLastRowId()

GetResultSet(S32 iResultSet)

GetResultSetIndex(S32 iResultSet)

loadOrSaveDb(const char * zFilename, bool isSave)

NextRow(S32 resultSet)

numResultSets()

onAdd()

Reimplemented from: SimObject

onRemove()

Reimplemented from: SimObject

OpenDatabase(const char * filename)

processArguments(S32 argc, const char ** argv)

SaveResultSet(sqlite_resultset * pResultSet)

Public Static Functions

initPersistFields()