test_dynamic_addon.cpp
Go to the documentation of this file.
1 
11 #include "test_dynamic_addon.h"
12 
13 namespace
14 {
15 class TestDynamicAddonImpl : public OpcCoreTests::TestDynamicAddon
16 {
17 public:
18  virtual void Initialize(Common::AddonsManager &, const Common::AddonParameters & params)
19  {
20  Params = params;
21  }
22 
23  virtual void Stop()
24  {
25  }
26 
27  virtual const char * GetStringWithHello() const
28  {
29  return "hello";
30  }
31 
33  {
34  return Params;
35  }
36 private:
38 };
39 }
40 
41 extern "C"
42 #ifdef _WIN32
43 __declspec(dllexport)
44 #endif // _WIN32
45 Common::Addon * CreateAddon(const char * configuration)
46 {
47  return new TestDynamicAddonImpl();
48 }
49 
virtual Common::AddonParameters GetParameters() const =0
virtual void Stop()=0
Stopping addon work. After calling this method addon should throw exception on any calls...
virtual const char * GetStringWithHello() const =0
virtual void Initialize(AddonsManager &manager, const AddonParameters &parameters)=0
initialize addon.
Common::Addon * CreateAddon(const char *configuration)


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