PythonInterpreterWorker Class Reference

#include <python_interpreter_worker.hh>

Inherits PyQt4::QtCore::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)
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 38 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  )  [protected, slot]
void handle_redirector_output ( const QString &  output  )  [protected, slot]
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 73 of file python_interpreter_worker.hh.

unsigned int command_id_ [protected]

Definition at line 63 of file python_interpreter_worker.hh.

unsigned int current_id_ [protected]

Definition at line 72 of file python_interpreter_worker.hh.

boost::shared_ptr<OutputRedirector> error_redirector_ [protected]

Definition at line 65 of file python_interpreter_worker.hh.

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

Definition at line 62 of file python_interpreter_worker.hh.

bp::dict main_namespace_ [protected]

Definition at line 71 of file python_interpreter_worker.hh.

boost::shared_ptr<OutputRedirector> output_redirector_ [protected]

Definition at line 64 of file python_interpreter_worker.hh.

bp::object parse_expr_cmd_ [protected]

Definition at line 69 of file python_interpreter_worker.hh.

bp::object repr_ [protected]

Definition at line 70 of file python_interpreter_worker.hh.

struct sigaction sig_act_ [read, protected]

Definition at line 67 of file python_interpreter_worker.hh.


The documentation for this class was generated from the following file:
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines

Generated on 6 Dec 2017 for OpenStructure by  doxygen 1.6.1