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

#include <VirtualMachine.h>

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

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< Implm_pimpl
 

Detailed Description

Definition at line 48 of file lua/VirtualMachine.h.

Constructor & Destructor Documentation

te::vm::lua::VirtualMachine::VirtualMachine ( )

Definition at line 92 of file lua/VirtualMachine.cpp.

References m_pimpl, and ~VirtualMachine().

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

Virtual destructor.

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

Referenced by VirtualMachine().

Member Function Documentation

void te::vm::lua::VirtualMachine::execute ( )
slot

Definition at line 104 of file lua/VirtualMachine.cpp.

References m_pimpl, te::vm::core::VirtualMachine::output(), and write().

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

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.

Definition at line 141 of file lua/VirtualMachine.cpp.

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.

Definition at line 146 of file lua/VirtualMachine.cpp.

References TE_TR.

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.

Referenced by execute(), write(), and te::vm::python::VirtualMachine::write().

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.

Definition at line 132 of file lua/VirtualMachine.cpp.

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

Definition at line 123 of file lua/VirtualMachine.cpp.

void te::vm::core::VirtualMachine::requestReadline ( )
signalinherited

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

Referenced by te::vm::python::VirtualMachine::readline().

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.

Definition at line 99 of file lua/VirtualMachine.cpp.

References file(), and m_pimpl.

void te::vm::lua::VirtualMachine::stop ( )
slot

Definition at line 137 of file lua/VirtualMachine.cpp.

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

Definition at line 117 of file lua/VirtualMachine.cpp.

References te::vm::core::VirtualMachine::output().

Referenced by execute().

Member Data Documentation

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

Definition at line 73 of file lua/VirtualMachine.h.

Referenced by execute(), setFileName(), and VirtualMachine().


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