Kross::Python::PythonScript Class Reference
#include <pythonscript.h>
Inheritance diagram for Kross::Python::PythonScript:
Public Member Functions | |
| PythonScript (Kross::Api::Interpreter *interpreter, Kross::Api::ScriptContainer *scriptcontainer) | |
| virtual | ~PythonScript () |
| virtual const TQStringList & | getFunctionNames () |
| virtual Kross::Api::Object::Ptr | execute () |
| virtual Kross::Api::Object::Ptr | callFunction (const TQString &name, Kross::Api::List::Ptr args) |
| virtual const TQStringList & | getClassNames () |
| virtual Kross::Api::Object::Ptr | classInstance (const TQString &name) |
| Public Member Functions inherited from Kross::Api::Script | |
| Script (Interpreter *const interpreter, ScriptContainer *const scriptcontainer) | |
| virtual | ~Script () |
| bool | hadException () |
| Exception::Ptr | getException () |
| void | setException (Exception::Ptr e) |
| void | clearException () |
Additional Inherited Members | |
| Protected Attributes inherited from Kross::Api::Script | |
| Interpreter *const | m_interpreter |
| ScriptContainer *const | m_scriptcontainer |
Detailed Description
Handle python scripts.
This class implements Kross::Api::Script for python.
Definition at line 36 of file pythonscript.h.
Constructor & Destructor Documentation
◆ PythonScript()
|
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()
|
virtual |
Destructor.
Definition at line 75 of file pythonscript.cpp.
Member Function Documentation
◆ callFunction()
|
virtual |
◆ classInstance()
|
virtual |
Create and return a new class instance.
Implements Kross::Api::Script.
Definition at line 421 of file pythonscript.cpp.
◆ execute()
|
virtual |
◆ getClassNames()
|
virtual |
Return a list of class types this script supports.
Implements Kross::Api::Script.
Definition at line 414 of file pythonscript.cpp.
◆ getFunctionNames()
|
virtual |
Return a list of callable functionnames this script spends.
Implements Kross::Api::Script.
Definition at line 257 of file pythonscript.cpp.
The documentation for this class was generated from the following files:
