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

#include <python_interpreter_worker.hh>

Public Slots

void Wake ()

Signals

void Finished (unsigned int id, bool error_state)
void Output (unsigned int id, const QString &output)
void ErrorOutput (unsigned int id, const QString &output)

Public Member Functions

 PythonInterpreterWorker ()
 ~PythonInterpreterWorker ()
unsigned int AddCommand (const QString &command)

Protected Slots

void handle_redirector_output (const QString &output)
void handle_redirector_error (const QString &output)

Protected Member Functions

bool is_simple_expression (const QString &expr)
void run_command_ (std::pair< unsigned int, QString > pair)
bool is_simple_expression_ (const QString &expr)

Protected Attributes

QQueue< std::pair< unsigned
int, QString > > 
exec_queue_
unsigned int command_id_
boost::shared_ptr
< OutputRedirector
output_redirector_
boost::shared_ptr
< OutputRedirector
error_redirector_
struct sigaction sig_act_
bp::object parse_expr_cmd_
bp::object repr_
bp::dict main_namespace_
unsigned int current_id_
bool awake_

Detailed Description

Definition at line 18 of file python_interpreter_worker.hh.


Constructor & Destructor Documentation


Member Function Documentation

unsigned int AddCommand ( const QString &  command)
void ErrorOutput ( unsigned int  id,
const QString &  output 
)
signal
void Finished ( unsigned int  id,
bool  error_state 
)
signal
void handle_redirector_error ( const QString &  output)
protectedslot
void handle_redirector_output ( const QString &  output)
protectedslot
bool is_simple_expression ( const QString &  expr)
protected
bool is_simple_expression_ ( const QString &  expr)
protected
void Output ( unsigned int  id,
const QString &  output 
)
signal
void run_command_ ( std::pair< unsigned int, QString >  pair)
protected
void Wake ( )
slot

Field Documentation

bool awake_
protected

Definition at line 53 of file python_interpreter_worker.hh.

unsigned int command_id_
protected

Definition at line 43 of file python_interpreter_worker.hh.

unsigned int current_id_
protected

Definition at line 52 of file python_interpreter_worker.hh.

boost::shared_ptr<OutputRedirector> error_redirector_
protected

Definition at line 45 of file python_interpreter_worker.hh.

QQueue<std::pair<unsigned int,QString> > exec_queue_
protected

Definition at line 42 of file python_interpreter_worker.hh.

bp::dict main_namespace_
protected

Definition at line 51 of file python_interpreter_worker.hh.

boost::shared_ptr<OutputRedirector> output_redirector_
protected

Definition at line 44 of file python_interpreter_worker.hh.

bp::object parse_expr_cmd_
protected

Definition at line 49 of file python_interpreter_worker.hh.

bp::object repr_
protected

Definition at line 50 of file python_interpreter_worker.hh.

struct sigaction sig_act_
protected

Definition at line 47 of file python_interpreter_worker.hh.


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