lib

Kross::Python::PythonExtension Class Reference

#include <pythonextension.h>

Inherits Py::PythonExtension< Kross::Python::PythonExtension >.

List of all members.


Detailed Description

The PythonExtension is a wrapper-object to let C++ and Python interact together.

Instances of this class are used everytime if we send or got something to/from python.

Definition at line 48 of file pythonextension.h.


Public Member Functions

 PythonExtension (Kross::Api::Object::Ptr object)
virtual ~PythonExtension ()
virtual Py::Object getattr (const char *name)

Friends

class PythonScript
class PythonObject
class PythonModule

Constructor & Destructor Documentation

PythonExtension::PythonExtension ( Kross::Api::Object::Ptr  object  )  [explicit]

Constructor.

Parameters:
object The Kross::Api::Object object this instance is the wrapper for.

Definition at line 29 of file pythonextension.cpp.

PythonExtension::~PythonExtension (  )  [virtual]

Destructor.

Definition at line 55 of file pythonextension.cpp.


Member Function Documentation

Py::Object PythonExtension::getattr ( const char *  name  )  [virtual]

Overloaded method to handle attribute calls from within python.

Parameters:
name The name of the attribute that should be handled.
Returns:
An Py::Object that could be a value or a callable object. Python will decide what to do with the returnvalue.

Definition at line 77 of file pythonextension.cpp.


The documentation for this class was generated from the following files:
KDE Home | KDE Accessibility Home | Description of Access Keys