Rocket::Controls::Python::DataSourceWrapper Class Reference

#include <DataSourceWrapper.h>

Inheritance diagram for Rocket::Controls::Python::DataSourceWrapper:
Collaboration diagram for Rocket::Controls::Python::DataSourceWrapper:

Public Member Functions

 DataSourceWrapper (PyObject *self, const char *name)
void GetRow (Core::StringList &row, const Core::String &table, int row_index, const Core::StringList &columns)
int GetNumRows (const Core::String &table)
virtual Core::ScriptObject GetScriptObject () const

Static Public Member Functions

static void InitialisePythonInterface ()

Detailed Description

Python DataSource Wrapper

Exposes a DataSource to python.

Author:
Lloyd Weehuizen

Member Function Documentation

void Rocket::Controls::Python::DataSourceWrapper::GetRow ( Core::StringList &  row,
const Core::String table,
int  row_index,
const Core::StringList &  columns 
) [virtual]

Fetches the contents of one row of a table within the data source.

Parameters:
[out] row The list of values in the table.
[in] table The name of the table to query.
[in] row_index The index of the desired row.
[in] columns The list of desired columns within the row.

Implements Rocket::Controls::DataSource.

int Rocket::Controls::Python::DataSourceWrapper::GetNumRows ( const Core::String table  )  [virtual]

Fetches the number of rows within one of this data source's tables.

Parameters:
[in] table The name of the table to query.
Returns:
The number of rows within the specified table.

Implements Rocket::Controls::DataSource.


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