Kross::Api::Interpreter Class Reference

#include <interpreter.h>

Inheritance diagram for Kross::Api::Interpreter:

Inheritance graph
[legend]
Collaboration diagram for Kross::Api::Interpreter:

Collaboration graph
[legend]
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
 The InterpreterInfo instance this interpreter belongs to.


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.

00145     : m_interpreterinfo(info)
00146 {
00147 }

Interpreter::~Interpreter  )  [virtual]
 

Destructor.

Definition at line 149 of file interpreter.cpp.

00150 {
00151 }


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.


The documentation for this class was generated from the following files:
Generated on Thu Feb 9 18:00:20 2006 for Kross by  doxygen 1.4.6