PropertyContainerPy.h
Go to the documentation of this file.00001
00002
00003
00004 #ifndef APP_PROPERTYCONTAINERPY_H
00005 #define APP_PROPERTYCONTAINERPY_H
00006
00007 #include <Base/PersistencePy.h>
00008 #include <App/PropertyContainer.h>
00009 #include <string>
00010
00011 namespace App
00012 {
00013
00014
00015
00016
00017
00020 class AppExport PropertyContainerPy : public Base::PersistencePy
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 PropertyContainerPy(PropertyContainer *pcObject, PyTypeObject *T = &Type);
00032 static PyObject *PyMake(struct _typeobject *, PyObject *, PyObject *);
00033 virtual int PyInit(PyObject* args, PyObject*k);
00034 ~PropertyContainerPy();
00035
00036 typedef PropertyContainer* PointerType ;
00037
00038 virtual PyObject *_repr(void);
00039 std::string representation(void) const;
00040
00043
00044 static PyObject * staticCallback_getPropertyByName (PyObject *self, PyObject *args);
00046 PyObject* getPropertyByName(PyObject *args);
00048 static PyObject * staticCallback_getTypeOfProperty (PyObject *self, PyObject *args);
00050 PyObject* getTypeOfProperty(PyObject *args);
00052 static PyObject * staticCallback_getGroupOfProperty (PyObject *self, PyObject *args);
00054 PyObject* getGroupOfProperty(PyObject *args);
00056 static PyObject * staticCallback_getDocumentationOfProperty (PyObject *self, PyObject *args);
00058 PyObject* getDocumentationOfProperty(PyObject *args);
00060
00061
00064
00065 static PyObject * staticCallback_getPropertiesList (PyObject *self, void *closure);
00067 Py::List getPropertiesList(void) const;
00069 static int staticCallback_setPropertiesList (PyObject *self, PyObject *value, void *closure);
00070
00072
00074 PyObject *getCustomAttributes(const char* attr) const;
00076 int setCustomAttributes(const char* attr, PyObject *obj);
00077 PyObject *_getattr(char *attr);
00078 int _setattr(char *attr, PyObject *value);
00079
00081 PropertyContainer *getPropertyContainerPtr(void) const;
00082
00085
00087 };
00088
00089 #define PARENTSAppPropertyContainerPy &PropertyContainerPy::Type,PARENTSBasePersistencePy
00090
00091 }
00092
00093 #endif // APP_PROPERTYCONTAINERPY_H
00094
00095