FEDEM Model Database  R8.0
Source code of the FEDEM model database
FmGenericDBObject.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_GENERIC_DB_OBJECT_H
9 #define FM_GENERIC_DB_OBJECT_H
10 
12 
13 
15 {
17 
18 public:
20 
21  virtual const char* getUITypeName() const { return "Generic object"; }
22 
23  virtual bool clone(FmBase* obj, int depth);
24  virtual std::ostream& writeFMF(std::ostream& os = std::cout);
25  static bool readAndConnect(std::istream& is, std::ostream& os = std::cout);
26 
27  virtual int printSolverEntry(FILE* fp);
28 
29 protected:
30  virtual ~FmGenericDBObject();
31 
32  virtual bool cloneLocal(FmBase* obj, int depth);
33 
34 public:
37 };
38 
39 #endif
Base class for all objects that affect the simulation model.
Base parent class for the model data structure entries.
Definition: FmBase.H:37
Definition: FmGenericDBObject.H:15
virtual int printSolverEntry(FILE *fp)
Hoook for printing the solver input file entry for this object.
Definition: FmGenericDBObject.C:76
FFaField< std::string > objectType
Definition: FmGenericDBObject.H:35
virtual std::ostream & writeFMF(std::ostream &os=std::cout)
Writes out this object in the model database file format.
Definition: FmGenericDBObject.C:38
FmGenericDBObject()
Definition: FmGenericDBObject.C:18
FFaField< std::string > objectDefinition
Definition: FmGenericDBObject.H:36
virtual bool cloneLocal(FmBase *obj, int depth)
Clones the data fields of *obj into *this.
Definition: FmGenericDBObject.C:53
virtual ~FmGenericDBObject()
Definition: FmGenericDBObject.C:32
virtual const char * getUITypeName() const
Returns the type name of this object for use in the GUI.
Definition: FmGenericDBObject.H:21
static bool readAndConnect(std::istream &is, std::ostream &os=std::cout)
Definition: FmGenericDBObject.C:59
virtual bool clone(FmBase *, int)
Copies the fields of another object into *this.
Definition: FmBase.H:109
Base class for structural property objects without physical shape.
Definition: FmSimulationModelBase.H:84