PythonQt
|
#include <PythonQtCppWrapperFactory.h>
Public Member Functions | |
PythonQtForeignWrapperFactory () | |
virtual | ~PythonQtForeignWrapperFactory () |
virtual PyObject * | wrap (const QByteArray &classname, void *ptr)=0 |
virtual void * | unwrap (const QByteArray &classname, PyObject *object)=0 |
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.
|
inline |
Definition at line 74 of file PythonQtCppWrapperFactory.h.
|
inlinevirtual |
Definition at line 75 of file PythonQtCppWrapperFactory.h.
|
pure virtual |
unwrap the given object to a C++ object of type classname
if possible Return NULL otherwise.
|
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.