OpcUaCanOpen
CANopen OPC-UA server
BootupEvent.h
Go to the documentation of this file.
1 #ifndef BOOTUPEVENT_H
2 #define BOOTUPEVENT_H
3 
4 #include "uaeventdata.h"
5 #include "BuildingAutomationTypeIds.h"
6 #include "eventmanageruanode.h"
7 
11 class BootupEvent: public BaseEventTypeData
12 {
14 public:
15  BootupEvent(OpcUa_Int16 nsIdx)
16  {
17  m_nsIdx = nsIdx;
18  m_EventTypeId.setNodeId(Ba_BootupEventType, m_nsIdx);
19  }
20  virtual ~BootupEvent() {}
21 
23  {
24  // Register event type
25  EventManagerUaNode::registerEventType(OpcUaId_BaseEventType, m_EventTypeId);
26  }
27 
28  virtual void getFieldData(OpcUa_UInt32 index, Session* pSession, OpcUa_Variant& data)
29  {
30  BaseEventTypeData::getFieldData(index, pSession, data);
31  }
32 
33  OpcUa_Int16 m_nsIdx;
34 
35 private:
36 // static map<OpcUa_UInt32, OpcUa_UInt32> s_BootupEventFields;
37 };
38 
39 #endif // BOOTUPEVENT_H