The python export class for BaseType. More...

#include <TypePy.h>

Public Types

typedef BaseType * 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
 
 TypePy (BaseType *pcObject, PyTypeObject *T=&Type)
 
- 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::PyObjectBase
static void PyDestructor (PyObject *P)
 Wrapper for the Python destructor. More...
 

Static Public Attributes

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

Protected Member Functions

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

callbacks and implementers for the python object methods

PyObject * getParent (PyObject *args)
 implementer for the getParent() method More...
 
PyObject * isBad (PyObject *args)
 implementer for the isBad() method More...
 
PyObject * isDerivedFrom (PyObject *args)
 implementer for the isDerivedFrom() method More...
 
PyObject * getAllDerived (PyObject *args)
 implementer for the getAllDerived() method More...
 
static PyObject * staticCallback_fromName (PyObject *self, PyObject *args)
 callback for the fromName() method More...
 
static PyObject * fromName (PyObject *args)
 implementer for the fromName() method More...
 
static PyObject * staticCallback_fromKey (PyObject *self, PyObject *args)
 callback for the fromKey() method More...
 
static PyObject * fromKey (PyObject *args)
 implementer for the fromKey() method More...
 
static PyObject * staticCallback_getNumTypes (PyObject *self, PyObject *args)
 callback for the getNumTypes() method More...
 
static PyObject * getNumTypes (PyObject *args)
 implementer for the getNumTypes() method More...
 
static PyObject * staticCallback_getBadType (PyObject *self, PyObject *args)
 callback for the getBadType() method More...
 
static PyObject * getBadType (PyObject *args)
 implementer for the getBadType() method More...
 
static PyObject * staticCallback_getAllDerivedFrom (PyObject *self, PyObject *args)
 callback for the getAllDerivedFrom() method More...
 
static PyObject * getAllDerivedFrom (PyObject *args)
 implementer for the getAllDerivedFrom() method More...
 
static PyObject * staticCallback_getParent (PyObject *self, PyObject *args)
 callback for the getParent() method More...
 
static PyObject * staticCallback_isBad (PyObject *self, PyObject *args)
 callback for the isBad() method More...
 
static PyObject * staticCallback_isDerivedFrom (PyObject *self, PyObject *args)
 callback for the isDerivedFrom() method More...
 
static PyObject * staticCallback_getAllDerived (PyObject *self, PyObject *args)
 callback for the getAllDerived() method More...
 

callbacks and implementers for the python object attributes

Py::String getName (void) const
 getter for the Name attribute More...
 
Py::Long getKey (void) const
 getter for the Key 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...
 
BaseType * getBaseTypePtr (void) const
 getter for the object handled by this class More...
 
static PyObject * staticCallback_getName (PyObject *self, void *closure)
 getter callback for the Name attribute More...
 
static int staticCallback_setName (PyObject *self, PyObject *value, void *closure)
 setter callback for the Name attribute More...
 
static PyObject * staticCallback_getKey (PyObject *self, void *closure)
 getter callback for the Key attribute More...
 
static int staticCallback_setKey (PyObject *self, PyObject *value, void *closure)
 setter callback for the Key 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...
 

Additional Inherited Members

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

Detailed Description

The python export class for BaseType.

Member Typedef Documentation

◆ PointerType

Constructor & Destructor Documentation

◆ ~TypePy()

TypePy::~TypePy ( )
protected

◆ TypePy()

TypePy::TypePy ( BaseType *  pcObject,
PyTypeObject *  T = &Type 
)

Member Function Documentation

◆ fromKey()

PyObject * TypePy::fromKey ( PyObject *  args)
static

implementer for the fromKey() method

References Base::Type::fromKey(), and TypePy().

Referenced by staticCallback_fromKey().

◆ fromName()

PyObject * TypePy::fromName ( PyObject *  args)
static

implementer for the fromName() method

References Base::Type::fromName(), and TypePy().

Referenced by staticCallback_fromName().

◆ getAllDerived()

PyObject * TypePy::getAllDerived ( PyObject *  args)

◆ getAllDerivedFrom()

PyObject * TypePy::getAllDerivedFrom ( PyObject *  args)
static

◆ getBadType()

PyObject * TypePy::getBadType ( PyObject *  args)
static

implementer for the getBadType() method

References Base::Type::badType(), and TypePy().

Referenced by staticCallback_getBadType().

◆ getBaseTypePtr()

BaseType * TypePy::getBaseTypePtr ( void  ) const

getter for the object handled by this class

Referenced by getAllDerived(), getAllDerivedFrom(), getKey(), getModule(), getName(), getParent(), isBad(), isDerivedFrom(), and representation().

◆ getCustomAttributes()

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

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

◆ getKey()

Py::Long TypePy::getKey ( void  ) const

getter for the Key attribute

References getBaseTypePtr().

Referenced by staticCallback_getKey().

◆ getModule()

Py::String TypePy::getModule ( void  ) const

getter for the Module attribute

References getBaseTypePtr(), and getName().

Referenced by staticCallback_getModule().

◆ getName()

Py::String TypePy::getName ( void  ) const

getter for the Name attribute

References getBaseTypePtr().

Referenced by getAllDerived(), getModule(), and staticCallback_getName().

◆ getNumTypes()

PyObject * TypePy::getNumTypes ( PyObject *  args)
static

implementer for the getNumTypes() method

References Base::Type::getNumTypes().

Referenced by staticCallback_getNumTypes().

◆ getParent()

PyObject * TypePy::getParent ( PyObject *  args)

implementer for the getParent() method

References getBaseTypePtr(), Base::Type::getParent(), and TypePy().

Referenced by staticCallback_getParent().

◆ GetType()

virtual PyTypeObject* Base::TypePy::GetType ( void  )
virtual

Reimplemented from Base::PyObjectBase.

◆ isBad()

PyObject * TypePy::isBad ( PyObject *  args)

implementer for the isBad() method

References getBaseTypePtr(), and Base::Type::isBad().

Referenced by staticCallback_isBad().

◆ isDerivedFrom()

PyObject * TypePy::isDerivedFrom ( PyObject *  args)

◆ PyInit()

int TypePy::PyInit ( PyObject *  ,
PyObject *   
)
virtual

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

Reimplemented from Base::PyObjectBase.

◆ PyMake()

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

◆ representation()

◆ setCustomAttributes()

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

setter for special attributes (e.g.

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

◆ staticCallback_fromKey()

PyObject * TypePy::staticCallback_fromKey ( PyObject *  self,
PyObject *  args 
)
static

◆ staticCallback_fromName()

PyObject * TypePy::staticCallback_fromName ( PyObject *  self,
PyObject *  args 
)
static

◆ staticCallback_getAllDerived()

PyObject * TypePy::staticCallback_getAllDerived ( PyObject *  self,
PyObject *  args 
)
static

◆ staticCallback_getAllDerivedFrom()

PyObject * TypePy::staticCallback_getAllDerivedFrom ( PyObject *  self,
PyObject *  args 
)
static

◆ staticCallback_getBadType()

PyObject * TypePy::staticCallback_getBadType ( PyObject *  self,
PyObject *  args 
)
static

◆ staticCallback_getKey()

PyObject * TypePy::staticCallback_getKey ( PyObject *  self,
void *  closure 
)
static

getter callback for the Key attribute

References Base::BaseExceptionFreeCADError, getKey(), and Base::PyObjectBase::isValid().

◆ staticCallback_getModule()

PyObject * TypePy::staticCallback_getModule ( PyObject *  self,
void *  closure 
)
static

getter callback for the Module attribute

References Base::BaseExceptionFreeCADError, getModule(), and Base::PyObjectBase::isValid().

◆ staticCallback_getName()

PyObject * TypePy::staticCallback_getName ( PyObject *  self,
void *  closure 
)
static

getter callback for the Name attribute

References Base::BaseExceptionFreeCADError, getName(), and Base::PyObjectBase::isValid().

◆ staticCallback_getNumTypes()

PyObject * TypePy::staticCallback_getNumTypes ( PyObject *  self,
PyObject *  args 
)
static

◆ staticCallback_getParent()

PyObject * TypePy::staticCallback_getParent ( PyObject *  self,
PyObject *  args 
)
static

◆ staticCallback_isBad()

PyObject * TypePy::staticCallback_isBad ( PyObject *  self,
PyObject *  args 
)
static

◆ staticCallback_isDerivedFrom()

PyObject * TypePy::staticCallback_isDerivedFrom ( PyObject *  self,
PyObject *  args 
)
static

◆ staticCallback_setKey()

int TypePy::staticCallback_setKey ( PyObject *  self,
PyObject *  value,
void *  closure 
)
static

setter callback for the Key attribute

References Base::PyObjectBase::isValid().

◆ staticCallback_setModule()

int TypePy::staticCallback_setModule ( PyObject *  self,
PyObject *  value,
void *  closure 
)
static

setter callback for the Module attribute

References Base::PyObjectBase::isValid().

◆ staticCallback_setName()

int TypePy::staticCallback_setName ( PyObject *  self,
PyObject *  value,
void *  closure 
)
static

setter callback for the Name attribute

References Base::PyObjectBase::isValid().

Member Data Documentation

◆ GetterSetter

PyGetSetDef TypePy::GetterSetter
static
Initial value:
= {
{"Name",
"The name of the type id",
NULL
},
{"Key",
"The key of the type id",
NULL
},
{"Module",
"Module in which this class is defined",
NULL
},
{NULL, NULL, NULL, NULL, NULL}
}

Attribute structure of TypePy.

◆ Methods

PyMethodDef TypePy::Methods
static

Methods structure of TypePy.

◆ Type


The documentation for this class was generated from the following files:
  • build/webdoc/src/Base/TypePy.h
  • src/Base/TypePyImp.cpp
  • build/webdoc/src/Base/TypePy.cpp
static PyObject * staticCallback_getName(PyObject *self, void *closure)
getter callback for the Name attribute
Definition: TypePy.cpp:648
static int staticCallback_setName(PyObject *self, PyObject *value, void *closure)
setter callback for the Name attribute
Definition: TypePy.cpp:666
static int staticCallback_setModule(PyObject *self, PyObject *value, void *closure)
setter callback for the Module attribute
Definition: TypePy.cpp:730
static int staticCallback_setKey(PyObject *self, PyObject *value, void *closure)
setter callback for the Key attribute
Definition: TypePy.cpp:698
static PyObject * staticCallback_getKey(PyObject *self, void *closure)
getter callback for the Key attribute
Definition: TypePy.cpp:680
static PyObject * staticCallback_getModule(PyObject *self, void *closure)
getter callback for the Module attribute
Definition: TypePy.cpp:712