te::vm::lua::VirtualMachine Class Reference

#include <VirtualMachine.h>

Inheritance diagram for te::vm::lua::VirtualMachine:
te::vm::core::VirtualMachine

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
 

Detailed Description

Definition at line 48 of file VirtualMachine.h.

Constructor & Destructor Documentation

te::vm::lua::VirtualMachine::VirtualMachine ( )
te::vm::lua::VirtualMachine::~VirtualMachine ( )
virtual

Virtual destructor.

Reimplemented from te::vm::core::VirtualMachine.

Member Function Documentation

void te::vm::lua::VirtualMachine::execute ( )
slot
std::string te::vm::lua::VirtualMachine::getDescription ( ) const
virtual

Returns a brief description about the underlying Virtual Machine.

Implements te::vm::core::VirtualMachine.

std::string te::vm::lua::VirtualMachine::getName ( ) const
virtual

the name of the Virtual Machine: it is also an identifier about the VM type.

Implements te::vm::core::VirtualMachine.

std::string te::vm::lua::VirtualMachine::getTitle ( ) const
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.

void te::vm::core::VirtualMachine::output ( QString  msg)
signalinherited

output Signal emmited when the Virtual Machine receives a string.

Parameters
msgString received from the Virtual Machine.
std::string te::vm::lua::VirtualMachine::readline ( )
virtual

readline Method to be used by the language of the Virtual Machine when doing a input operation.

Returns
A string containing the user input.

Implements te::vm::core::VirtualMachine.

void te::vm::lua::VirtualMachine::readline ( QString  msg)
slot
void te::vm::core::VirtualMachine::requestReadline ( )
signalinherited

Signal emmited when the Virtual Machine needs to execute a input operation.

void te::vm::lua::VirtualMachine::setFileName ( QString  file)
virtual

setFileName Sets the file that will be used in the Virtual Machine.

Parameters
fileThe full path filename.

Implements te::vm::core::VirtualMachine.

void te::vm::lua::VirtualMachine::stop ( )
slot
void te::vm::lua::VirtualMachine::write ( const QString &  str)
slot

Member Data Documentation

std::unique_ptr<Impl> te::vm::lua::VirtualMachine::m_pimpl
private

Definition at line 73 of file VirtualMachine.h.


The documentation for this class was generated from the following file: