BaseClass.h File Reference

#include "Type.h"

Go to the source code of this file.

Classes

class  Base::BaseClass
 BaseClass class and root of the type system. More...

Namespaces

namespace  Base
 

The namespace of the FreeCAD Base library.


Defines

#define TYPESYSTEM_HEADER()
 define for subclassing Base::BaseClass
#define TYPESYSTEM_SOURCE(_class_, _parentclass_)
 define to implement a subclass of Base::BaseClass
#define TYPESYSTEM_SOURCE_ABSTRACT(_class_, _parentclass_)
 define to implement a subclass of Base::BaseClass
#define TYPESYSTEM_SOURCE_ABSTRACT_P(_class_)
 define to implement a subclass of Base::BaseClass
#define TYPESYSTEM_SOURCE_P(_class_)
 define to implement a subclass of Base::BaseClass

Typedefs

typedef struct _object PyObject

Define Documentation

 
#define TYPESYSTEM_HEADER (  ) 
Value:
public: \
  static Base::Type getClassTypeId(void); \
  virtual Base::Type getTypeId(void) const; \
  static void init(void);\
  static void *create(void);\
private: \
  static Base::Type classTypeId

define for subclassing Base::BaseClass

Definition at line 34 of file BaseClass.h.

#define TYPESYSTEM_SOURCE ( _class_,
_parentclass_   ) 
Value:
TYPESYSTEM_SOURCE_P(_class_);\
void _class_::init(void){\
  initSubclass(_class_::classTypeId, #_class_ , #_parentclass_, &(_class_::create) ); \
}

define to implement a subclass of Base::BaseClass

Definition at line 64 of file BaseClass.h.

#define TYPESYSTEM_SOURCE_ABSTRACT ( _class_,
_parentclass_   ) 
Value:
TYPESYSTEM_SOURCE_ABSTRACT_P(_class_);\
void _class_::init(void){\
  initSubclass(_class_::classTypeId, #_class_ , #_parentclass_, &(_class_::create) ); \
}

define to implement a subclass of Base::BaseClass

Definition at line 71 of file BaseClass.h.

#define TYPESYSTEM_SOURCE_ABSTRACT_P ( _class_   ) 
Value:
Base::Type _class_::getClassTypeId(void) { return _class_::classTypeId; } \
Base::Type _class_::getTypeId(void) const { return _class_::classTypeId; } \
Base::Type _class_::classTypeId = Base::Type::badType();  \
void * _class_::create(void){return 0;}

define to implement a subclass of Base::BaseClass

Definition at line 56 of file BaseClass.h.

#define TYPESYSTEM_SOURCE_P ( _class_   ) 
Value:
Base::Type _class_::getClassTypeId(void) { return _class_::classTypeId; } \
Base::Type _class_::getTypeId(void) const { return _class_::classTypeId; } \
Base::Type _class_::classTypeId = Base::Type::badType();  \
void * _class_::create(void){\
   return new _class_ ();\
}

define to implement a subclass of Base::BaseClass

Definition at line 47 of file BaseClass.h.


Typedef Documentation

typedef struct _object PyObject

Definition at line 30 of file BaseClass.h.


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