Blender V2.61 - r43446
Public Member Functions | Protected Attributes

BlendType< PyObj > Class Template Reference

#include <BlendType.h>

List of all members.

Public Member Functions

 BlendType (const char *name)
 constructor
PyObj * checkType (PyObject *obj)
 check blender type and return pointer to contained object or NULL (if type is not valid)
PyObj * parseArg (PyObject *args)
 parse arguments to get object

Protected Attributes

const char * m_name
 name of Python type
PyTypeObject * m_objType
 pointer to Python type

Detailed Description

template<class PyObj>
class BlendType< PyObj >

class allows check type of blender python object and access its contained object MUST ONLY BE USED FOR KX classes that are descendent of PyObjectPlus

Definition at line 33 of file BlendType.h.


Constructor & Destructor Documentation

template<class PyObj>
BlendType< PyObj >::BlendType ( const char *  name) [inline]

constructor

Definition at line 37 of file BlendType.h.


Member Function Documentation

template<class PyObj>
PyObj* BlendType< PyObj >::checkType ( PyObject *  obj) [inline]

check blender type and return pointer to contained object or NULL (if type is not valid)

Definition at line 40 of file BlendType.h.

References BlendType< PyObj >::m_name, BlendType< PyObj >::m_objType, and NULL.

Referenced by BlendType< PyObj >::parseArg().

template<class PyObj>
PyObj* BlendType< PyObj >::parseArg ( PyObject *  args) [inline]

parse arguments to get object

Definition at line 62 of file BlendType.h.

References BlendType< PyObj >::checkType(), and NULL.


Member Data Documentation

template<class PyObj>
const char* BlendType< PyObj >::m_name [protected]

name of Python type

Definition at line 75 of file BlendType.h.

Referenced by BlendType< PyObj >::checkType().

template<class PyObj>
PyTypeObject* BlendType< PyObj >::m_objType [protected]

pointer to Python type

Definition at line 77 of file BlendType.h.

Referenced by BlendType< PyObj >::checkType().


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