PythonQt
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 70 of file PythonQtCppWrapperFactory.h.

Constructor & Destructor Documentation

◆ PythonQtForeignWrapperFactory()

PythonQtForeignWrapperFactory::PythonQtForeignWrapperFactory ( )
inline

Definition at line 74 of file PythonQtCppWrapperFactory.h.

74 {}

◆ ~PythonQtForeignWrapperFactory()

virtual PythonQtForeignWrapperFactory::~PythonQtForeignWrapperFactory ( )
inlinevirtual

Definition at line 75 of file PythonQtCppWrapperFactory.h.

75 {}

Member Function Documentation

◆ unwrap()

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.

◆ wrap()

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: