FEDEM Model Database  R8.0
Source code of the FEDEM model database
FFlTypeInfoSpec.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 
8 #ifndef FFL_TYPE_INFO_SPEC_H
9 #define FFL_TYPE_INFO_SPEC_H
10 
11 #include <string>
12 
14 
15 
16 #define FFL_TYPE_INFO(class) \
17 virtual FFlTypeInfoSpec* getTypeInfoSpec() const \
18 { return FFaSingelton<FFlTypeInfoSpec,class>::instance(); }
19 
20 
22 {
23 public:
25 
26  const std::string& getTypeName() const { return myTypeName; }
27  void setTypeName(const std::string& n) { myTypeName = n; }
28 
29  const std::string& getDescription() const { return myDescription; }
30  void setDescription(const std::string& d) { myDescription = d; }
31 
38 
39  Cathegory getCathegory() const { return myCathegory; }
41 
42 private:
43  std::string myTypeName;
44  std::string myDescription;
46 };
47 
48 #endif
Template for singleton classes.
Definition: FFlTypeInfoSpec.H:22
Cathegory
Definition: FFlTypeInfoSpec.H:32
@ OTHER
Definition: FFlTypeInfoSpec.H:37
@ OTHER_PROP
Definition: FFlTypeInfoSpec.H:35
@ CONSTRAINT_ELM
Definition: FFlTypeInfoSpec.H:32
@ MATERIAL_PROP
Definition: FFlTypeInfoSpec.H:34
@ MASS_PROP
Definition: FFlTypeInfoSpec.H:34
@ NODE
Definition: FFlTypeInfoSpec.H:36
@ SOLID_ELM
Definition: FFlTypeInfoSpec.H:32
@ SHELL_ELM
Definition: FFlTypeInfoSpec.H:32
@ LOAD
Definition: FFlTypeInfoSpec.H:37
@ BEAM_ELM
Definition: FFlTypeInfoSpec.H:32
@ USER_DEF_GROUP
Definition: FFlTypeInfoSpec.H:36
@ COORD_SYS
Definition: FFlTypeInfoSpec.H:36
@ VISUAL_PROP
Definition: FFlTypeInfoSpec.H:35
@ STRC_ELM
Definition: FFlTypeInfoSpec.H:33
@ OTHER_ELM
Definition: FFlTypeInfoSpec.H:33
@ STRC_PROP
Definition: FFlTypeInfoSpec.H:35
@ GEOMETRY_PROP
Definition: FFlTypeInfoSpec.H:34
void setDescription(const std::string &d)
Definition: FFlTypeInfoSpec.H:30
const std::string & getDescription() const
Definition: FFlTypeInfoSpec.H:29
std::string myDescription
Definition: FFlTypeInfoSpec.H:44
void setTypeName(const std::string &n)
Definition: FFlTypeInfoSpec.H:27
std::string myTypeName
Definition: FFlTypeInfoSpec.H:43
const std::string & getTypeName() const
Definition: FFlTypeInfoSpec.H:26
void setCathegory(Cathegory c)
Definition: FFlTypeInfoSpec.H:40
Cathegory myCathegory
Definition: FFlTypeInfoSpec.H:45
Cathegory getCathegory() const
Definition: FFlTypeInfoSpec.H:39
FFlTypeInfoSpec()
Definition: FFlTypeInfoSpec.H:24