App/FeaturePythonPy.h

Go to the documentation of this file.
00001 
00002 // This file is generated by src/Tools/generateTemaplates/templateClassPyExport.py out of the XML file
00003 // Every change you make here get lost at the next full rebuild!
00004 #ifndef APP_FEATUREPYTHONPY_H
00005 #define APP_FEATUREPYTHONPY_H
00006 
00007 #include <App/DocumentObjectPy.h>
00008 #include <App/FeaturePython.h>
00009 #include <string>
00010 
00011 namespace App
00012 {
00013 
00014 //===========================================================================
00015 // FeaturePythonPy - Python wrapper
00016 //===========================================================================
00017 
00020 class AppExport FeaturePythonPy : public App::DocumentObjectPy
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     FeaturePythonPy(DocumentObject *pcObject, PyTypeObject *T = &Type);
00032     static PyObject *PyMake(struct _typeobject *, PyObject *, PyObject *);
00033     virtual int PyInit(PyObject* args, PyObject*k);
00034     ~FeaturePythonPy();
00035 
00036     typedef DocumentObject* PointerType ;
00037 
00038     virtual PyObject *_repr(void);        // the representation
00039     std::string representation(void) const;
00040 
00043 
00044     static PyObject * staticCallback_addProperty (PyObject *self, PyObject *args);
00046     PyObject*  addProperty(PyObject *args);
00048     static PyObject * staticCallback_supportedProperties (PyObject *self, PyObject *args);
00050     PyObject*  supportedProperties(PyObject *args);
00052 
00053 
00056 
00057 
00059     PyObject *getCustomAttributes(const char* attr) const;
00061     int setCustomAttributes(const char* attr, PyObject *obj);
00062     PyObject *_getattr(char *attr);              // __getattr__ function
00063     int _setattr(char *attr, PyObject *value);        // __setattr__ function
00064 
00066     DocumentObject *getFeaturePythonPtr(void) const;
00067 
00070 
00072 };
00073 
00074 #define PARENTSAppFeaturePythonPy &FeaturePythonPy::Type,PARENTSAppDocumentObjectPy
00075 
00076 }  //namespace App
00077 
00078 #endif  // APP_FEATUREPYTHONPY_H
00079 
00080 

Generated on Wed Nov 23 19:00:13 2011 for FreeCAD by  doxygen 1.6.1