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 51 #include <boost/python.hpp> 75 void write(
const std::string& str);
101 void write(
const QString& str);
120 #endif // __TERRALIB_VM_PYTHON_VIRTUALMACHINE_H__
std::string getDescription() const
Returns a brief description about the underlying Virtual Machine.
void write(const std::string &str)
std::string getName() const
VirtualMachineOutput(te::vm::core::VirtualMachine *vm=nullptr)
VirtualMachineOutput m_stderr
te::vm::core::VirtualMachine * m_vm
VirtualMachineOutput m_stdout
std::string m_readlineStr
QEventLoop * m_readlineLoop
~VirtualMachine()
Virtual destructor.
PyThreadState * m_mainThreadState
void write(const QString &str)
VirtualMachineInput m_stdin
std::string getTitle() const
Return the title of Virtual Machine: a name that can be used by applications to show in a GUI...
void setFileName(QString file)
setFileName Sets the file that will be used in the Virtual Machine.
std::string readline()
readline Method to be used by the language of the Virtual Machine when doing a input operation...