helics  3.0.1
cpp98/helics.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 
8 #ifndef _HELICS_CPP98_API_
9 #define _HELICS_CPP98_API_
10 #pragma once
11 
12 #include "CombinationFederate.hpp"
13 
14 #include <string>
15 
19 namespace helicscpp {
21 inline std::string getHelicsVersionString()
22 {
23  return std::string(helicsGetVersion());
24 }
26 inline std::string version()
27 {
28  return std::string(helicsGetVersion());
29 }
30 
32 inline std::string buildFlags()
33 {
34  return std::string(helicsGetBuildFlags());
35 }
36 
38 inline std::string compilerVersion()
39 {
40  return std::string(helicsGetCompilerVersion());
41 }
42 
44 inline void cleanupHelicsLibrary()
45 {
47 }
48 
50 inline void closeLibrary()
51 {
53 }
54 
55 inline void loadSignalHandler()
56 {
58 }
59 
60 inline void loadSignalHandler(HelicsBool (*handler)(int))
61 {
63 }
64 
65 inline void clearSignalHandler()
66 {
68 }
69 
70 } // namespace helicscpp
71 #endif
helicsGetBuildFlags
const char * helicsGetBuildFlags(void)
Definition: helicsExport.cpp:34
helics::BrokerFactory::getAllBrokers
std::vector< std::shared_ptr< Broker > > getAllBrokers()
Definition: BrokerFactory.cpp:220
helicsLoadSignalHandlerCallback
void helicsLoadSignalHandlerCallback(HelicsBool(*handler)(int))
Definition: helicsExport.cpp:97
helics::BrokerFactory::findBroker
std::shared_ptr< Broker > findBroker(const std::string &brokerName)
Definition: BrokerFactory.cpp:182
helics::BrokerFactory::getConnectedBroker
std::shared_ptr< Broker > getConnectedBroker()
Definition: BrokerFactory.cpp:203
helicscpp::cleanupHelicsLibrary
void cleanupHelicsLibrary()
Definition: cpp98/helics.hpp:44
helics::apps::WebServer::enableWebSocketServer
void enableWebSocketServer(bool enabled)
Definition: helicsWebServer.hpp:38
helics::Time
TimeRepresentation< count_time< 9 > > Time
Definition: helicsTime.hpp:27
helics::apps::WebServer::startServer
virtual void startServer(const Json::Value *val) override
Definition: helicsWebServer.cpp:917
helics::BrokerApp
Definition: application_api/BrokerApp.hpp:26
helicscpp::version
std::string version()
Definition: cpp98/helics.hpp:26
helicscpp::buildFlags
std::string buildFlags()
Definition: cpp98/helics.hpp:32
helics::helicsCLI11App
Definition: helicsCLI11.hpp:41
helicsGetCompilerVersion
const char * helicsGetCompilerVersion(void)
Definition: helicsExport.cpp:39
helicsCloseLibrary
void helicsCloseLibrary(void)
Definition: helicsExport.cpp:902
helicscpp::compilerVersion
std::string compilerVersion()
Definition: cpp98/helics.hpp:38
helicsCleanupLibrary
void helicsCleanupLibrary(void)
Definition: helicsExport.cpp:1110
helicscpp::closeLibrary
void closeLibrary()
Definition: cpp98/helics.hpp:50
helics::cleanupHelicsLibrary
void cleanupHelicsLibrary()
Definition: Federate.cpp:37
helicsClearSignalHandler
void helicsClearSignalHandler()
Definition: helicsExport.cpp:79
helicsGetVersion
const char * helicsGetVersion(void)
Definition: helicsExport.cpp:29
helics::vectorizeQueryResult
std::vector< std::string > vectorizeQueryResult(std::string &&queryres)
Definition: queryFunctions.cpp:19
helics::apps::BrokerServer
Definition: BrokerServer.hpp:32
helicsLoadSignalHandler
void helicsLoadSignalHandler()
Definition: helicsExport.cpp:74
helics::BrokerKeeper
Definition: application_api/BrokerApp.hpp:172
helics::apps::WebServer::enableHttpServer
void enableHttpServer(bool enabled)
Definition: helicsWebServer.hpp:36
helics::HelicsException
Definition: core-exceptions.hpp:18
helicscpp::getHelicsVersionString
std::string getHelicsVersionString()
Definition: cpp98/helics.hpp:21
helicscpp
Definition: cpp98/Broker.hpp:18
HelicsBool
int HelicsBool
Definition: api-data.h:102
helics::apps::WebServer::stopServer
virtual void stopServer() override
Definition: helicsWebServer.cpp:938