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>

Inherits QObject.

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)
 

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 42 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
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 76 of file python_interpreter_worker.hh.

unsigned int command_id_
protected

Definition at line 66 of file python_interpreter_worker.hh.

unsigned int current_id_
protected

Definition at line 75 of file python_interpreter_worker.hh.

boost::shared_ptr<OutputRedirector> error_redirector_
protected

Definition at line 68 of file python_interpreter_worker.hh.

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

Definition at line 65 of file python_interpreter_worker.hh.

bp::dict main_namespace_
protected

Definition at line 74 of file python_interpreter_worker.hh.

boost::shared_ptr<OutputRedirector> output_redirector_
protected

Definition at line 67 of file python_interpreter_worker.hh.

bp::object parse_expr_cmd_
protected

Definition at line 72 of file python_interpreter_worker.hh.

bp::object repr_
protected

Definition at line 73 of file python_interpreter_worker.hh.

struct sigaction sig_act_
protected

Definition at line 70 of file python_interpreter_worker.hh.


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