|
FEDEM Model Database
R8.0
Source code of the FEDEM model database
|
Type checking control. More...

Go to the source code of this file.
Namespaces | |
| FFaTypeCheck | |
| Type checking control. | |
Macros | |
| #define | Fmd_HEADER_INIT() |
| Macro enabling type checking for a class. More... | |
| #define | Fmd_BASE_HEADER_INIT() |
| Macro enabling type checking for a top-level class. More... | |
| #define | Fmd_CONSTRUCTOR_INIT(clType) |
| Macro with type checking initializations. More... | |
| #define | Fmd_SOURCE_INIT(clName, clType, prClType) |
| Macro with type checking implementations. More... | |
Functions | |
| int | FFaTypeCheck::getNewTypeID (const char *typeName) |
| Returns a unique type ID number for typeName. More... | |
| int | FFaTypeCheck::getTypeIDFromName (const char *typeName) |
| Returns the type ID number for typeName, if it exists. More... | |
| const char * | FFaTypeCheck::getTypeNameFromID (int typeID) |
| Returns the type name associated with the specified typeID. More... | |
Variables | |
| constexpr int | FFaTypeCheck::NO_TYPE_ID = -1 |
| Value for undefined type ID number. More... | |
Type checking control.
This file contains a set of macros to be used in class definitions, to enable simple type checking in class hierarcies.
| #define Fmd_BASE_HEADER_INIT | ( | ) |
Macro enabling type checking for a top-level class.
Place this in top of the class definition, e.g.:
| #define Fmd_CONSTRUCTOR_INIT | ( | clType | ) |
Macro with type checking initializations.
Place this in the start of your constructor implementation, e.g.:
| #define Fmd_HEADER_INIT | ( | ) |
Macro enabling type checking for a class.
Place this in top of the class definition, e.g.:
| #define Fmd_SOURCE_INIT | ( | clName, | |
| clType, | |||
| prClType | |||
| ) |
Macro with type checking implementations.
Place this somewhere in global scope, preferably at the top of the implementation file of the class, e.g.: