lib

Kross::Python::PythonExtension Class Reference

#include <pythonextension.h>

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 47 of file pythonextension.h.


Public Member Functions

 PythonExtension (Kross::Api::Object::Ptr object)
virtual ~PythonExtension ()
virtual Py::Object str ()
virtual Py::Object repr ()
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 31 of file pythonextension.cpp.

PythonExtension::~PythonExtension  )  [virtual]
 

Destructor.

Definition at line 57 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 76 of file pythonextension.cpp.

Py::Object PythonExtension::repr  )  [virtual]
 

Overloaded method to return the string-representation of the value this object has.

Returns:
A string representation of the value.

Definition at line 71 of file pythonextension.cpp.

Py::Object PythonExtension::str  )  [virtual]
 

Overloaded method to return the string-representation of this object.

Returns:
The string representation.

Definition at line 65 of file pythonextension.cpp.


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