FEDEM Solver  R8.0
Source code of the dynamics solver
FFrSuperObjectGroup.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 
13 #ifndef FFR_SUPER_OBJECT_GROUP_H
14 #define FFR_SUPER_OBJECT_GROUP_H
15 
17 
18 
24 {
25 public:
27  FFrSuperObjectGroup(const std::string& name, std::set<std::string>& dict);
29  virtual ~FFrSuperObjectGroup();
30 
32  virtual const std::string& getDescription() const;
34  virtual const std::string& getType() const { return *typeIt; }
35 
37  virtual bool isSOG() const { return true; }
38 
39 private:
41  std::set<std::string>::const_iterator typeIt;
42 
43 #if FFR_DEBUG > 2
44  static long int count;
45 #endif
46 };
47 
48 #endif
Generic base class for non-leaf result file entries.
Generic base class for non-leaf result file entries.
Definition: FFrFieldEntryBase.H:30
Class representing top level entries in a result file hierarchy.
Definition: FFrSuperObjectGroup.H:24
virtual ~FFrSuperObjectGroup()
Empty destructor.
Definition: FFrSuperObjectGroup.C:31
virtual const std::string & getDescription() const
Returns the type name with additonal '(s)' formatting.
Definition: FFrSuperObjectGroup.C:40
std::set< std::string >::const_iterator typeIt
Points to the type name of this entry, which is kept in a dictionary.
Definition: FFrSuperObjectGroup.H:41
virtual const std::string & getType() const
Returns the type name without any modifications.
Definition: FFrSuperObjectGroup.H:34
virtual bool isSOG() const
Returns true since this entry is as Super Object Group.
Definition: FFrSuperObjectGroup.H:37
FFrSuperObjectGroup(const std::string &name, std::set< std::string > &dict)
The constructor inserts its name in the dictionary.
Definition: FFrSuperObjectGroup.C:20