helics  3.0.1
PrecHelper.hpp
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 
9 #include "../application_api/helicsTypes.hpp"
10 
11 #include <string>
12 
13 namespace helics {
14 class FederateInfo;
15 } // namespace helics
16 
17 helics::DataType getType(const std::string& typeString);
18 
19 char typeCharacter(helics::DataType type);
20 
21 bool isBinaryData(helics::SmallBuffer& data);
24 bool isEscapableData(helics::SmallBuffer& data);
helics::apps::Player
Definition: Player.hpp:42
helics::SmallBuffer
Definition: SmallBuffer.hpp:24
helics::getTypeFromString
DataType getTypeFromString(std::string_view typeName)
Definition: helicsTypes.cpp:219
helics::SmallBuffer::to_string
std::string_view to_string() const
Definition: SmallBuffer.hpp:222
helics::DataType
DataType
Definition: helicsTypes.hpp:272
helics::cleanupHelicsLibrary
void cleanupHelicsLibrary()
Definition: Federate.cpp:37
helics
the main namespace for the helics co-simulation library User functions will be in the helics namespac...
Definition: AsyncFedCallInfo.hpp:14
helics::HelicsException
Definition: core-exceptions.hpp:18