#include <VirtualMachine.h>
Classes | |
| struct | Impl |
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::unique_ptr< Impl > | m_pimpl |
Definition at line 48 of file lua/VirtualMachine.h.
| te::vm::lua::VirtualMachine::VirtualMachine | ( | ) |
Definition at line 92 of file lua/VirtualMachine.cpp.
References m_pimpl, and ~VirtualMachine().
|
virtualdefault |
Virtual destructor.
Reimplemented from te::vm::core::VirtualMachine.
Referenced by VirtualMachine().
|
slot |
Definition at line 104 of file lua/VirtualMachine.cpp.
References m_pimpl, te::vm::core::VirtualMachine::output(), and write().
|
virtual |
Returns a brief description about the underlying Virtual Machine.
Implements te::vm::core::VirtualMachine.
Definition at line 154 of file lua/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 141 of file lua/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 146 of file lua/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 execute(), write(), and te::vm::python::VirtualMachine::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 132 of file lua/VirtualMachine.cpp.
|
slot |
Definition at line 123 of file lua/VirtualMachine.cpp.
|
signalinherited |
Signal emmited when the Virtual Machine needs to execute a input operation.
Referenced by te::vm::python::VirtualMachine::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 99 of file lua/VirtualMachine.cpp.
|
slot |
Definition at line 137 of file lua/VirtualMachine.cpp.
|
slot |
Definition at line 117 of file lua/VirtualMachine.cpp.
References te::vm::core::VirtualMachine::output().
Referenced by execute().
|
private |
Definition at line 73 of file lua/VirtualMachine.h.
Referenced by execute(), setFileName(), and VirtualMachine().