IOSS  2.0
Ioss_ElementVariableType.h
Go to the documentation of this file.
1 // Copyright(C) 1999-2020 National Technology & Engineering Solutions
2 // of Sandia, LLC (NTESS). Under the terms of Contract DE-NA0003525 with
3 // NTESS, the U.S. Government retains certain rights in this software.
4 //
5 // See packages/seacas/LICENSE for details
6 
7 #ifndef IOSS_Ioss_ElementVariableType_h
8 #define IOSS_Ioss_ElementVariableType_h
9 
10 #include <Ioss_CodeTypes.h>
11 #include <Ioss_VariableType.h>
12 #include <string>
13 
14 namespace Ioss {
16  {
17  public:
18  std::string label(int /*which*/, const char /*suffix_sep*/) const override { return ""; }
19  std::string label_name(const std::string &base, int /*which*/,
20  const char /*suffix_sep*/) const override
21  {
22  return base;
23  }
24  int suffix_count() const override { return 0; }
25 
26  protected:
27  ElementVariableType(const std::string &type, int comp_count);
28  };
29 
30  inline ElementVariableType::ElementVariableType(const std::string &type, int comp_count)
31  : Ioss::VariableType(type, comp_count, false)
32  {
33  }
34 } // namespace Ioss
35 #endif
Ioss::VariableType
A generic variable type.
Definition: Ioss_VariableType.h:61
Ioss
The main namespace for the Ioss library.
Definition: Ioad_DatabaseIO.C:40
Ioss::ElementVariableType::label_name
std::string label_name(const std::string &base, int, const char) const override
Definition: Ioss_ElementVariableType.h:19
Ioss::ElementVariableType::label
std::string label(int, const char) const override
Definition: Ioss_ElementVariableType.h:18
Ioss::ElementVariableType::suffix_count
int suffix_count() const override
Definition: Ioss_ElementVariableType.h:24
Ioss::ElementVariableType
Definition: Ioss_ElementVariableType.h:16
Ioss::ElementVariableType::ElementVariableType
ElementVariableType(const std::string &type, int comp_count)
Definition: Ioss_ElementVariableType.h:30
Ioss_CodeTypes.h
Ioss_VariableType.h