lib
Kross::Api::Interpreter Class Reference
#include <interpreter.h>
Inheritance diagram for Kross::Api::Interpreter:

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 163 of file interpreter.h.
Public Member Functions | |
Interpreter (InterpreterInfo *info) | |
virtual | ~Interpreter () |
virtual Script * | createScript (ScriptContainer *scriptcontainer)=0 |
Protected Attributes | |
InterpreterInfo * | m_interpreterinfo |
Constructor & Destructor Documentation
Interpreter::Interpreter | ( | InterpreterInfo * | info | ) |
Constructor.
- Parameters:
-
info is the InterpreterInfo instance that describes this interpreter.
Definition at line 144 of file interpreter.cpp.
Interpreter::~Interpreter | ( | ) | [virtual] |
Member Function Documentation
virtual Script* Kross::Api::Interpreter::createScript | ( | ScriptContainer * | scriptcontainer | ) | [pure virtual] |
Create and return a new interpreter dependend Script instance.
- Parameters:
-
scriptcontainer The 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
The InterpreterInfo instance this interpreter belongs to.
Definition at line 192 of file interpreter.h.
The documentation for this class was generated from the following files: