FEDEM Model Database  R8.0
Source code of the FEDEM model database
FmcInput.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 FMC_INPUT_H
9 #define FMC_INPUT_H
10 
12 #include "vpmDB/FmEngine.H"
13 
14 
16 {
18 
19 public:
20  FmcInput();
21 
22  virtual int printSolverEntry(FILE* fp);
23  virtual FmCtrlElementBase* copy();
24 
25  static bool readAndConnect(std::istream& is, std::ostream& os = std::cout);
26  virtual std::ostream& writeFMF(std::ostream& os = std::cout);
27  virtual bool clone(FmBase* obj, int depth);
28 
29  virtual const char* getUITypeName() const { return "CtrlIn"; }
30  virtual const char** getListViewPixmap() const;
31 
32  FmEngine* getEngine() const { return myEngine.getPointer(); }
33  void setEngine(FmEngine* e) { myEngine.setRef(e); }
34 
35 protected:
36  virtual ~FmcInput();
37 
38  virtual bool cloneLocal(FmBase* obj, int depth);
39 
40 private:
43 };
44 
45 #endif
bool setRef(FFaFieldContainer *ptr)
Sets the pointer value from a FFaFieldContainer pointer directly.
Definition: FFaReference.C:78
Type * getPointer() const
Returns the type-casted pointer this reference points to.
Definition: FFaReference.H:234
Base parent class for the model data structure entries.
Definition: FmBase.H:37
Definition: FmCtrlElementBase.H:56
Definition: FmCtrlOutputElementBase.H:20
Definition: FmEngine.H:28
virtual bool clone(FmBase *, int)
Copies the fields of another object into *this.
Definition: FmBase.H:109
Definition: FmcInput.H:16
virtual int printSolverEntry(FILE *fp)
Hoook for printing the solver input file entry for this object.
Definition: FmcInput.C:85
void setEngine(FmEngine *e)
Definition: FmcInput.H:33
FmEngine * getEngine() const
Definition: FmcInput.H:32
virtual ~FmcInput()
Definition: FmcInput.C:39
virtual bool cloneLocal(FmBase *obj, int depth)
Clones the data fields of *obj into *this.
Definition: FmcInput.C:126
Fmd_DB_HEADER_INIT()
static bool readAndConnect(std::istream &is, std::ostream &os=std::cout)
Definition: FmcInput.C:103
FFaReference< FmEngine > myEngine
Definition: FmcInput.H:41
virtual const char ** getListViewPixmap() const
Returns the pixmap of this item.
Definition: FmcInput.C:57
virtual FmCtrlElementBase * copy()
Definition: FmcInput.C:67
FFaField< FFaReferenceBase * > myEngineField
Definition: FmcInput.H:42
virtual std::ostream & writeFMF(std::ostream &os=std::cout)
Writes out this object in the model database file format.
Definition: FmcInput.C:76
virtual const char * getUITypeName() const
Returns the type name of this object for use in the GUI.
Definition: FmcInput.H:29
FmcInput()
Definition: FmcInput.C:25