PersistencePy.h
Go to the documentation of this file.00001
00002
00003
00004 #ifndef BASE_PERSISTENCEPY_H
00005 #define BASE_PERSISTENCEPY_H
00006
00007 #include <Base/BaseClassPy.h>
00008 #include <Base/Persistence.h>
00009 #include <string>
00010
00011 namespace Base
00012 {
00013
00014
00015
00016
00017
00020 class BaseExport PersistencePy : public Base::BaseClassPy
00021 {
00022 public:
00023 static PyTypeObject Type;
00024 static PyMethodDef Methods[];
00025 static PyGetSetDef GetterSetter[];
00026 static PyParentObject Parents[];
00027 virtual PyTypeObject *GetType(void) {return &Type;};
00028 virtual PyParentObject *GetParents(void) {return Parents;}
00029
00030 public:
00031 PersistencePy(Persistence *pcObject, PyTypeObject *T = &Type);
00032 static PyObject *PyMake(struct _typeobject *, PyObject *, PyObject *);
00033 virtual int PyInit(PyObject* args, PyObject*k);
00034 ~PersistencePy();
00035
00036 typedef Persistence* PointerType ;
00037
00038 virtual PyObject *_repr(void);
00039 std::string representation(void) const;
00040
00043
00044
00045
00048
00049 static PyObject * staticCallback_getContent (PyObject *self, void *closure);
00051 Py::String getContent(void) const;
00053 static int staticCallback_setContent (PyObject *self, PyObject *value, void *closure);
00055 void setContent(Py::String arg);
00057 static PyObject * staticCallback_getMemSize (PyObject *self, void *closure);
00059 Py::Int getMemSize(void) const;
00061 static int staticCallback_setMemSize (PyObject *self, PyObject *value, void *closure);
00062
00064
00066 PyObject *getCustomAttributes(const char* attr) const;
00068 int setCustomAttributes(const char* attr, PyObject *obj);
00069 PyObject *_getattr(char *attr);
00070 int _setattr(char *attr, PyObject *value);
00071
00073 Persistence *getPersistencePtr(void) const;
00074
00077
00079 };
00080
00081 #define PARENTSBasePersistencePy &PersistencePy::Type,PARENTSBaseBaseClassPy
00082
00083 }
00084
00085 #endif // BASE_PERSISTENCEPY_H
00086
00087