21 #ifndef PYTHON_INTERPRETER_WORKER_HH
22 #define PYTHON_INTERPRETER_WORKER_HH
26 #include <boost/python.hpp>
27 #include <boost/shared_ptr.hpp>
35 namespace ost {
namespace gui {
36 namespace bp = boost::python;
44 unsigned int AddCommand(
const QString& command);
47 void Finished(
unsigned int id,
bool error_state);
48 void Output(
unsigned int id,
const QString& output);
49 void ErrorOutput(
unsigned int id,
const QString& output);
78 #endif // PYTHON_INTERPRETER_WORKER_HH
QQueue< std::pair< unsigned int, QString > > exec_queue_
bool is_simple_expression(const QString &expr)
void ErrorOutput(unsigned int id, const QString &output)
boost::shared_ptr< OutputRedirector > error_redirector_
struct sigaction sig_act_
PythonInterpreterWorker()
boost::shared_ptr< OutputRedirector > output_redirector_
~PythonInterpreterWorker()
bp::object parse_expr_cmd_
void Finished(unsigned int id, bool error_state)
void Output(unsigned int id, const QString &output)
void run_command_(std::pair< unsigned int, QString > pair)
void handle_redirector_output(const QString &output)
bool is_simple_expression_(const QString &expr)
unsigned int AddCommand(const QString &command)
void handle_redirector_error(const QString &output)