FEDEM Model Database
R8.0
Source code of the FEDEM model database
vpmDB
FmTypeCheck.H
Go to the documentation of this file.
1
// SPDX-FileCopyrightText: 2023 SAP SE
2
//
3
// SPDX-License-Identifier: Apache-2.0
4
//
5
// This file is part of FEDEM - https://openfedem.org
7
17
#ifndef FM_TYPE_CHECK_H
18
#define FM_TYPE_CHECK_H
19
20
#include "
FFaLib/FFaTypeCheck/FFaTypeCheck.H
"
21
22
24
#define Fmd_DB_HEADER_INIT() \
25
\
26
Fmd_HEADER_INIT(); \
27
public: \
28
static bool parentParse(const char* keyWord, std::istream& activeStatement, void* obj); \
29
bool cloneInherited(FmBase* obj, int depth)
30
32
#define Fmd_DB_SOURCE_INIT(clName, clType, prClType) \
33
\
34
bool clType::cloneInherited(FmBase* obj, int depth) \
35
{ \
36
bool status = true; \
37
if (clType::typeID != prClType::getClassTypeID()) \
38
status = this->prClType::cloneInherited(obj,depth); \
39
\
40
return this->clType::cloneLocal(obj,depth) && status; \
41
} \
42
\
43
bool clType::parentParse(const char* keyWord, std::istream& activeStatement, void* obj) \
44
{ \
45
return prClType::localParse(keyWord,activeStatement,static_cast<prClType*>(obj)); \
46
} \
47
\
48
Fmd_SOURCE_INIT(clName, clType, prClType)
49
50
#endif
FFaTypeCheck.H
Type checking control.
Generated on Thu Nov 12 2026 06:43:34 for FEDEM Model Database by
1.9.1