17 #if defined(_POSIX_C_SOURCE) 18 #undef _POSIX_C_SOURCE 80 virtual PyObjectBase* GetPyObject(
void) = 0;
95 template <
class HandledType>
107 PyHandle(HandledType* ToHandel = 0L) : _pHandels(ToHandel)
168 _pHandels = other._pHandels;
181 const HandledType&
operator*()
const {
return _pHandels; }
193 return _pHandels < other._pHandels;
201 return _pHandels == other._pHandels;
209 return _pHandels->GetPyObject();
215 bool IsValid(
void)
const {
return _pHandels != 0; }
218 bool IsNull(
void)
const {
return _pHandels == 0; }
254 HandledType* _pHandels;
PyHandle(const PyHandle< HandledType > &ToHandel)
Copy constructor.
Definition: PyExport.h:114
PyHandle< HandledType > & operator=(const PyHandle< HandledType > &other)
Definition: PyExport.h:164
bool IsNull(void) const
Test if it not handels something.
Definition: PyExport.h:218
PyHandle(HandledType *ToHandel=0L)
Definition: PyExport.h:107
bool operator<(const PyHandle< HandledType > &other) const
Definition: PyExport.h:189
PyHandle< HandledType > & operator=(HandledType *other)
Definition: PyExport.h:135
~PyHandle()
Definition: PyExport.h:125
bool IsValid(void) const
Test if it handels something.
Definition: PyExport.h:215
bool operator==(const PyHandle< HandledType > &other) const
equal operator
Definition: PyExport.h:197
const HandledType * operator->() const
derefrence operators
Definition: PyExport.h:184
struct _object PyObject
Definition: PyExport.h:35
HandledType * operator->()
derefrence operators
Definition: PyExport.h:178
HandledType & operator *()
derefrence operators
Definition: PyExport.h:175
Definition: AbstractXMLReader.h:8
PyObject * GetPyObject(void)
returns the type as PyObject
Definition: PyExport.h:205
Definition: PyExport.h:75
Definition: PyExport.h:96