common.cpp
Go to the documentation of this file.
1 
11 
12 #include "common.h"
13 
17 /*
18 std::unique_ptr<Common::AddonsManager> OpcUa::Tests::LoadAddons(const std::string& configPath)
19 {
20  std::string config = "--config=";
21  config += configPath;
22 
23  const char* argv[2];
24  argv[0] = "test.exe";
25  argv[1] = const_cast<char*>(config.c_str());
26  OpcUa::Server::CommandLine cmdline(2, argv);
27  Common::ModulesConfiguration modules = cmdline.GetModules();
28  Common::AddonsManager::UniquePtr addons = Common::CreateAddonsManager();
29  for (auto module : modules)
30  {
31  Common::AddonInformation config;
32  config.Id = module.Id;
33  config.Factory = Common::CreateDynamicAddonFactory(module.Path.c_str());
34  config.Dependencies = module.DependsOn;
35  config.Parameters = module.Parameters;
36  addons->Register(config);
37  }
38  addons->Start();
39  return addons;
40 }
41 
42 */


ros_opcua_impl_freeopcua
Author(s): Denis Štogl
autogenerated on Tue Jan 19 2021 03:06:04