#include <opcua_discretealarmtypebase.h>
Public Member Functions | |
DiscreteAlarmTypeData () | |
virtual | ~DiscreteAlarmTypeData () |
void | initializeAsBranch (DiscreteAlarmTypeBase *pCondition) |
virtual void | getFieldData (OpcUa_UInt32 index, Session *pSession, OpcUa_Variant &data) |
Generated event data class for a DiscreteAlarmType.
This class contains the auto generated code for the object type DiscreteAlarmType providing UaEventData interface for the access to event data containing the current state of the condition for events sent to the client. The class is used for condition events if the condition has no nodes in the address space or for condition branches created as snapshot of the main branch.
OpcUa::DiscreteAlarmTypeData::DiscreteAlarmTypeData | ( | ) |
Constructs an DiscreteAlarmTypeData object
OpcUa::DiscreteAlarmTypeData::~DiscreteAlarmTypeData | ( | ) | [virtual] |
Destroys the DiscreteAlarmTypeData object
void OpcUa::DiscreteAlarmTypeData::getFieldData | ( | OpcUa_UInt32 | index, |
Session * | pSession, | ||
OpcUa_Variant & | data | ||
) | [virtual] |
Get the field value for the passed index.
index | The index of the selected field. |
pSession | The session context for the method call. |
data | The data for the selected field. |
Reimplemented from OpcUa::AlarmConditionTypeData.
Reimplemented in OpcUa::OffNormalAlarmTypeData, and OpcUa::TripAlarmTypeData.
void OpcUa::DiscreteAlarmTypeData::initializeAsBranch | ( | DiscreteAlarmTypeBase * | pCondition ) |
This method is used to initializes the DiscreteAlarmTypeData object with event data from a condition object to create a branch of this condition object. The method creates a unique BranchId. EventManagerBase::fireEvent() is used send the intial branch state and status updates for the branch to the client(s). It is necessary to update the time stamps and the EventId for every update sent to the client(s).
pCondition | The condition object . |