Public Member Functions | List of all members
PythonQtForeignWrapperFactory Class Referenceabstract

#include <PythonQtCppWrapperFactory.h>

Public Member Functions

 PythonQtForeignWrapperFactory ()
virtual ~PythonQtForeignWrapperFactory ()
virtual PyObjectwrap (const QByteArray &classname, void *ptr)=0
virtual void * unwrap (const QByteArray &classname, PyObject *object)=0

Detailed Description

Factory interface for C++ classes that can be mapped directly from/to Python with other means than PythonQt/QObjects.

Definition at line 69 of file PythonQtCppWrapperFactory.h.

Constructor & Destructor Documentation

PythonQtForeignWrapperFactory::PythonQtForeignWrapperFactory ( )

Definition at line 72 of file PythonQtCppWrapperFactory.h.

72 {};
virtual PythonQtForeignWrapperFactory::~PythonQtForeignWrapperFactory ( )

Definition at line 73 of file PythonQtCppWrapperFactory.h.

73 {};

Member Function Documentation

virtual void* PythonQtForeignWrapperFactory::unwrap ( const QByteArray &  classname,
PyObject object 
pure virtual

unwrap the given object to a C++ object of type classname if possible Return NULL otherwise.

virtual PyObject* PythonQtForeignWrapperFactory::wrap ( const QByteArray &  classname,
void *  ptr 
pure virtual

create a Python object (with new reference count), wrapping the given ptr as class of type classname Return NULL (and not Py_None) if the object could not be wrapped.

The documentation for this class was generated from the following file: