|
For each class you derive from
ENTITY, you must define (using
#define) several simple macros. These define the name for the derived
ENTITY and specify the class from which the new class is derived. The values are used by the other
ENTITY derivation macros to build names of functions and other pieces of code. These macros are defined in the implementation file and must not interfere with other
ENTITY derivations. If more than one
ENTITY is implemented in the same file, you must undefine (#undef) the macros and redefine them.
|
|
|
These macros are:
|
|
|
THIS()
|
The name of this class being defined
|
|
|
PARENT()
|
The name of the immediate base class (parent)
|
|
|
THIS_LIB
|
The name of the module in which this class is implemented
|
|
|
PARENT_LIB
|
The name of the module in which the immediate base class (parent) is implemented
|
|
|
<class>_NAME
|
The entity's external identifier (<class> is the class name)
|
|
|
You must define
THIS() and
PARENT() with empty parentheses and
THIS_LIB and
PARENT_LIB without parentheses. A string must be provided for
<class>_NAME.
|