Base::PersistencePy Class Reference

The python export class for Persistence. More...

#include <PersistencePy.h>

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

List of all members.

Public Types

typedef PersistencePointerType

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.
PyObjectgetCustomAttributes (const char *attr) const
 getter method for special attributes (e.g. dynamic ones)
virtual PyParentObjectGetParents (void)
PersistencegetPersistencePtr (void) const
 getter for the object handled by this class
virtual PyTypeObject * GetType (void)
 PersistencePy (Persistence *pcObject, PyTypeObject *T=&Type)
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)
 ~PersistencePy ()

Static Public Member Functions

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

Static Public Attributes

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

callbacks and implementers for the python object attributes



Py::String getContent (void) const
 getter for the Content attribute
Py::Int getMemSize (void) const
 getter for the MemSize attribute
void setContent (Py::String arg)
 setter for the Content attribute
static PyObjectstaticCallback_getContent (PyObject *self, void *closure)
 getter callback for the Content attribute
static PyObjectstaticCallback_getMemSize (PyObject *self, void *closure)
 getter callback for the MemSize attribute
static int staticCallback_setContent (PyObject *self, PyObject *value, void *closure)
 setter callback for the Content attribute
static int staticCallback_setMemSize (PyObject *self, PyObject *value, void *closure)
 setter callback for the MemSize attribute

Detailed Description

The python export class for Persistence.

Definition at line 20 of file PersistencePy.h.


Member Typedef Documentation


Constructor & Destructor Documentation

PersistencePy::PersistencePy ( Persistence pcObject,
PyTypeObject *  T = &Type 
)

Definition at line 183 of file PersistencePy.cpp.

PersistencePy::~PersistencePy (  ) 

Definition at line 204 of file PersistencePy.cpp.


Member Function Documentation

PyObject * PersistencePy::_getattr ( char *  attr  )  [virtual]
PyObject * PersistencePy::_repr ( void   )  [virtual]
int PersistencePy::_setattr ( char *  attr,
PyObject value 
) [virtual]
Py::String PersistencePy::getContent ( void   )  const

getter for the Content attribute

Definition at line 41 of file PersistencePyImp.cpp.

References getPersistencePtr(), Base::StringWriter::getString(), Base::Persistence::Save(), and Base::Writer::setForceXML().

Referenced by staticCallback_getContent().

PyObject * PersistencePy::getCustomAttributes ( const char *  attr  )  const
Py::Int PersistencePy::getMemSize ( void   )  const

getter for the MemSize attribute

Definition at line 56 of file PersistencePyImp.cpp.

References getPersistencePtr().

Referenced by staticCallback_getMemSize().

virtual PyParentObject* Base::PersistencePy::GetParents ( void   )  [inline, virtual]
Persistence * PersistencePy::getPersistencePtr ( void   )  const

getter for the object handled by this class

Definition at line 346 of file PersistencePy.cpp.

References Base::PyObjectBase::_pcTwinPointer.

Referenced by getContent(), and getMemSize().

virtual PyTypeObject* Base::PersistencePy::GetType ( void   )  [inline, virtual]
int PersistencePy::PyInit ( PyObject ,
PyObject  
) [virtual]
PyObject * PersistencePy::PyMake ( struct _typeobject *  ,
PyObject ,
PyObject  
) [static]
std::string PersistencePy::representation ( void   )  const
void PersistencePy::setContent ( Py::String  arg  ) 

setter for the Content attribute

Definition at line 51 of file PersistencePyImp.cpp.

int PersistencePy::setCustomAttributes ( const char *  attr,
PyObject obj 
)
PyObject * PersistencePy::staticCallback_getContent ( PyObject self,
void *  closure 
) [static]

getter callback for the Content attribute

Definition at line 100 of file PersistencePy.cpp.

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

PyObject * PersistencePy::staticCallback_getMemSize ( PyObject self,
void *  closure 
) [static]

getter callback for the MemSize attribute

Definition at line 144 of file PersistencePy.cpp.

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

int PersistencePy::staticCallback_setContent ( PyObject self,
PyObject value,
void *  closure 
) [static]

setter callback for the Content attribute

Definition at line 118 of file PersistencePy.cpp.

References Base::PyObjectBase::isConst(), and Base::PyObjectBase::isValid().

int PersistencePy::staticCallback_setMemSize ( PyObject self,
PyObject value,
void *  closure 
) [static]

setter callback for the MemSize attribute

Definition at line 162 of file PersistencePy.cpp.

References Base::PyObjectBase::isValid().


Member Data Documentation

PyGetSetDef PersistencePy::GetterSetter [static]
PyMethodDef PersistencePy::Methods [static]
PyParentObject PersistencePy::Parents = { PARENTSBasePersistencePy } [static]
PyTypeObject PersistencePy::Type [static]

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

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