OpenStructure
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< OutputRedirectoroutput_redirector_
 
boost::shared_ptr< OutputRedirectorerror_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

◆ PythonInterpreterWorker()

◆ ~PythonInterpreterWorker()

Member Function Documentation

◆ AddCommand()

unsigned int AddCommand ( const QString &  command)

◆ ErrorOutput

void ErrorOutput ( unsigned int  id,
const QString &  output 
)
signal

◆ Finished

void Finished ( unsigned int  id,
bool  error_state 
)
signal

◆ handle_redirector_error

void handle_redirector_error ( const QString &  output)
protectedslot

◆ handle_redirector_output

void handle_redirector_output ( const QString &  output)
protectedslot

◆ is_simple_expression()

bool is_simple_expression ( const QString &  expr)
protected

◆ Output

void Output ( unsigned int  id,
const QString &  output 
)
signal

◆ run_command_()

void run_command_ ( std::pair< unsigned int, QString >  pair)
protected

◆ Wake

void Wake ( )
slot

Field Documentation

◆ awake_

bool awake_
protected

Definition at line 76 of file python_interpreter_worker.hh.

◆ command_id_

unsigned int command_id_
protected

Definition at line 66 of file python_interpreter_worker.hh.

◆ current_id_

unsigned int current_id_
protected

Definition at line 75 of file python_interpreter_worker.hh.

◆ error_redirector_

boost::shared_ptr<OutputRedirector> error_redirector_
protected

Definition at line 68 of file python_interpreter_worker.hh.

◆ exec_queue_

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

Definition at line 65 of file python_interpreter_worker.hh.

◆ main_namespace_

bp::dict main_namespace_
protected

Definition at line 74 of file python_interpreter_worker.hh.

◆ output_redirector_

boost::shared_ptr<OutputRedirector> output_redirector_
protected

Definition at line 67 of file python_interpreter_worker.hh.

◆ parse_expr_cmd_

bp::object parse_expr_cmd_
protected

Definition at line 72 of file python_interpreter_worker.hh.

◆ repr_

bp::object repr_
protected

Definition at line 73 of file python_interpreter_worker.hh.

◆ sig_act_

struct sigaction sig_act_
protected

Definition at line 68 of file python_interpreter_worker.hh.


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