8 #include "../core/CoreFederateInfo.hpp"
9 #include "../core/CoreTypes.hpp"
10 #include "helics_cxx_export.h"
36 bool debugging{
false};
41 bool forceNewCore{
false};
43 bool useJsonSerialization{
false};
45 bool encrypted{
false};
60 bool fileInUse{
false};
87 std::vector<std::string> loadInfoFromArgs(
const std::string& args);
93 std::vector<std::string> loadInfoFromArgs(
int argc,
char* argv[]);
98 void loadInfoFromArgs(std::vector<std::string>& args);
102 void loadInfoFromArgsIgnoreOutput(
const std::string& args);
107 void loadInfoFromArgsIgnoreOutput(
int argc,
char* argv[]);
112 void loadInfoFromToml(
const std::string& toml,
bool runArgParser =
true);
117 void loadInfoFromJson(
const std::string& json,
bool runArgParser =
true);
120 Time checkTimeProperty(
int propId,
Time defVal)
const;
121 bool checkFlagProperty(
int propId,
bool defVal)
const;
122 int checkIntProperty(
int propId,
int defVal)
const;
125 void injectParser(CLI::App* app);
128 std::unique_ptr<helicsCLI11App> makeCLIApp();
130 void config_additional(CLI::App* app);
137 HELICS_CXX_EXPORT FederateInfo
loadFederateInfo(
const std::string& configString);
Definition: CoreFederateInfo.hpp:16
Definition: FederateInfo.hpp:28
std::string broker
connection information for the broker
Definition: FederateInfo.hpp:54
std::string defName
a default name to use for a federate
Definition: FederateInfo.hpp:50
std::string configString
storage for config file name or string
Definition: FederateInfo.hpp:59
std::string brokerInitString
an initialization string for the broker if auto generated
Definition: FederateInfo.hpp:53
std::string profilerFileName
Definition: FederateInfo.hpp:48
std::string key
key for the broker
Definition: FederateInfo.hpp:55
std::string encryptionConfig
encryption configuration string or file
Definition: FederateInfo.hpp:49
std::string localport
Definition: FederateInfo.hpp:56
std::string coreName
the name of the core
Definition: FederateInfo.hpp:51
std::string coreInitString
an initialization string for the core API object
Definition: FederateInfo.hpp:52
Definition: JsonProcessingFunctions.hpp:25
the main namespace for the helics co-simulation library User functions will be in the helics namespac...
Definition: AsyncFedCallInfo.hpp:14
FederateInfo loadFederateInfo(const std::string &configString)
Definition: FederateInfo.cpp:783
CoreType
Definition: CoreTypes.hpp:46
@ DEFAULT
ZMQ if available or UDP.
int getFlagIndex(std::string val)
Definition: FederateInfo.cpp:412
int getOptionIndex(std::string val)
Definition: FederateInfo.cpp:431
int getOptionValue(std::string val)
Definition: FederateInfo.cpp:450
std::string generateFullCoreInitString(const FederateInfo &fedInfo)
Definition: FederateInfo.cpp:1014
int getPropertyIndex(std::string val)
Definition: FederateInfo.cpp:389
TimeRepresentation< count_time< 9 > > Time
Definition: helicsTime.hpp:27