9 #include "../application_api/BrokerApp.hpp"
20 namespace BrokerFactory {
21 #define HELICS_SHARED_DEPRECATED \
23 "Broker Factory is deprecated for use in the C++ shared library use BrokerApp instead if you really need the functionality either link to the static library and/or contact the developers with the requirements to potentially add it to BrokerApp")]]
30 const std::string& initializationString)
32 BrokerApp brk(type, initializationString);
33 return brk.getCopyofBrokerPointer();
36 HELICS_SHARED_DEPRECATED std::shared_ptr<Broker>
create(
core_type type,
int argc,
char* argv[])
38 BrokerApp brk(type, argc, argv);
39 return brk.getCopyofBrokerPointer();
44 std::vector<std::string> args)
46 BrokerApp brk(type, args);
47 return brk.getCopyofBrokerPointer();
51 const std::string& broker_name,
52 const std::string& initializationString)
54 BrokerApp brk(type, broker_name, initializationString);
55 return brk.getCopyofBrokerPointer();
58 HELICS_SHARED_DEPRECATED std::shared_ptr<Broker>
59 create(
core_type type,
const std::string& broker_name,
int argc,
char* argv[])
61 BrokerApp brk(type, broker_name, argc, argv);
62 return brk.getCopyofBrokerPointer();
66 HELICS_SHARED_DEPRECATED std::shared_ptr<Broker>
67 create(
core_type type,
const std::string& broker_name, std::vector<std::string> args)
69 BrokerApp brk(type, broker_name, args);
70 return brk.getCopyofBrokerPointer();
76 HELICS_SHARED_DEPRECATED std::shared_ptr<Broker>
findBroker(
const std::string& brokerName)
88 HELICS_SHARED_DEPRECATED std::vector<std::shared_ptr<Broker>>
getAllBrokers() {
return {}; }
91 HELICS_SHARED_DEPRECATED
bool brokersActive() {
return false; }
98 HELICS_SHARED_DEPRECATED
bool registerBroker(
const std::shared_ptr<Broker>& broker)
121 HELICS_SHARED_DEPRECATED
size_t cleanUpBrokers(std::chrono::milliseconds delay) {
return 0; }
127 const std::string& copyToName)