lib

Kross::Api::Interpreter Class Reference

#include <interpreter.h>

Inheritance diagram for Kross::Api::Interpreter:

Kross::Python::PythonInterpreter Kross::Ruby::RubyInterpreter List of all members.

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 ScriptcreateScript (ScriptContainer *scriptcontainer)=0

Protected Attributes

InterpreterInfom_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]

Destructor.

Definition at line 149 of file interpreter.cpp.


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:
KDE Home | KDE Accessibility Home | Description of Access Keys