The python export class for Tooltable. More...

#include <TooltablePy.h>

Public Types

typedef Tooltable * PointerType
 
- Public Types inherited from Base::PersistencePy
typedef Persistence * PointerType
 
- Public Types inherited from Base::BaseClassPy
typedef BaseClass * PointerType
 
- 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
 
PyObject * dumpContent (PyObject *args, PyObject *kwd)
 implementer for the dumpContent() method More...
 
PyObject * restoreContent (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...
 
PyObject * getCustomAttributes (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...
 
Persistence * getPersistencePtr (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
 
PyObject * isDerivedFrom (PyObject *args)
 implementer for the isDerivedFrom() method More...
 
PyObject * getAllDerivedFrom (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...
 
PyObject * getCustomAttributes (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...
 
BaseClass * getBaseClassPtr (void) const
 getter for the object handled by this class More...
 
- Public Member Functions inherited from Base::PyObjectBase
PyObjectBase * DecRef (void)
 decref method wrapper (see python extending manual)
More...
 
PyObjectBase * IncRef (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 PyObject * PyMake (struct _typeobject *, PyObject *, PyObject *)
 
- Static Public Member Functions inherited from Base::PersistencePy
static PyObject * PyMake (struct _typeobject *, PyObject *, PyObject *)
 
static PyObject * staticCallback_dumpContent (PyObject *self, PyObject *args, PyObject *kwd)
 callback for the dumpContent() method More...
 
static PyObject * staticCallback_restoreContent (PyObject *self, PyObject *args)
 callback for the restoreContent() method More...
 
static PyObject * staticCallback_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 PyObject * staticCallback_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 PyObject * PyMake (struct _typeobject *, PyObject *, PyObject *)
 
static PyObject * staticCallback_isDerivedFrom (PyObject *self, PyObject *args)
 callback for the isDerivedFrom() method More...
 
static PyObject * staticCallback_getAllDerivedFrom (PyObject *self, PyObject *args)
 callback for the getAllDerivedFrom() method More...
 
static PyObject * staticCallback_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 PyObject * staticCallback_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

PyObject * copy (PyObject *args)
 implementer for the copy() method More...
 
PyObject * addTools (PyObject *args)
 implementer for the addTools() method More...
 
PyObject * getTool (PyObject *args)
 implementer for the getTool() method More...
 
PyObject * setTool (PyObject *args)
 implementer for the setTool() method More...
 
PyObject * deleteTool (PyObject *args)
 implementer for the deleteTool() method More...
 
PyObject * setFromTemplate (PyObject *args)
 implementer for the setFromTemplate() method More...
 
PyObject * templateAttrs (PyObject *args)
 implementer for the templateAttrs() method More...
 
static PyObject * staticCallback_copy (PyObject *self, PyObject *args)
 callback for the copy() method More...
 
static PyObject * staticCallback_addTools (PyObject *self, PyObject *args)
 callback for the addTools() method More...
 
static PyObject * staticCallback_getTool (PyObject *self, PyObject *args)
 callback for the getTool() method More...
 
static PyObject * staticCallback_setTool (PyObject *self, PyObject *args)
 callback for the setTool() method More...
 
static PyObject * staticCallback_deleteTool (PyObject *self, PyObject *args)
 callback for the deleteTool() method More...
 
static PyObject * staticCallback_setFromTemplate (PyObject *self, PyObject *args)
 callback for the setFromTemplate() method More...
 
static PyObject * staticCallback_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...
 
PyObject * getCustomAttributes (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...
 
Tooltable * getTooltablePtr (void) const
 getter for the object handled by this class More...
 
static PyObject * staticCallback_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