services_registry_factory.cpp
Go to the documentation of this file.
1 
13 
14 namespace
15 {
16 
17 class ServicesRegistryAddon : public Common::Addon, public OpcUa::Server::ServicesRegistry
18 {
19 public:
20  DEFINE_CLASS_POINTERS(ServicesRegistryAddon)
21 
22 public:
23  virtual void Initialize(Common::AddonsManager &, const Common::AddonParameters &)
24  {
26  }
27 
28  virtual void Stop()
29  {
30  Impl.reset();
31  }
32 
33  virtual OpcUa::Services::SharedPtr GetServer() const
34  {
35  return Impl->GetServer();
36  }
37 
38  virtual void RegisterEndpointsServices(std::shared_ptr<OpcUa::EndpointServices> endpoints)
39  {
40  Impl->RegisterEndpointsServices(endpoints);
41  }
42 
43  virtual void UnregisterEndpointsServices()
44  {
45  Impl->UnregisterEndpointsServices();
46  }
47 
48  virtual void RegisterViewServices(std::shared_ptr<OpcUa::ViewServices> views)
49  {
50  Impl->RegisterViewServices(views);
51  }
52 
53  virtual void UnregisterViewServices()
54  {
55  Impl->UnregisterViewServices();
56  }
57 
58  virtual void RegisterAttributeServices(std::shared_ptr<OpcUa::AttributeServices> attributes)
59  {
60  Impl->RegisterAttributeServices(attributes);
61  }
62 
63  virtual void UnregisterAttributeServices()
64  {
65  Impl->UnregisterAttributeServices();
66  }
67 
68  virtual void RegisterMethodServices(std::shared_ptr<OpcUa::MethodServices> method)
69  {
70  Impl->RegisterMethodServices(method);
71  }
72 
73  virtual void UnregisterMethodServices()
74  {
75  Impl->UnregisterMethodServices();
76  }
77 
78  virtual void RegisterNodeManagementServices(std::shared_ptr<OpcUa::NodeManagementServices> nodes)
79  {
80  Impl->RegisterNodeManagementServices(nodes);
81  }
82 
84  {
85  Impl->UnregisterNodeManagementServices();
86  }
87 
88  virtual void RegisterSubscriptionServices(std::shared_ptr<OpcUa::SubscriptionServices> subscriptions)
89  {
90  Impl->RegisterSubscriptionServices(subscriptions);
91  }
92 
93  virtual void UnregisterSubscriptionServices()
94  {
95  Impl->UnregisterSubscriptionServices();
96  }
97 
98 private:
99  ServicesRegistry::UniquePtr Impl;
100 };
101 
102 
103 } // namespace
104 
105 namespace OpcUa
106 {
107 namespace Server
108 {
109 
110 
111 Common::Addon::UniquePtr ServicesRegistryFactory::CreateAddon()
112 {
113  return Common::Addon::UniquePtr(new ::ServicesRegistryAddon());
114 }
115 
116 }
117 }
Common::Addon * CreateAddon()
Addon interface definition GNU LGPL.
virtual void UnregisterNodeManagementServices()=0
virtual void UnregisterAttributeServices()=0
virtual void UnregisterMethodServices()=0
Addon interface definition GNU LGPL.
virtual void UnregisterEndpointsServices()=0
virtual void RegisterMethodServices(MethodServices::SharedPtr method)=0
virtual void Stop()=0
Stopping addon work. After calling this method addon should throw exception on any calls...
virtual void UnregisterSubscriptionServices()=0
virtual void RegisterAttributeServices(OpcUa::AttributeServices::SharedPtr attributes)=0
OPC UA Address space part. GNU LGPL.
virtual std::shared_ptr< OpcUa::Services > GetServer() const =0
#define DEFINE_CLASS_POINTERS(ClassName)
Exception declarations GNU LGPL.
virtual void RegisterSubscriptionServices(OpcUa::SubscriptionServices::SharedPtr attributes)=0
virtual void UnregisterViewServices()=0
virtual void RegisterNodeManagementServices(OpcUa::NodeManagementServices::SharedPtr attributes)=0
virtual void RegisterEndpointsServices(OpcUa::EndpointServices::SharedPtr endpoints)=0
virtual void RegisterViewServices(OpcUa::ViewServices::SharedPtr views)=0
const char Server[]
Definition: strings.h:121
ServicesRegistry::UniquePtr CreateServicesRegistry()


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