#include <python_interpreter.hh>
Inherits PyQt4::QtCore::QObject.
Public Slots | |
unsigned int | RunScript (const QString &script) |
unsigned int | RunCommand (const QString &command) |
Signals | |
void | Output (unsigned int id, const QString &output) |
void | ErrorOutput (unsigned int id, const QString &output) |
void | Finished (unsigned int id, bool error_state) |
void | Exit () |
void | WakeWorker () |
Public Member Functions | |
~PythonInterpreter () | |
bool | IsRunning () |
void | AppendModulePath (const QString &entry) |
void | AppendCommandlineArgument (const QString &arg) |
bp::dict | GetMainNamespace () const |
bp::object | GetMainModule () const |
CodeBlockStatus | GetCodeBlockStatus (const QString &command) |
void | Stop () |
void | Start () |
void | StopScript () |
Static Public Member Functions | |
static PythonInterpreter & | Instance () |
Protected Member Functions | |
PythonInterpreter () | |
Protected Attributes | |
bp::object | main_module_ |
bp::dict | main_namespace_ |
bool | running_ |
bp::object | compile_command_ |
PythonInterpreterWorker | worker_ |
Definition at line 54 of file python_interpreter.hh.
~PythonInterpreter | ( | ) |
PythonInterpreter | ( | ) | [protected] |
void AppendCommandlineArgument | ( | const QString & | arg | ) |
void AppendModulePath | ( | const QString & | entry | ) |
void ErrorOutput | ( | unsigned int | id, | |
const QString & | output | |||
) | [signal] |
void Exit | ( | ) | [signal] |
void Finished | ( | unsigned int | id, | |
bool | error_state | |||
) | [signal] |
CodeBlockStatus GetCodeBlockStatus | ( | const QString & | command | ) |
Get code block status.
Determines whether the command contains errors, is incomplete or ready to be run.
bp::object GetMainModule | ( | ) | const |
bp::dict GetMainNamespace | ( | ) | const |
static PythonInterpreter& Instance | ( | ) | [static] |
bool IsRunning | ( | ) |
void Output | ( | unsigned int | id, | |
const QString & | output | |||
) | [signal] |
unsigned int RunCommand | ( | const QString & | command | ) | [slot] |
unsigned int RunScript | ( | const QString & | script | ) | [slot] |
execute python command
void Start | ( | ) |
start/continue execution of Python commands
void Stop | ( | ) |
stop execution of Python commands
void StopScript | ( | ) |
stop script execution
void WakeWorker | ( | ) | [signal] |
bp::object compile_command_ [protected] |
Definition at line 102 of file python_interpreter.hh.
bp::object main_module_ [protected] |
Definition at line 99 of file python_interpreter.hh.
bp::dict main_namespace_ [protected] |
Definition at line 100 of file python_interpreter.hh.
bool running_ [protected] |
Definition at line 101 of file python_interpreter.hh.
PythonInterpreterWorker worker_ [protected] |
Definition at line 103 of file python_interpreter.hh.