FEDEM Model Database  R8.0
Source code of the FEDEM model database
Macros
FmTypeCheck.H File Reference

Type checking control. More...

#include "FFaLib/FFaTypeCheck/FFaTypeCheck.H"
Include dependency graph for FmTypeCheck.H:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define Fmd_DB_HEADER_INIT()
 Macro enabling type checking for a class. More...
 
#define Fmd_DB_SOURCE_INIT(clName, clType, prClType)
 Macro with type checking implementations. More...
 

Detailed Description

Type checking control.

This file contains some vpmDB specific macros for type checking. They are used instead of the plain type checking macros, when making new Mechanism database objects.

See also
FFaTypeCheck.H

Macro Definition Documentation

◆ Fmd_DB_HEADER_INIT

#define Fmd_DB_HEADER_INIT ( )
Value:
\
Fmd_HEADER_INIT(); \
public: \
static bool parentParse(const char* keyWord, std::istream& activeStatement, void* obj); \
bool cloneInherited(FmBase* obj, int depth)
Base parent class for the model data structure entries.
Definition: FmBase.H:37

Macro enabling type checking for a class.

◆ Fmd_DB_SOURCE_INIT

#define Fmd_DB_SOURCE_INIT (   clName,
  clType,
  prClType 
)
Value:
\
bool clType::cloneInherited(FmBase* obj, int depth) \
{ \
bool status = true; \
if (clType::typeID != prClType::getClassTypeID()) \
status = this->prClType::cloneInherited(obj,depth); \
\
return this->clType::cloneLocal(obj,depth) && status; \
} \
\
bool clType::parentParse(const char* keyWord, std::istream& activeStatement, void* obj) \
{ \
return prClType::localParse(keyWord,activeStatement,static_cast<prClType*>(obj)); \
} \
Fmd_SOURCE_INIT(clName, clType, prClType)
#define Fmd_SOURCE_INIT(clName, clType, prClType)
Macro with type checking implementations.
Definition: FFaTypeCheck.H:85
static bool localParse(const char *keyWord, std::istream &is, FmDofLoad *obj)
Definition: FmDofLoad.C:86

Macro with type checking implementations.