Kross::Api::Interpreter Class Referenceabstract

#include <interpreter.h>

Inheritance diagram for Kross::Api::Interpreter:
Kross::Python::PythonInterpreter Kross::Ruby::RubyInterpreter

Public Member Functions

 Interpreter (InterpreterInfo *info)
 
virtual ~Interpreter ()
 
virtual Script * createScript (ScriptContainer *scriptcontainer)=0
 

Protected Attributes

InterpreterInfo * m_interpreterinfo
 

Detailed Description

Base class for interpreters.

Each scripting backend needs to inheritate it's own interpreter from this class and implementate there backend related stuff. The Interpreter will be managed by the Kross::Manager class.

Definition at line 162 of file interpreter.h.

Constructor & Destructor Documentation

◆ Interpreter()

Interpreter::Interpreter ( InterpreterInfo *  info)

Constructor.

Parameters
infois the InterpreterInfo instance that describes this interpreter.

Definition at line 144 of file interpreter.cpp.

◆ ~Interpreter()

Interpreter::~Interpreter ( )
virtual

Destructor.

Definition at line 149 of file interpreter.cpp.

Member Function Documentation

◆ createScript()

virtual Script * Kross::Api::Interpreter::createScript ( ScriptContainer *  scriptcontainer)
pure virtual

Create and return a new interpreter dependend Script instance.

Parameters
scriptcontainerThe ScriptContainer to use for the Script instance.
Returns
The from Script inherited instance.

Implemented in Kross::Python::PythonInterpreter, and Kross::Ruby::RubyInterpreter.

Member Data Documentation

◆ m_interpreterinfo

InterpreterInfo* Kross::Api::Interpreter::m_interpreterinfo
protected

The InterpreterInfo instance this interpreter belongs to.

Definition at line 191 of file interpreter.h.


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