FEDEM Model Database  R8.0
Source code of the FEDEM model database
FmFppOptions.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_FPP_OPTIONS_H
9 #define FM_FPP_OPTIONS_H
10 
13 
14 
16 {
18 
19 public:
20  FmFppOptions();
21 
22  virtual const char* getUITypeName() const { return "FppOptions"; }
23 
24  virtual bool clone(FmBase* obj, int depth);
25  virtual std::ostream& writeFMF(std::ostream& os = std::cout);
26  static bool readAndConnect(std::istream& is, std::ostream& os = std::cout);
27 
28 protected:
29  virtual ~FmFppOptions();
30 
31  virtual bool cloneLocal(FmBase* obj, int depth);
32 
33 public:
38 
41 
42  enum RainFlowType {
44  S_N,
45  E_N
46  };
47 
49  FFaEnumEntry(NONE,"NONE");
50  FFaEnumEntry(S_N, "S_N");
51  FFaEnumEntry(E_N, "E_N");
53  };
54 
56 
59 
60  using FmRange = std::pair<double,double>;
61 
64 
66 };
67 
68 #endif
Enum variables with text representations.
#define FFaEnumEntryEnd
Defines the end of an enum mapping definition.
Definition: FFaEnum.H:237
#define FFaEnumEntry(Value, Text)
Adds one entry to the current enum mapping definition.
Definition: FFaEnum.H:234
Base class for all objects that affect the simulation model.
Base parent class for the model data structure entries.
Definition: FmBase.H:37
Definition: FmFppOptions.H:16
std::pair< double, double > FmRange
Definition: FmFppOptions.H:60
FFaField< std::string > addOptions
Definition: FmFppOptions.H:65
FFaField< double > stopTime
Definition: FmFppOptions.H:35
FFaField< double > startTime
Definition: FmFppOptions.H:34
static bool readAndConnect(std::istream &is, std::ostream &os=std::cout)
Definition: FmFppOptions.C:63
FFaField< RainFlowTypeEnum > histType
Definition: FmFppOptions.H:53
FFaField< double > timeIncr
Definition: FmFppOptions.H:36
FFaField< int > nElemsTogether
Definition: FmFppOptions.H:39
FFaField< FmRange > histRange
Definition: FmFppOptions.H:62
virtual bool cloneLocal(FmBase *obj, int depth)
Clones the data fields of *obj into *this.
Definition: FmFppOptions.C:48
FFaField< double > biaxGate
Definition: FmFppOptions.H:58
FFaField< double > pvxGate
Definition: FmFppOptions.H:57
RainFlowType
Definition: FmFppOptions.H:42
@ E_N
Definition: FmFppOptions.H:45
@ S_N
Definition: FmFppOptions.H:44
@ NONE
Definition: FmFppOptions.H:43
FFaEnumMapping(RainFlowType)
Definition: FmFppOptions.H:48
FFaField< bool > allTimeSteps
Definition: FmFppOptions.H:37
FFaField< int > histNBins
Definition: FmFppOptions.H:63
FmFppOptions()
Definition: FmFppOptions.C:17
virtual ~FmFppOptions()
Definition: FmFppOptions.C:36
virtual std::ostream & writeFMF(std::ostream &os=std::cout)
Writes out this object in the model database file format.
Definition: FmFppOptions.C:54
virtual const char * getUITypeName() const
Returns the type name of this object for use in the GUI.
Definition: FmFppOptions.H:22
FFaField< bool > performRainflow
Definition: FmFppOptions.H:40
Base class for all objects that affect the simulation model.
Definition: FmSimulationModelBase.H:28
virtual bool clone(FmBase *, int)
Copies the fields of another object into *this.
Definition: FmBase.H:109