#include <opcua_offnormalalarmtypebase.h>
Public Member Functions | |
OffNormalAlarmTypeData () | |
virtual | ~OffNormalAlarmTypeData () |
void | initializeAsBranch (OffNormalAlarmTypeBase *pCondition) |
virtual void | getFieldData (OpcUa_UInt32 index, Session *pSession, OpcUa_Variant &data) |
void | setNormalState (const UaNodeId &normalState) |
UaNodeId | getNormalState () |
virtual void | getNormalStateValue (Session *pSession, OpcUa_Variant &value) |
Generated event data class for a OffNormalAlarmType.
This class contains the auto generated code for the object type OffNormalAlarmType 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::OffNormalAlarmTypeData::OffNormalAlarmTypeData | ( | ) |
Constructs an OffNormalAlarmTypeData object
OpcUa::OffNormalAlarmTypeData::~OffNormalAlarmTypeData | ( | ) | [virtual] |
Destroys the OffNormalAlarmTypeData object
void OpcUa::OffNormalAlarmTypeData::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::DiscreteAlarmTypeData.
Reimplemented in OpcUa::TripAlarmTypeData.
UaNodeId OpcUa::OffNormalAlarmTypeData::getNormalState | ( | ) |
Get the event field value NormalState
void OpcUa::OffNormalAlarmTypeData::getNormalStateValue | ( | Session * | pSession, |
OpcUa_Variant & | value | ||
) | [virtual] |
Get the event field value NormalState for delivering the event data.
This method can be overwritten in a derived class to return a client session specific value like a localized text matching the LocaleId requested by the client
void OpcUa::OffNormalAlarmTypeData::initializeAsBranch | ( | OffNormalAlarmTypeBase * | pCondition ) |
This method is used to initializes the OffNormalAlarmTypeData 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 . |
void OpcUa::OffNormalAlarmTypeData::setNormalState | ( | const UaNodeId & | normalState ) |
Set the event field value NormalState