helics  3.0.1
timeOperations.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/helicsTime.hpp"
9 #include "helics_cxx_export.h"
10 
11 #include <string>
15 namespace helics {
16 
23 HELICS_CXX_EXPORT Time loadTimeFromString(const std::string& timeString);
24 
33 HELICS_CXX_EXPORT Time loadTimeFromString(std::string timeString, time_units defUnit);
34 
39 HELICS_CXX_EXPORT time_units timeUnitsFromString(const std::string& unitString);
40 
41 } // namespace helics
timeOperations.hpp
helics::Time
TimeRepresentation< count_time< 9 > > Time
Definition: helicsTime.hpp:27
helics::timeUnitsFromString
time_units timeUnitsFromString(const std::string &unitString)
Definition: timeOperations.cpp:14
helics
the main namespace for the helics co-simulation library User functions will be in the helics namespac...
Definition: AsyncFedCallInfo.hpp:14
helics::loadTimeFromString
Time loadTimeFromString(const std::string &timeString)
Definition: timeOperations.cpp:19