helics  2.8.1
typeOperations.hpp
Go to the documentation of this file.
1 /*
2 Copyright (c) 2017-2021,
3 Battelle Memorial Institute; Lawrence Livermore National Security, LLC; Alliance for Sustainable
4 Energy, LLC. See the top-level NOTICE for additional details. All rights reserved.
5 SPDX-License-Identifier: BSD-3-Clause
6 */
7 #pragma once
8 #include "../core/core-types.hpp"
9 #include "helics_cxx_export.h"
10 
11 #include <string>
12 
17 namespace helics {
19 HELICS_CXX_EXPORT std::string to_string(core_type type);
20 
26 HELICS_CXX_EXPORT core_type coreTypeFromString(std::string type) noexcept;
27 
31 HELICS_CXX_EXPORT bool isCoreTypeAvailable(core_type type) noexcept;
32 } // namespace helics
helics::core_type
core_type
Definition: core-types.hpp:37
helics::isCoreTypeAvailable
bool isCoreTypeAvailable(core_type type) noexcept
Definition: typeOperations.cpp:22
helics::to_string
std::string to_string(core_type type)
Definition: typeOperations.cpp:12
typeOperations.hpp
helics
the main namespace for the helics co-simulation library User functions will be in the helics namespac...
Definition: AsyncFedCallInfo.hpp:14
helics::coreTypeFromString
core_type coreTypeFromString(std::string type) noexcept
Definition: typeOperations.cpp:17