OpcUa::DiscreteAlarmTypeData Class Reference

#include <opcua_discretealarmtypebase.h>

Inheritance diagram for OpcUa::DiscreteAlarmTypeData:
Collaboration diagram for OpcUa::DiscreteAlarmTypeData:

List of all members.

Public Member Functions

 DiscreteAlarmTypeData ()
virtual ~DiscreteAlarmTypeData ()
void initializeAsBranch (DiscreteAlarmTypeBase *pCondition)
virtual void getFieldData (OpcUa_UInt32 index, Session *pSession, OpcUa_Variant &data)

Detailed Description

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.


Constructor & Destructor Documentation

OpcUa::DiscreteAlarmTypeData::DiscreteAlarmTypeData (  )

Constructs an DiscreteAlarmTypeData object

OpcUa::DiscreteAlarmTypeData::~DiscreteAlarmTypeData (  ) [virtual]

Destroys the DiscreteAlarmTypeData object


Member Function Documentation

void OpcUa::DiscreteAlarmTypeData::getFieldData ( OpcUa_UInt32  index,
Session pSession,
OpcUa_Variant &  data 
) [virtual]

Get the field value for the passed index.

Parameters:
indexThe index of the selected field.
pSessionThe session context for the method call.
dataThe 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).

Parameters:
pConditionThe condition object .

The documentation for this class was generated from the following files:
  • /home/buildbot/work/uasdkcpp/src/uaserver/uaservercpp/coremodule/opcua_discretealarmtypebase.h
  • /home/buildbot/work/uasdkcpp/src/uaserver/uaservercpp/coremodule/opcua_discretealarmtypebase.cpp