// Copyright(C) 1999-2020 National Technology & Engineering Solutions // of Sandia, LLC (NTESS). Under the terms of Contract DE-NA0003525 with // NTESS, the U.S. Government retains certain rights in this software. // // See packages/seacas/LICENSE for details #ifndef IOSS_Ioad_TemplateToValue_hpp #define IOSS_Ioad_TemplateToValue_hpp #include "Ioss_Field.h" // for Field, etc namespace Ioad { template constexpr Ioss::Field::BasicType template_to_basic_type() noexcept { return Ioss::Field::BasicType::INVALID; } template <> constexpr Ioss::Field::BasicType template_to_basic_type() noexcept { return Ioss::Field::BasicType::DOUBLE; } template <> constexpr Ioss::Field::BasicType template_to_basic_type() noexcept { return Ioss::Field::BasicType::INT32; } template <> constexpr Ioss::Field::BasicType template_to_basic_type() noexcept { return Ioss::Field::BasicType::INT64; } template <> constexpr Ioss::Field::BasicType template_to_basic_type() noexcept { return Ioss::Field::BasicType::COMPLEX; } template <> constexpr Ioss::Field::BasicType template_to_basic_type() noexcept { return Ioss::Field::BasicType::STRING; } template <> constexpr Ioss::Field::BasicType template_to_basic_type() noexcept { return Ioss::Field::BasicType::CHARACTER; } template <> constexpr char const *get_entity_type() noexcept { return "SideBlock"; } template <> constexpr char const *get_entity_type() noexcept { return "SideSet"; } template <> constexpr char const *get_entity_type() noexcept { return "NodeBlock"; } template <> constexpr char const *get_entity_type() noexcept { return "EdgeBlock"; } template <> constexpr char const *get_entity_type() noexcept { return "FaceBlock"; } template <> constexpr char const *get_entity_type() noexcept { return "ElementBlock"; } template <> constexpr char const *get_entity_type() noexcept { return "NodeSet"; } template <> constexpr char const *get_entity_type() noexcept { return "EdgeSet"; } template <> constexpr char const *get_entity_type() noexcept { return "FaceSet"; } template <> constexpr char const *get_entity_type() noexcept { return "ElementSet"; } template <> constexpr char const *get_entity_type() noexcept { return "CommSet"; } template inline std::string GetType() noexcept { return "compound"; } template <> inline std::string GetType() noexcept { return "unknown"; } template <> inline std::string GetType() noexcept { return "string"; } template <> inline std::string GetType() noexcept { return "char"; } template <> inline std::string GetType() noexcept { return "signed char"; } template <> inline std::string GetType() noexcept { return "unsigned char"; } template <> inline std::string GetType() noexcept { return "short"; } template <> inline std::string GetType() noexcept { return "unsigned short"; } template <> inline std::string GetType() noexcept { return "int"; } template <> inline std::string GetType() noexcept { return "unsigned int"; } template <> inline std::string GetType() noexcept { return "long int"; } template <> inline std::string GetType() noexcept { return "unsigned long int"; } template <> inline std::string GetType() noexcept { return "long long int"; } template <> inline std::string GetType() noexcept { return "unsigned long long int"; } template <> inline std::string GetType() noexcept { return "float"; } template <> inline std::string GetType() noexcept { return "double"; } template <> inline std::string GetType() noexcept { return "long double"; } template <> inline std::string GetType>() noexcept { return "float complex"; } template <> inline std::string GetType>() noexcept { return "double complex"; } } // namespace Ioad #endif