#include <VirtualMachine.h>
Public Slots | |
| virtual void | execute ()=0 |
| execute Executes the script file previously set. More... | |
| virtual void | readline (QString msg)=0 |
| readline Reads a user input. More... | |
| virtual void | stop ()=0 |
| stop Stops the current running script. More... | |
| virtual void | write (const QString &str)=0 |
| write Writes the output coming from the Virtual Machine More... | |
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 | |
| virtual std::string | getDescription () const =0 |
| Returns a brief description about the underlying Virtual Machine. More... | |
| virtual std::string | getName () const =0 |
| virtual std::string | getTitle () const =0 |
| Return the title of Virtual Machine: a name that can be used by applications to show in a GUI. More... | |
| virtual std::string | readline ()=0 |
| readline Method to be used by the language of the Virtual Machine when doing a input operation. More... | |
| virtual void | setFileName (QString file)=0 |
| setFileName Sets the file that will be used in the Virtual Machine. More... | |
| VirtualMachine () | |
| VirtualMachine. More... | |
| virtual | ~VirtualMachine () |
| Virtual destructor. More... | |
Definition at line 53 of file core/VirtualMachine.h.
|
inline |
Definition at line 61 of file core/VirtualMachine.h.
|
inlinevirtual |
Virtual destructor.
Reimplemented in te::vm::python::VirtualMachine, and te::vm::lua::VirtualMachine.
Definition at line 68 of file core/VirtualMachine.h.
|
pure virtualslot |
execute Executes the script file previously set.
Referenced by main(), and te::ce::CodeEditorDialog::onRunButtonClicked().
|
pure virtual |
Returns a brief description about the underlying Virtual Machine.
Implemented in te::vm::python::VirtualMachine, and te::vm::lua::VirtualMachine.
|
pure virtual |
the name of the Virtual Machine: it is also an identifier about the VM type.
Implemented in te::vm::python::VirtualMachine, and te::vm::lua::VirtualMachine.
|
pure virtual |
Return the title of Virtual Machine: a name that can be used by applications to show in a GUI.
Implemented in te::vm::python::VirtualMachine, and te::vm::lua::VirtualMachine.
|
signal |
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 te::vm::python::VirtualMachine::write().
|
pure virtual |
readline Method to be used by the language of the Virtual Machine when doing a input operation.
Implemented in te::vm::python::VirtualMachine, and te::vm::lua::VirtualMachine.
Referenced by te::vm::python::VirtualMachineInput::readline().
|
pure virtualslot |
readline Reads a user input.
| msg | String of the input. |
|
signal |
Signal emmited when the Virtual Machine needs to execute a input operation.
Referenced by te::vm::python::VirtualMachine::readline().
|
pure virtual |
setFileName Sets the file that will be used in the Virtual Machine.
| file | The full path filename. |
Implemented in te::vm::python::VirtualMachine, and te::vm::lua::VirtualMachine.
Referenced by main(), and te::ce::CodeEditorDialog::onRunButtonClicked().
|
pure virtualslot |
stop Stops the current running script.
|
pure virtualslot |
write Writes the output coming from the Virtual Machine
| str | The out put string received. |
Referenced by te::vm::python::VirtualMachineOutput::write().