9 #include "../application_api/CoreApp.hpp"
17 #define HELICS_SHARED_DEPRECATED_CORE \
19 "Core Factory deprecated for use in the C++ shared library use CoreApp instead if you " \
20 "really need the functionality and it is not available in CoreApp either link to the static " \
21 "library and/or contact the developers to " \
22 "potentially add it to CoreApp")]]
29 namespace CoreFactory {
35 HELICS_SHARED_DEPRECATED_CORE std::shared_ptr<Core>
36 create(
core_type type,
const std::string& coreName,
const std::string& initializationString)
38 CoreApp cr(type, coreName, initializationString);
39 return cr.getCopyofCorePointer();
46 HELICS_SHARED_DEPRECATED_CORE std::shared_ptr<Core>
49 CoreApp cr(type, initializationString);
50 return cr.getCopyofCorePointer();
58 HELICS_SHARED_DEPRECATED_CORE std::shared_ptr<Core>
61 CoreApp cr(type, argc, argv);
62 return cr.getCopyofCorePointer();
71 HELICS_SHARED_DEPRECATED_CORE std::shared_ptr<Core>
create(std::vector<std::string> args)
74 return cr.getCopyofCorePointer();
81 HELICS_SHARED_DEPRECATED_CORE std::shared_ptr<Core>
create(
core_type type,
82 std::vector<std::string> args)
84 CoreApp cr(type, args);
85 return cr.getCopyofCorePointer();
95 HELICS_SHARED_DEPRECATED_CORE std::shared_ptr<Core>
create(
int argc,
char* argv[])
97 CoreApp cr(argc, argv);
98 return cr.getCopyofCorePointer();
108 HELICS_SHARED_DEPRECATED_CORE std::shared_ptr<Core>
109 create(
core_type type,
const std::string& coreName,
int argc,
char* argv[])
111 CoreApp cr(type, coreName, argc, argv);
112 return cr.getCopyofCorePointer();
121 HELICS_SHARED_DEPRECATED_CORE std::shared_ptr<Core>
122 create(
core_type type,
const std::string& coreName, std::vector<std::string> args)
124 CoreApp cr(type, coreName, args);
125 return cr.getCopyofCorePointer();
130 HELICS_SHARED_DEPRECATED_CORE std::shared_ptr<Core>
132 const std::string& coreName,
133 const std::string& initializationString)
135 CoreApp cr(type, coreName, initializationString);
136 return cr.getCopyofCorePointer();
141 HELICS_SHARED_DEPRECATED_CORE std::shared_ptr<Core>
144 CoreApp cr(type, coreName, argc, argv);
145 return cr.getCopyofCorePointer();
150 HELICS_SHARED_DEPRECATED_CORE std::shared_ptr<Core>
153 CoreApp cr(type, coreName, args);
154 return cr.getCopyofCorePointer();
166 HELICS_SHARED_DEPRECATED_CORE std::shared_ptr<Core>
findCore(
const std::string& name)
176 HELICS_SHARED_DEPRECATED_CORE
bool registerCore(
const std::shared_ptr<Core>& core) {}
181 HELICS_SHARED_DEPRECATED_CORE
void unregisterCore(
const std::string& name) {}
187 HELICS_SHARED_DEPRECATED_CORE
size_t cleanUpCores() {
return 0; }
194 HELICS_SHARED_DEPRECATED_CORE
size_t cleanUpCores(std::chrono::milliseconds delay) {
return 0; }
199 HELICS_SHARED_DEPRECATED_CORE
bool copyCoreIdentifier(
const std::string& copyFromName,
200 const std::string& copyToName)