Base::BaseClassPy Class Reference

The python export class for BaseClass. More...

#include <BaseClassPy.h>

Inheritance diagram for Base::BaseClassPy:
Base::PyObjectBase Base::PersistencePy Gui::SelectionObjectPy Gui::WorkbenchPy App::PropertyContainerPy Data::ComplexGeoDataPy Gui::DocumentPy Robot::Robot6AxisPy Robot::TrajectoryPy Robot::WaypointPy Sketcher::ConstraintPy Sketcher::SketchPy Gui::PythonWorkbenchPy

List of all members.

Public Types

typedef BaseClassPointerType

Public Member Functions

PyObject_getattr (char *attr)
 GetAttribute implementation This method implements the retriavel of object attributes.
virtual PyObject_repr (void)
 _repr method Overide this method to return a string object with some invormation about the object.
int _setattr (char *attr, PyObject *value)
 SetAttribute implementation This method implements the seting of object attributes.
 BaseClassPy (BaseClass *pcObject, PyTypeObject *T=&Type)
BaseClassgetBaseClassPtr (void) const
 getter for the object handled by this class
PyObjectgetCustomAttributes (const char *attr) const
 getter method for special attributes (e.g. dynamic ones)
virtual PyParentObjectGetParents (void)
virtual PyTypeObject * GetType (void)
virtual int PyInit (PyObject *args, PyObject *k)
 PyInit method Overide this method to initialize a newly created instance of the class (Constuctor).
std::string representation (void) const
int setCustomAttributes (const char *attr, PyObject *obj)
 setter for special attributes (e.g. dynamic ones)
 ~BaseClassPy ()

Static Public Member Functions

static PyObjectPyMake (struct _typeobject *, PyObject *, PyObject *)

Static Public Attributes

static PyGetSetDef GetterSetter []
 Attribute structure of BaseClassPy.
static PyMethodDef Methods []
 Methods structure of BaseClassPy.
static PyParentObject Parents [] = { PARENTSBaseBaseClassPy }
static PyTypeObject Type
 Type structure of BaseClassPy.

callbacks and implementers for the python object methods



PyObjectgetAllDerivedFrom (PyObject *args)
 implementer for the getAllDerivedFrom() method
PyObjectisDerivedFrom (PyObject *args)
 implementer for the isDerivedFrom() method
static PyObjectstaticCallback_getAllDerivedFrom (PyObject *self, PyObject *args)
 callback for the getAllDerivedFrom() method
static PyObjectstaticCallback_isDerivedFrom (PyObject *self, PyObject *args)
 callback for the isDerivedFrom() method

callbacks and implementers for the python object attributes



Py::Int getModule (void) const
 getter for the Module attribute
Py::String getType (void) const
 getter for the Type attribute
static PyObjectstaticCallback_getModule (PyObject *self, void *closure)
 getter callback for the Module attribute
static PyObjectstaticCallback_getType (PyObject *self, void *closure)
 getter callback for the Type attribute
static int staticCallback_setModule (PyObject *self, PyObject *value, void *closure)
 setter callback for the Module attribute
static int staticCallback_setType (PyObject *self, PyObject *value, void *closure)
 setter callback for the Type attribute

Detailed Description

The python export class for BaseClass.

Definition at line 20 of file BaseClassPy.h.


Member Typedef Documentation


Constructor & Destructor Documentation

BaseClassPy::BaseClassPy ( BaseClass pcObject,
PyTypeObject *  T = &Type 
)

Definition at line 319 of file BaseClassPy.cpp.

BaseClassPy::~BaseClassPy (  ) 

Definition at line 340 of file BaseClassPy.cpp.


Member Function Documentation

PyObject * BaseClassPy::_getattr ( char *  attr  )  [virtual]

GetAttribute implementation This method implements the retriavel of object attributes.

If you want to implement attributes in your class, reimplement this method. You have to call the method of the base class. Note: if you reimplement _gettattr() in a inheriting class you need to call the method of the base class! Otherwise even the methods of the object will disapiear!

Reimplemented from Base::PyObjectBase.

Reimplemented in Base::PersistencePy, Data::ComplexGeoDataPy, App::DocumentObjectGroupPy, App::DocumentObjectPy, App::DocumentPy, App::FeaturePythonPy, App::PropertyContainerPy, Gui::DocumentPy, Gui::PythonWorkbenchPy, Gui::SelectionObjectPy, Gui::ViewProviderDocumentObjectPy, Gui::ViewProviderPy, Gui::ViewProviderPythonFeaturePy, Gui::WorkbenchPy, Fem::FemMeshPy, Mesh::FeaturePythonPy, Mesh::MeshFeaturePy, Mesh::MeshPy, Part::FeaturePythonPy, Part::Part2DObjectPy, Part::PartFeaturePy, Part::TopoShapeCompoundPy, Part::TopoShapeCompSolidPy, Part::TopoShapeEdgePy, Part::TopoShapeFacePy, Part::TopoShapePy, Part::TopoShapeShellPy, Part::TopoShapeSolidPy, Part::TopoShapeVertexPy, Part::TopoShapeWirePy, Points::PointsPy, Robot::Robot6AxisPy, Robot::RobotObjectPy, Robot::TrajectoryPy, Robot::WaypointPy, Sketcher::ConstraintPy, Sketcher::SketchObjectPy, Sketcher::SketchObjectSFPy, and Sketcher::SketchPy.

Definition at line 355 of file BaseClassPy.cpp.

References Base::Console(), Base::ConsoleSingleton::Error(), getCustomAttributes(), Methods, Base::Exception::ReportException(), and Base::Exception::what().

PyObject * BaseClassPy::_repr ( void   )  [virtual]
int BaseClassPy::_setattr ( char *  attr,
PyObject value 
) [virtual]
PyObject * BaseClassPy::getAllDerivedFrom ( PyObject args  ) 
BaseClass * BaseClassPy::getBaseClassPtr ( void   )  const

getter for the object handled by this class

Definition at line 482 of file BaseClassPy.cpp.

References Base::PyObjectBase::_pcTwinPointer.

Referenced by getAllDerivedFrom(), getType(), and isDerivedFrom().

PyObject * BaseClassPy::getCustomAttributes ( const char *  attr  )  const
Py::Int BaseClassPy::getModule ( void   )  const

getter for the Module attribute

Definition at line 76 of file BaseClassPyImp.cpp.

Referenced by staticCallback_getModule().

virtual PyParentObject* Base::BaseClassPy::GetParents ( void   )  [inline, virtual]
Py::String BaseClassPy::getType ( void   )  const

getter for the Type attribute

Reimplemented in Robot::WaypointPy.

Definition at line 71 of file BaseClassPyImp.cpp.

References getBaseClassPtr().

Referenced by staticCallback_getType().

virtual PyTypeObject* Base::BaseClassPy::GetType ( void   )  [inline, virtual]
PyObject * BaseClassPy::isDerivedFrom ( PyObject args  ) 

implementer for the isDerivedFrom() method

Definition at line 41 of file BaseClassPyImp.cpp.

References Base::Type::badType(), Base::Type::fromName(), getBaseClassPtr(), and Py::type().

int BaseClassPy::PyInit ( PyObject ,
PyObject  
) [virtual]
PyObject * BaseClassPy::PyMake ( struct _typeobject *  ,
PyObject ,
PyObject  
) [static]
std::string BaseClassPy::representation ( void   )  const
int BaseClassPy::setCustomAttributes ( const char *  attr,
PyObject obj 
)
PyObject * BaseClassPy::staticCallback_getAllDerivedFrom ( PyObject self,
PyObject args 
) [static]
PyObject * BaseClassPy::staticCallback_getModule ( PyObject self,
void *  closure 
) [static]

getter callback for the Module attribute

Definition at line 280 of file BaseClassPy.cpp.

References getModule(), Base::PyObjectBase::isValid(), and Py::new_reference_to().

PyObject * BaseClassPy::staticCallback_getType ( PyObject self,
void *  closure 
) [static]

getter callback for the Type attribute

Reimplemented in Robot::WaypointPy.

Definition at line 248 of file BaseClassPy.cpp.

References getType(), Base::PyObjectBase::isValid(), and Py::new_reference_to().

PyObject * BaseClassPy::staticCallback_isDerivedFrom ( PyObject self,
PyObject args 
) [static]
int BaseClassPy::staticCallback_setModule ( PyObject self,
PyObject value,
void *  closure 
) [static]

setter callback for the Module attribute

Definition at line 298 of file BaseClassPy.cpp.

References Base::PyObjectBase::isValid().

int BaseClassPy::staticCallback_setType ( PyObject self,
PyObject value,
void *  closure 
) [static]

setter callback for the Type attribute

Reimplemented in Robot::WaypointPy.

Definition at line 266 of file BaseClassPy.cpp.

References Base::PyObjectBase::isValid().


Member Data Documentation

PyGetSetDef BaseClassPy::GetterSetter [static]
PyMethodDef BaseClassPy::Methods [static]
PyParentObject BaseClassPy::Parents = { PARENTSBaseBaseClassPy } [static]
PyTypeObject BaseClassPy::Type [static]

The documentation for this class was generated from the following files:

Generated on Wed Nov 23 19:01:46 2011 for FreeCAD by  doxygen 1.6.1