helics 3.7.0
Loading...
Searching...
No Matches
helicsApps.h
Go to the documentation of this file.
1/*
2Copyright (c) 2017-2026,
3Battelle Memorial Institute; Lawrence Livermore National Security, LLC; Alliance for Energy Innovation LLC. See the top-level NOTICE for
4additional details. All rights reserved.
5SPDX-License-Identifier: BSD-3-Clause
6*/
7
13#ifndef HELICS_APISHARED_APP_FUNCTIONS_H_
14#define HELICS_APISHARED_APP_FUNCTIONS_H_
15
16#include "helicsCore.h"
17
18#ifdef __cplusplus
19extern "C" {
20#endif
21
23HELICS_EXPORT HelicsBool helicsAppEnabled();
38HELICS_EXPORT HelicsApp
39 helicsCreateApp(const char* appName, const char* appType, const char* configFile, HelicsFederateInfo fedInfo, HelicsError* err);
40
50
60HELICS_EXPORT void helicsAppLoadFile(HelicsApp app, const char* configFile, HelicsError* err);
61
67HELICS_EXPORT void helicsAppInitialize(HelicsApp app, HelicsError* err);
68
74HELICS_EXPORT void helicsAppRun(HelicsApp app, HelicsError* err);
75
82HELICS_EXPORT void helicsAppRunTo(HelicsApp app, HelicsTime stopTime, HelicsError* err);
83
88HELICS_EXPORT void helicsAppFinalize(HelicsApp app, HelicsError* err);
89
93HELICS_EXPORT void helicsAppFree(HelicsApp app);
94
98HELICS_EXPORT void helicsAppDestroy(HelicsApp app);
99
104HELICS_EXPORT HelicsBool helicsAppIsActive(HelicsApp app);
105
106#ifdef __cplusplus
107} /* end of extern "C" { */
108#endif
109
110#endif
void * HelicsFederateInfo
Definition api-data.h:77
double HelicsTime
Definition api-data.h:106
void * HelicsApp
Definition api-data.h:71
int HelicsBool
Definition api-data.h:120
void * HelicsFederate
Definition api-data.h:65
void helicsAppFinalize(HelicsApp app, HelicsError *err)
Definition helicsAppsExport.cpp:219
void helicsAppFree(HelicsApp app)
Definition helicsAppsExport.cpp:233
HelicsApp helicsCreateApp(const char *appName, const char *appType, const char *configFile, HelicsFederateInfo fedInfo, HelicsError *err)
Definition helicsAppsExport.cpp:99
HelicsFederate helicsAppGetFederate(HelicsApp app, HelicsError *err)
Definition helicsAppsExport.cpp:148
HelicsBool helicsAppIsActive(HelicsApp app)
Definition helicsAppsExport.cpp:250
void helicsAppInitialize(HelicsApp app, HelicsError *err)
Definition helicsAppsExport.cpp:177
void helicsAppRun(HelicsApp app, HelicsError *err)
Definition helicsAppsExport.cpp:191
HelicsBool helicsAppEnabled()
Definition helicsAppsExport.cpp:95
void helicsAppDestroy(HelicsApp app)
Definition helicsAppsExport.cpp:244
void helicsAppRunTo(HelicsApp app, HelicsTime stopTime, HelicsError *err)
Definition helicsAppsExport.cpp:205
void helicsAppLoadFile(HelicsApp app, const char *configFile, HelicsError *err)
Definition helicsAppsExport.cpp:163
Common functions for the HELICS C api.
Definition api-data.h:179