Go to the documentation of this file.
31 #ifndef __TERRALIB_VM_PYTHON_VIRTUALMACHINE_H__
32 #define __TERRALIB_VM_PYTHON_VIRTUALMACHINE_H__
35 #include "../core/VirtualMachine.h"
40 #undef slots // python conflicts with qt #define slots
48 #define slots Q_SLOTS // redefine slots
72 void write(
const std::string& str);
117 #endif // __TERRALIB_VM_PYTHON_VIRTUALMACHINE_H__
std::string getName() const
te::vm::core::VirtualMachine * m_vm
VirtualMachineOutput(te::vm::core::VirtualMachine *vm=nullptr)
PyThreadState * m_mainThreadState
std::string readline()
readline Method to be used by the language of the Virtual Machine when doing a input operation.
~VirtualMachine()
Virtual destructor.
void write(const QString &str)
std::string getDescription() const
Returns a brief description about the underlying Virtual Machine.
VirtualMachineOutput m_stderr
QEventLoop * m_readlineLoop
VirtualMachineOutput m_stdout
void setFileName(QString file)
setFileName Sets the file that will be used in the Virtual Machine.
void readline(QString msg)
void write(const std::string &str)
std::string getTitle() const
Return the title of Virtual Machine: a name that can be used by applications to show in a GUI.
VirtualMachineInput m_stdin
std::string m_readlineStr