FEDEM Model Database  R8.0
Source code of the FEDEM model database
FmFuncAdmin.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 FM_FUNC_ADMIN_H
9 #define FM_FUNC_ADMIN_H
10 
12 #include <string>
13 #include <vector>
14 
15 class FmMathFuncBase;
16 
17 
19 {
20  FmFuncTypeInfo(const char* fn = NULL, int ft = FFaTypeCheck::NO_TYPE_ID);
21  int getFuncType() const;
22 
23  std::string listName;
24  int funcType;
26 };
27 
28 
29 namespace FmFuncAdmin
30 {
31  const std::vector<int>& getAllowableSprDmpFuncTypes();
32 
33  bool hasSmartPoints(int type);
34 
35  void getCompatibleFunctionTypes(std::vector<FmFuncTypeInfo>& types,
36  FmMathFuncBase* func);
37 
38  FmMathFuncBase* createFunction(int type);
39 
40  void clearInfoTable();
41 
42  enum FuncType
43  {
44  INTERNAL = -2,
45  UNDEFINED = -1,
46 
47  NONE = 0,
48 
50 
55 
57 
64 
66 
74 
76 
81 
83  };
84 }
85 
86 #endif
Type checking control.
Definition: FmMathFuncBase.H:22
constexpr int NO_TYPE_ID
Value for undefined type ID number.
Definition: FFaTypeCheck.H:28
Definition: FmFuncAdmin.H:30
FuncType
Definition: FmFuncAdmin.H:43
@ PERIODIC_HEADING
Definition: FmFuncAdmin.H:65
@ RAMP
Definition: FmFuncAdmin.H:61
@ DELAYED_COMPL_SINUS
Definition: FmFuncAdmin.H:69
@ COMPL_SINUS
Definition: FmFuncAdmin.H:68
@ STEP
Definition: FmFuncAdmin.H:60
@ INTERNAL
Definition: FmFuncAdmin.H:44
@ SCALE
Definition: FmFuncAdmin.H:59
@ SQUARE_PULS
Definition: FmFuncAdmin.H:73
@ SPECIAL_HEADING
Definition: FmFuncAdmin.H:75
@ WAVE_SINUS
Definition: FmFuncAdmin.H:70
@ GENERAL_HEADING
Definition: FmFuncAdmin.H:49
@ LIN_VAR
Definition: FmFuncAdmin.H:51
@ LIM_RAMP
Definition: FmFuncAdmin.H:62
@ LIN_VEL_VAR
Definition: FmFuncAdmin.H:77
@ REFERENCE
Definition: FmFuncAdmin.H:80
@ FILE_SPECTRUM
Definition: FmFuncAdmin.H:72
@ SPLINE
Definition: FmFuncAdmin.H:53
@ UNDEFINED
Definition: FmFuncAdmin.H:45
@ DIRAC_PULS
Definition: FmFuncAdmin.H:63
@ MATH_EXPRESSION
Definition: FmFuncAdmin.H:54
@ EXTERNAL
Definition: FmFuncAdmin.H:79
@ CONSTANT
Definition: FmFuncAdmin.H:58
@ USER_HEADING
Definition: FmFuncAdmin.H:82
@ SMOOTH_TRAJ
Definition: FmFuncAdmin.H:78
@ SIMPLE_HEADING
Definition: FmFuncAdmin.H:56
@ SINUSOIDAL
Definition: FmFuncAdmin.H:67
@ DEVICE
Definition: FmFuncAdmin.H:52
@ WAVE_SPECTRUM
Definition: FmFuncAdmin.H:71
@ NONE
Definition: FmFuncAdmin.H:47
void clearInfoTable()
Definition: FmFuncAdmin.C:105
const std::vector< int > & getAllowableSprDmpFuncTypes()
Definition: FmFuncAdmin.C:111
FmMathFuncBase * createFunction(int type)
Definition: FmFuncAdmin.C:210
bool hasSmartPoints(int type)
Definition: FmFuncAdmin.C:126
void getCompatibleFunctionTypes(std::vector< FmFuncTypeInfo > &types, FmMathFuncBase *func)
Definition: FmFuncAdmin.C:146
Definition: FmFuncAdmin.H:19
std::string listName
Definition: FmFuncAdmin.H:23
int funcType
Definition: FmFuncAdmin.H:24
int getFuncType() const
Definition: FmFuncAdmin.C:96
FmFuncTypeInfo(const char *fn=NULL, int ft=FFaTypeCheck::NO_TYPE_ID)
Definition: FmFuncAdmin.C:88
int funcMenuEnum
Definition: FmFuncAdmin.H:25