standard_address_space_addon.cpp
Go to the documentation of this file.
00001 
00002 
00003 
00004 
00005 
00006 
00007 
00008 
00009 
00010 
00011 #include <opc/ua/server/addons/standard_address_space.h>
00012 
00013 
00014 #include <opc/ua/server/addons/address_space.h>
00015 #include <opc/ua/server/standard_address_space.h>
00016 #include <opc/ua/services/node_management.h>
00017 
00018 
00019 namespace
00020 {
00021 
00022   class StandardNamespaceAddon : public Common::Addon
00023   {
00024   public:
00025     DEFINE_CLASS_POINTERS(StandardNamespaceAddon);
00026 
00027     void Initialize(Common::AddonsManager& addons, const Common::AddonParameters& params)
00028     {
00029       OpcUa::NodeManagementServices::SharedPtr registry = addons.GetAddon<OpcUa::NodeManagementServices>(OpcUa::Server::AddressSpaceRegistryAddonId);
00030       const bool debug = false;
00031       OpcUa::Server::FillStandardNamespace(*registry, debug);
00032     }
00033 
00034     void Stop()
00035     {
00036     }
00037   };
00038 
00039 } // namespace
00040 
00041 namespace OpcUa
00042 {
00043   namespace Server
00044   {
00045 
00046     Common::Addon::UniquePtr StandardNamespaceAddonFactory::CreateAddon()
00047     {
00048       return Common::Addon::UniquePtr(new StandardNamespaceAddon());
00049     }
00050 
00051   }
00052 }


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