common.cpp
Go to the documentation of this file.
00001 
00002 
00003 
00004 
00005 
00006 
00007 
00008 
00009 
00010 
00011 
00012 #include "common.h"
00013 
00014 #include <opc/common/addons_core/dynamic_addon_factory.h>
00015 #include <opc/common/addons_core/config_file.h>
00016 #include <src/serverapp/server_options.h>
00017 /*
00018 std::unique_ptr<Common::AddonsManager> OpcUa::Tests::LoadAddons(const std::string& configPath)
00019 {
00020   std::string config = "--config=";
00021   config += configPath;
00022 
00023   const char* argv[2];
00024   argv[0] =  "test.exe";
00025   argv[1] =   const_cast<char*>(config.c_str());
00026   OpcUa::Server::CommandLine cmdline(2, argv);
00027   Common::ModulesConfiguration modules = cmdline.GetModules();
00028   Common::AddonsManager::UniquePtr addons = Common::CreateAddonsManager();
00029   for (auto module : modules)
00030   {
00031     Common::AddonInformation config;
00032     config.Id = module.Id;
00033     config.Factory = Common::CreateDynamicAddonFactory(module.Path.c_str());
00034     config.Dependencies = module.DependsOn;
00035     config.Parameters = module.Parameters;
00036     addons->Register(config);
00037   }
00038   addons->Start();
00039   return addons;
00040 }
00041 
00042 */


ros_opcua_impl_freeopcua
Author(s): Denis Štogl
autogenerated on Sat Jun 8 2019 18:24:40