#include <DataSourceWrapper.h>


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 () |
Exposes a DataSource to python.
| 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.
| [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.
| [in] | table | The name of the table to query. |
Implements Rocket::Controls::DataSource.