standard_address_space_addon.cpp
Go to the documentation of this file.
1 
12 
13 
17 
18 
19 namespace
20 {
21 
22 class StandardNamespaceAddon : public Common::Addon
23 {
24 public:
25  DEFINE_CLASS_POINTERS(StandardNamespaceAddon)
26 
27  void Initialize(Common::AddonsManager & addons, const Common::AddonParameters & params)
28  {
29  OpcUa::NodeManagementServices::SharedPtr registry = addons.GetAddon<OpcUa::NodeManagementServices>(OpcUa::Server::AddressSpaceRegistryAddonId);
30  OpcUa::Server::FillStandardNamespace(*registry, addons.GetLogger());
31  }
32 
33  void Stop()
34  {
35  }
36 };
37 
38 } // namespace
39 
40 namespace OpcUa
41 {
42 namespace Server
43 {
44 
46 {
47  return Common::Addon::UniquePtr(new StandardNamespaceAddon());
48 }
49 
50 }
51 }
Common::Addon * CreateAddon()
Addon interface definition GNU LGPL.
Addon interface definition GNU LGPL.
const char AddressSpaceRegistryAddonId[]
virtual void Stop()=0
Stopping addon work. After calling this method addon should throw exception on any calls...
registry_t< std::mutex > registry
Definition: registry.h:211
void FillStandardNamespace(OpcUa::NodeManagementServices &registry, const Common::Logger::SharedPtr &logger)
OPC UA Address space part. GNU LGPL.
#define DEFINE_CLASS_POINTERS(ClassName)
Exception declarations GNU LGPL.
const char Server[]
Definition: strings.h:121


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