The python export class for Tooltable. More...

#include <TooltablePy.h>

Public Types

typedef TooltablePointerType
 
- Public Types inherited from Base::PersistencePy
typedef PersistencePointerType
 
- Public Types inherited from Base::BaseClassPy
typedef BaseClassPointerType
 
- Public Types inherited from Base::PyObjectBase
typedef void * PointerType
 
enum  Status { Valid = 0, Immutable = 1, Notify = 2, NoTrack = 3 }
 

Public Member Functions

virtual PyTypeObject * GetType (void)
 
virtual int PyInit (PyObject *args, PyObject *k)
 PyInit method Override this method to initialize a newly created instance of the class (Constructor) More...
 
std::string representation (void) const
 
 TooltablePy (Tooltable *pcObject, PyTypeObject *T=&Type)
 
- Public Member Functions inherited from Base::PersistencePy
 PersistencePy (Persistence *pcObject, PyTypeObject *T=&Type)
 
std::string representation (void) const
 
PyObjectdumpContent (PyObject *args, PyObject *kwd)
 implementer for the dumpContent() method More...
 
PyObjectrestoreContent (PyObject *args)
 implementer for the restoreContent() method More...
 
Py::String getContent (void) const
 getter for the Content attribute More...
 
Py::Int getMemSize (void) const
 getter for the MemSize attribute More...
 
PyObjectgetCustomAttributes (const char *attr) const
 getter method for special attributes (e.g. dynamic ones) More...
 
int setCustomAttributes (const char *attr, PyObject *obj)
 setter for special attributes (e.g. More...
 
PersistencegetPersistencePtr (void) const
 getter for the object handled by this class More...
 
- Public Member Functions inherited from Base::BaseClassPy
 BaseClassPy (BaseClass *pcObject, PyTypeObject *T=&Type)
 
std::string representation (void) const
 
PyObjectisDerivedFrom (PyObject *args)
 implementer for the isDerivedFrom() method More...
 
PyObjectgetAllDerivedFrom (PyObject *args)
 implementer for the getAllDerivedFrom() method More...
 
Py::String getTypeId (void) const
 getter for the TypeId attribute More...
 
Py::String getModule (void) const
 getter for the Module attribute More...
 
PyObjectgetCustomAttributes (const char *attr) const
 getter method for special attributes (e.g. dynamic ones) More...
 
int setCustomAttributes (const char *attr, PyObject *obj)
 setter for special attributes (e.g. More...
 
BaseClassgetBaseClassPtr (void) const
 getter for the object handled by this class More...
 
- Public Member Functions inherited from Base::PyObjectBase
PyObjectBaseDecRef (void)
 decref method wrapper (see python extending manual)
More...
 
PyObjectBaseIncRef (void)
 incref method wrapper (see python extending manual) More...
 
bool isConst ()
 
bool isNotTracking () const
 
bool isValid ()
 
 PyObjectBase (void *, PyTypeObject *T)
 Constructor Sets the Type of the object (for inheritance) and decrease the the reference count of the PyObject. More...
 
void setConst ()
 
void setInvalid ()
 
void setNotTracking (bool on=true)
 
void setShouldNotify (bool on)
 
bool shouldNotify () const
 
void startNotify ()
 

Static Public Member Functions

static PyObjectPyMake (struct _typeobject *, PyObject *, PyObject *)
 
- Static Public Member Functions inherited from Base::PersistencePy
static PyObjectPyMake (struct _typeobject *, PyObject *, PyObject *)
 
static PyObjectstaticCallback_dumpContent (PyObject *self, PyObject *args, PyObject *kwd)
 callback for the dumpContent() method More...
 
static PyObjectstaticCallback_restoreContent (PyObject *self, PyObject *args)
 callback for the restoreContent() method More...
 
static PyObjectstaticCallback_getContent (PyObject *self, void *closure)
 getter callback for the Content attribute More...
 
static int staticCallback_setContent (PyObject *self, PyObject *value, void *closure)
 setter callback for the Content attribute More...
 
static PyObjectstaticCallback_getMemSize (PyObject *self, void *closure)
 getter callback for the MemSize attribute More...
 
static int staticCallback_setMemSize (PyObject *self, PyObject *value, void *closure)
 setter callback for the MemSize attribute More...
 
- Static Public Member Functions inherited from Base::BaseClassPy
static PyObjectPyMake (struct _typeobject *, PyObject *, PyObject *)
 
static PyObjectstaticCallback_isDerivedFrom (PyObject *self, PyObject *args)
 callback for the isDerivedFrom() method More...
 
static PyObjectstaticCallback_getAllDerivedFrom (PyObject *self, PyObject *args)
 callback for the getAllDerivedFrom() method More...
 
static PyObjectstaticCallback_getTypeId (PyObject *self, void *closure)
 getter callback for the TypeId attribute More...
 
static int staticCallback_setTypeId (PyObject *self, PyObject *value, void *closure)
 setter callback for the TypeId attribute More...
 
static PyObjectstaticCallback_getModule (PyObject *self, void *closure)
 getter callback for the Module attribute More...
 
static int staticCallback_setModule (PyObject *self, PyObject *value, void *closure)
 setter callback for the Module attribute More...
 
- Static Public Member Functions inherited from Base::PyObjectBase
static void PyDestructor (PyObject *P)
 Wrapper for the Python destructor. More...
 

Static Public Attributes

static PyGetSetDef GetterSetter []
 Attribute structure of TooltablePy. More...
 
static PyMethodDef Methods []
 Methods structure of TooltablePy. More...
 
static PyTypeObject Type
 Type structure of TooltablePy. More...
 
- Static Public Attributes inherited from Base::PersistencePy
static PyGetSetDef GetterSetter []
 Attribute structure of PersistencePy. More...
 
static PyMethodDef Methods []
 Methods structure of PersistencePy. More...
 
static PyTypeObject Type
 Type structure of PersistencePy. More...
 
- Static Public Attributes inherited from Base::BaseClassPy
static PyGetSetDef GetterSetter []
 Attribute structure of BaseClassPy. More...
 
static PyMethodDef Methods []
 Methods structure of BaseClassPy. More...
 
static PyTypeObject Type
 Type structure of BaseClassPy. More...
 
- Static Public Attributes inherited from Base::PyObjectBase
static PyMethodDef Methods []
 
static PyTypeObject Type
 Py_Header struct from python.h. More...
 

Protected Member Functions

 ~TooltablePy ()
 
- Protected Member Functions inherited from Base::PersistencePy
 ~PersistencePy ()
 
- Protected Member Functions inherited from Base::BaseClassPy
 ~BaseClassPy ()
 
- Protected Member Functions inherited from Base::PyObjectBase
virtual ~PyObjectBase ()
 destructor More...
 

callbacks and implementers for the python object methods

PyObjectcopy (PyObject *args)
 implementer for the copy() method More...
 
PyObjectaddTools (PyObject *args)
 implementer for the addTools() method More...
 
PyObjectgetTool (PyObject *args)
 implementer for the getTool() method More...
 
PyObjectsetTool (PyObject *args)
 implementer for the setTool() method More...
 
PyObjectdeleteTool (PyObject *args)
 implementer for the deleteTool() method More...
 
PyObjectsetFromTemplate (PyObject *args)
 implementer for the setFromTemplate() method More...
 
PyObjecttemplateAttrs (PyObject *args)
 implementer for the templateAttrs() method More...
 
static PyObjectstaticCallback_copy (PyObject *self, PyObject *args)
 callback for the copy() method More...
 
static PyObjectstaticCallback_addTools (PyObject *self, PyObject *args)
 callback for the addTools() method More...
 
static PyObjectstaticCallback_getTool (PyObject *self, PyObject *args)
 callback for the getTool() method More...
 
static PyObjectstaticCallback_setTool (PyObject *self, PyObject *args)
 callback for the setTool() method More...
 
static PyObjectstaticCallback_deleteTool (PyObject *self, PyObject *args)
 callback for the deleteTool() method More...
 
static PyObjectstaticCallback_setFromTemplate (PyObject *self, PyObject *args)
 callback for the setFromTemplate() method More...
 
static PyObjectstaticCallback_templateAttrs (PyObject *self, PyObject *args)
 callback for the templateAttrs() method More...
 

callbacks and implementers for the python object attributes

Py::Dict getTools (void) const
 getter for the Tools attribute More...
 
void setTools (Py::Dict arg)
 setter for the Tools attribute More...
 
PyObjectgetCustomAttributes (const char *attr) const
 getter method for special attributes (e.g. dynamic ones) More...
 
int setCustomAttributes (const char *attr, PyObject *obj)
 setter for special attributes (e.g. More...
 
TooltablegetTooltablePtr (void) const
 getter for the object handled by this class More...
 
static PyObjectstaticCallback_getTools (PyObject *self, void *closure)
 getter callback for the Tools attribute More...
 
static int staticCallback_setTools (PyObject *self, PyObject *value, void *closure)
 setter callback for the Tools attribute More...
 

Additional Inherited Members

- Protected Attributes inherited from Base::PyObjectBase
std::bitset< 32 > StatusBits
 

Detailed Description

The python export class for Tooltable.

Member Typedef Documentation

◆ PointerType

typedef Tooltable* Path::TooltablePy::PointerType

Constructor & Destructor Documentation

◆ ~TooltablePy()

TooltablePy::~TooltablePy ( )
protected

◆ TooltablePy()

TooltablePy::TooltablePy ( Tooltable pcObject,
PyTypeObject *  T = &Type 
)

Referenced by copy(), and PyMake().

Member Function Documentation

◆ addTools()

PyObject * TooltablePy::addTools ( PyObject args)

◆ copy()

PyObject * TooltablePy::copy ( PyObject args)

implementer for the copy() method

References getTooltablePtr(), and TooltablePy().

Referenced by staticCallback_copy().

◆ deleteTool()

PyObject * TooltablePy::deleteTool ( PyObject args)

◆ getCustomAttributes()

PyObject * TooltablePy::getCustomAttributes ( const char *  attr) const

getter method for special attributes (e.g. dynamic ones)

◆ getTool()

PyObject * TooltablePy::getTool ( PyObject args)

◆ getTools()

Py::Dict TooltablePy::getTools ( void  ) const

getter for the Tools attribute

References getTooltablePtr().

Referenced by staticCallback_getTools().

◆ getTooltablePtr()

Tooltable * TooltablePy::getTooltablePtr ( void  ) const

◆ GetType()

virtual PyTypeObject* Path::TooltablePy::GetType ( void  )
virtual

Reimplemented from Base::PersistencePy.

◆ PyInit()

int TooltablePy::PyInit ( PyObject ,
PyObject  
)
virtual

PyInit method Override this method to initialize a newly created instance of the class (Constructor)

Reimplemented from Base::PersistencePy.

References Path::Tooltable::addTool(), getTooltablePtr(), setTools(), and Path::ToolPy::Type.

◆ PyMake()

PyObject * TooltablePy::PyMake ( struct _typeobject *  ,
PyObject ,
PyObject  
)
static

References TooltablePy().

◆ representation()

◆ setCustomAttributes()

int TooltablePy::setCustomAttributes ( const char *  attr,
PyObject obj 
)

setter for special attributes (e.g.

dynamic ones) Output: Success=1, Failure=-1, Ignore=0

◆ setFromTemplate()

PyObject * TooltablePy::setFromTemplate ( PyObject args)

implementer for the setFromTemplate() method

References setTools().

Referenced by staticCallback_setFromTemplate().

◆ setTool()

PyObject * TooltablePy::setTool ( PyObject args)

◆ setTools()

void TooltablePy::setTools ( Py::Dict  arg)

◆ staticCallback_addTools()

◆ staticCallback_copy()

◆ staticCallback_deleteTool()

◆ staticCallback_getTool()

◆ staticCallback_getTools()

PyObject * TooltablePy::staticCallback_getTools ( PyObject self,
void *  closure 
)
static

◆ staticCallback_setFromTemplate()

◆ staticCallback_setTool()

◆ staticCallback_setTools()

int TooltablePy::staticCallback_setTools ( PyObject self,
PyObject value,
void *  closure 
)
static

◆ staticCallback_templateAttrs()

PyObject * TooltablePy::staticCallback_templateAttrs ( PyObject self,
PyObject args 
)
static

◆ templateAttrs()

PyObject * TooltablePy::templateAttrs ( PyObject args)

implementer for the templateAttrs() method

References getTooltablePtr(), and Path::ToolPy::templateAttrs().

Referenced by staticCallback_templateAttrs().

Member Data Documentation

◆ GetterSetter

PyGetSetDef TooltablePy::GetterSetter
static
Initial value:
= {
{"Tools",
"the dictionary of tools of this table",
NULL
},
{NULL, NULL, NULL, NULL, NULL}
}

Attribute structure of TooltablePy.

◆ Methods

PyMethodDef TooltablePy::Methods
static

Methods structure of TooltablePy.

◆ Type


The documentation for this class was generated from the following files:
  • build/webdoc/src/Mod/Path/App/TooltablePy.h
  • src/Mod/Path/App/TooltablePyImp.cpp
  • build/webdoc/src/Mod/Path/App/TooltablePy.cpp
static int staticCallback_setTools(PyObject *self, PyObject *value, void *closure)
setter callback for the Tools attribute
Definition: TooltablePy.cpp:726
static PyObject * staticCallback_getTools(PyObject *self, void *closure)
getter callback for the Tools attribute
Definition: TooltablePy.cpp:708