#include <PythonInterpreter.h>
|
| PythonInterpreter () |
|
virtual | ~PythonInterpreter () |
|
void | setup (const Setting &setting) |
|
void | initialize (const char *programName) |
|
void | addModule (const char *name, PyMethodDef *methods) |
|
void | addModule (const char *name, PyMethodDef *methods, const Dictionary< String, int > intConstants, const Dictionary< String, String > stringConstants) |
|
void | eval (const String &script, const char *format=NULL,...) |
| Immediately executes a script statement on the local node. More...
|
|
void | runFile (const String &filename, uint flags=DefaultRunFlags) |
| The script path accepts two macros: OMEGA_DATA_ROOT will be substituted with the default data directory for the omegalib installation OMEGA_APP_ROOT will be substituted with the application directory for the installation (set throguh CMake at build configuration time) More...
|
|
void | clean () |
| Cleans the application state. More...
|
|
void | cleanRun (const String &filename) |
| Cleans the application state and runs a new script. More...
|
|
void | evalEventCommand (const String &command, const Event &evt) |
| Executes an event command statement. More...
|
|
void | queueCommand (const String &command, bool local=false) |
| Queues a command for execution. More...
|
|
void | registerCallback (void *callback, CallbackType type) |
|
void | unregisterAllCallbacks () |
|
void | addPythonPath (const char *) |
|
bool | isEnabled () |
|
bool | isShellEnabled () |
|
void | update (const UpdateContext &context) |
|
void | handleEvent (const Event &evt) |
|
void | draw (const DrawContext &context, Camera *cam) |
|
virtual void | commitSharedData (SharedOStream &out) |
|
virtual void | updateSharedData (SharedIStream &in) |
|
void | lockInterpreter () |
|
void | unlockInterpreter () |
|
| ReferenceType () |
|
virtual | ~ReferenceType () |
|
void | ref () |
|
void | unref () |
|
long | refCount () |
|
Enumerator |
---|
CallbackUpdate |
|
CallbackEvent |
|
CallbackDraw |
|
The flags that can be applied to the runFile method.
Enumerator |
---|
NoRunFlags |
|
SetCwdToScriptPath |
Set the current working directory to the script path.
|
AddScriptPathToModuleSearchPath |
Adds the script path to the search path for python modules (loaded using the import command)
|
DefaultRunFlags |
|
omega::PythonInterpreter::PythonInterpreter |
( |
| ) |
|
virtual omega::PythonInterpreter::~PythonInterpreter |
( |
| ) |
|
|
virtual |
void omega::PythonInterpreter::addModule |
( |
const char * |
name, |
|
|
PyMethodDef * |
methods |
|
) |
| |
void omega::PythonInterpreter::addPythonPath |
( |
const char * |
| ) |
|
void omega::PythonInterpreter::clean |
( |
| ) |
|
Cleans the application state.
void omega::PythonInterpreter::cleanRun |
( |
const String & |
filename | ) |
|
Cleans the application state and runs a new script.
virtual void omega::PythonInterpreter::commitSharedData |
( |
SharedOStream & |
out | ) |
|
|
virtual |
void omega::PythonInterpreter::eval |
( |
const String & |
script, |
|
|
const char * |
format = NULL , |
|
|
|
... |
|
) |
| |
Immediately executes a script statement on the local node.
void omega::PythonInterpreter::evalEventCommand |
( |
const String & |
command, |
|
|
const Event & |
evt |
|
) |
| |
Executes an event command statement.
static const Event* omega::PythonInterpreter::getLastEvent |
( |
| ) |
|
|
inlinestatic |
returns the last event received by the interpreter. Used for script interoperability
void omega::PythonInterpreter::handleEvent |
( |
const Event & |
evt | ) |
|
void omega::PythonInterpreter::initialize |
( |
const char * |
programName | ) |
|
bool omega::PythonInterpreter::isEnabled |
( |
| ) |
|
bool omega::PythonInterpreter::isShellEnabled |
( |
| ) |
|
|
inline |
void omega::PythonInterpreter::lockInterpreter |
( |
| ) |
|
void omega::PythonInterpreter::queueCommand |
( |
const String & |
command, |
|
|
bool |
local = false |
|
) |
| |
Queues a command for execution.
If the local flag is set, the command will be executed only on the local node.
void omega::PythonInterpreter::registerCallback |
( |
void * |
callback, |
|
|
CallbackType |
type |
|
) |
| |
The script path accepts two macros: OMEGA_DATA_ROOT will be substituted with the default data directory for the omegalib installation OMEGA_APP_ROOT will be substituted with the application directory for the installation (set throguh CMake at build configuration time)
void omega::PythonInterpreter::setup |
( |
const Setting & |
setting | ) |
|
void omega::PythonInterpreter::unlockInterpreter |
( |
| ) |
|
void omega::PythonInterpreter::unregisterAllCallbacks |
( |
| ) |
|
void omega::PythonInterpreter::update |
( |
const UpdateContext & |
context | ) |
|
virtual void omega::PythonInterpreter::updateSharedData |
( |
SharedIStream & |
in | ) |
|
|
virtual |
bool omega::PythonInterpreter::myDebugShell |
|
protected |
List<void*> omega::PythonInterpreter::myDrawCallbacks |
|
protected |
bool omega::PythonInterpreter::myEnabled |
|
protected |
List<void*> omega::PythonInterpreter::myEventCallbacks |
|
protected |
String omega::PythonInterpreter::myInitCommand |
|
protected |
String omega::PythonInterpreter::myInitScript |
|
protected |
Lock omega::PythonInterpreter::myInteractiveCommandLock |
|
protected |
PythonInteractiveThread* omega::PythonInterpreter::myInteractiveThread |
|
protected |
Lock omega::PythonInterpreter::myLock |
|
protected |
bool omega::PythonInterpreter::myShellEnabled |
|
protected |
List<void*> omega::PythonInterpreter::myUpdateCallbacks |
|
protected |
Ref<Stat> omega::PythonInterpreter::myUpdateTimeStat |
|
protected |
The documentation for this class was generated from the following file: