ifw-core  5.0.0-pre2
iDataChangeHandler.hpp
Go to the documentation of this file.
1 
9 #ifndef CORE_PROTOCOL_OPEN62541_IDATACHANGE_HANDLER_HPP_
10 #define CORE_PROTOCOL_OPEN62541_IDATACHANGE_HANDLER_HPP_
11 
12 // Forward declarations of OPCUA toolkit classes
13 // This allows loosely coupling of the communication interface
14 // and the FCF.
15 #include <map>
16 #include <cassert>
17 #include <cstdio>
18 #include <fstream>
19 #include <iostream>
20 #include <memory>
21 #include <stdexcept>
22 
23 #include <open62541.h>
24 //#include <open62541/client_highlevel.h>
25 namespace protocol::opcua {
26 
27 
28  class MonitoredItem;
29 
35  {
36  public:
40  virtual ~IDataChangeHandler() {};
41 
50  virtual void HandleDataChange(const std::shared_ptr<MonitoredItem> monitor_item,
51  UA_DataValue* value) = 0;
52 
53  };
54 
55 }
56 
57 #endif // CORE_PROTOCOL_OPEN62541_IDATACHANGE_HANDLER_HPP_
58 
The IDataChangeHandler class Defines an entry point for data change notifications.
Definition: iDataChangeHandler.hpp:35
virtual void HandleDataChange(const std::shared_ptr< MonitoredItem > monitor_item, UA_DataValue *value)=0
HandleDataChanges.
virtual ~IDataChangeHandler()
~IDataChangeHandler
Definition: iDataChangeHandler.hpp:40
Definition: monitoredItem.hpp:23
Definition: iDataChangeHandler.hpp:25