OpenStructure
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Public Slots | Signals | Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes
PythonInterpreter Class Reference

#include <python_interpreter.hh>

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 PythonInterpreterInstance ()

Protected Member Functions

 PythonInterpreter ()

Protected Attributes

bp::object main_module_
bp::dict main_namespace_
bool running_
bp::object compile_command_
PythonInterpreterWorker worker_

Detailed Description

Definition at line 57 of file python_interpreter.hh.


Constructor & Destructor Documentation

PythonInterpreter ( )
protected

Member Function Documentation

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

See also:
Stop
void Stop ( )

stop execution of Python commands

See also:
Start
void StopScript ( )

stop script execution

void WakeWorker ( )
signal

Field Documentation

bp::object compile_command_
protected

Definition at line 105 of file python_interpreter.hh.

bp::object main_module_
protected

Definition at line 102 of file python_interpreter.hh.

bp::dict main_namespace_
protected

Definition at line 103 of file python_interpreter.hh.

bool running_
protected

Definition at line 104 of file python_interpreter.hh.

PythonInterpreterWorker worker_
protected

Definition at line 106 of file python_interpreter.hh.


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