lib
Kross::Python::PythonScript Class Reference
#include <pythonscript.h>
Inheritance diagram for Kross::Python::PythonScript:

Detailed Description
Handle python scripts.This class implements Kross::Api::Script for python.
Definition at line 36 of file pythonscript.h.
Public Member Functions | |
PythonScript (Kross::Api::Interpreter *interpreter, Kross::Api::ScriptContainer *scriptcontainer) | |
virtual | ~PythonScript () |
virtual const QStringList & | getFunctionNames () |
virtual Kross::Api::Object::Ptr | execute () |
virtual Kross::Api::Object::Ptr | callFunction (const QString &name, Kross::Api::List::Ptr args) |
virtual const QStringList & | getClassNames () |
virtual Kross::Api::Object::Ptr | classInstance (const QString &name) |
Constructor & Destructor Documentation
PythonScript::PythonScript | ( | Kross::Api::Interpreter * | interpreter, | |
Kross::Api::ScriptContainer * | scriptcontainer | |||
) | [explicit] |
Constructor.
- Parameters:
-
interpreter The Kross::Python::PythonInterpreter used to create this PythonScript instance. scriptcontainer The with this PythonScript associated Kross::Api::ScriptContainer instance that spends us e.g. the python scripting code.
Definition at line 64 of file pythonscript.cpp.
PythonScript::~PythonScript | ( | ) | [virtual] |
Member Function Documentation
const QStringList & PythonScript::getFunctionNames | ( | ) | [virtual] |
Return a list of callable functionnames this script spends.
Implements Kross::Api::Script.
Definition at line 257 of file pythonscript.cpp.
Kross::Api::Object::Ptr PythonScript::execute | ( | ) | [virtual] |
Kross::Api::Object::Ptr PythonScript::callFunction | ( | const QString & | name, | |
Kross::Api::List::Ptr | args | |||
) | [virtual] |
const QStringList & PythonScript::getClassNames | ( | ) | [virtual] |
Return a list of class types this script supports.
Implements Kross::Api::Script.
Definition at line 414 of file pythonscript.cpp.
Kross::Api::Object::Ptr PythonScript::classInstance | ( | const QString & | name | ) | [virtual] |
Create and return a new class instance.
Implements Kross::Api::Script.
Definition at line 421 of file pythonscript.cpp.
The documentation for this class was generated from the following files: