#include <VirtualMachine.h>
Public Slots | |
| void | execute () |
| void | readline (QString msg) |
| void | stop () |
| void | write (const QString &str) |
Signals | |
| void | output (QString msg) |
| output Signal emmited when the Virtual Machine receives a string. More... | |
| void | requestReadline () |
| Signal emmited when the Virtual Machine needs to execute a input operation. More... | |
Public Member Functions | |
| std::string | getDescription () const |
| Returns a brief description about the underlying Virtual Machine. More... | |
| std::string | getName () const |
| std::string | getTitle () const |
| Return the title of Virtual Machine: a name that can be used by applications to show in a GUI. More... | |
| std::string | readline () |
| readline Method to be used by the language of the Virtual Machine when doing a input operation. More... | |
| void | setFileName (QString file) |
| setFileName Sets the file that will be used in the Virtual Machine. More... | |
| VirtualMachine () | |
| ~VirtualMachine () | |
| Virtual destructor. More... | |
Private Attributes | |
| std::string | m_filename |
| PyThreadState * | m_mainThreadState |
| QEventLoop * | m_readlineLoop |
| std::string | m_readlineStr |
| VirtualMachineOutput | m_stderr |
| VirtualMachineInput | m_stdin |
| VirtualMachineOutput | m_stdout |
Definition at line 81 of file python/VirtualMachine.h.
| te::vm::python::VirtualMachine::VirtualMachine | ( | ) |
Definition at line 65 of file python/VirtualMachine.cpp.
References m_mainThreadState, main(), te::vm::python::VirtualMachineInput::readline(), and te::vm::python::VirtualMachineOutput::write().
|
virtual |
Virtual destructor.
Reimplemented from te::vm::core::VirtualMachine.
Definition at line 87 of file python/VirtualMachine.cpp.
References m_mainThreadState, and m_readlineLoop.
|
slot |
Definition at line 101 of file python/VirtualMachine.cpp.
References te::core::FileSystem::absolutePath(), te::core::FindInTerraLibPath(), m_filename, m_stderr, m_stdin, and m_stdout.
|
virtual |
Returns a brief description about the underlying Virtual Machine.
Implements te::vm::core::VirtualMachine.
Definition at line 187 of file python/VirtualMachine.cpp.
References TE_TR.
|
virtual |
the name of the Virtual Machine: it is also an identifier about the VM type.
Implements te::vm::core::VirtualMachine.
Definition at line 174 of file python/VirtualMachine.cpp.
|
virtual |
Return the title of Virtual Machine: a name that can be used by applications to show in a GUI.
Implements te::vm::core::VirtualMachine.
Definition at line 179 of file python/VirtualMachine.cpp.
References TE_TR.
|
signalinherited |
output Signal emmited when the Virtual Machine receives a string.
| msg | String received from the Virtual Machine. |
Referenced by te::vm::lua::VirtualMachine::execute(), te::vm::lua::VirtualMachine::write(), and write().
|
virtual |
readline Method to be used by the language of the Virtual Machine when doing a input operation.
Implements te::vm::core::VirtualMachine.
Definition at line 152 of file python/VirtualMachine.cpp.
References m_readlineLoop, m_readlineStr, and te::vm::core::VirtualMachine::requestReadline().
|
slot |
Definition at line 160 of file python/VirtualMachine.cpp.
References m_readlineLoop, and m_readlineStr.
|
signalinherited |
Signal emmited when the Virtual Machine needs to execute a input operation.
Referenced by readline().
|
virtual |
setFileName Sets the file that will be used in the Virtual Machine.
| file | The full path filename. |
Implements te::vm::core::VirtualMachine.
Definition at line 96 of file python/VirtualMachine.cpp.
References m_filename.
|
slot |
Definition at line 166 of file python/VirtualMachine.cpp.
References m_readlineLoop.
|
slot |
Definition at line 146 of file python/VirtualMachine.cpp.
References te::vm::core::VirtualMachine::output().
|
private |
Definition at line 107 of file python/VirtualMachine.h.
Referenced by execute(), and setFileName().
|
private |
Definition at line 112 of file python/VirtualMachine.h.
Referenced by VirtualMachine(), and ~VirtualMachine().
|
private |
Definition at line 113 of file python/VirtualMachine.h.
Referenced by readline(), stop(), and ~VirtualMachine().
|
private |
Definition at line 111 of file python/VirtualMachine.h.
Referenced by readline().
|
private |
Definition at line 110 of file python/VirtualMachine.h.
Referenced by execute().
|
private |
Definition at line 108 of file python/VirtualMachine.h.
Referenced by execute().
|
private |
Definition at line 109 of file python/VirtualMachine.h.
Referenced by execute().