#include <opcua_acknowledgeableconditiontypebase.h>
Public Member Functions | |
AcknowledgeableConditionTypeData () | |
virtual | ~AcknowledgeableConditionTypeData () |
void | initializeAsBranch (AcknowledgeableConditionTypeBase *pCondition) |
virtual void | getFieldData (OpcUa_UInt32 index, Session *pSession, OpcUa_Variant &data) |
virtual void | getAckedStateValue (Session *pSession, OpcUa_Variant &value) |
void | setAckedState (OpcUa_Boolean ackedState) |
OpcUa_Boolean | getAckedState () |
virtual void | getAckedStateIdValue (Session *pSession, OpcUa_Variant &value) |
virtual void | getConfirmedStateValue (Session *pSession, OpcUa_Variant &value) |
void | setConfirmedState (OpcUa_Boolean confirmedState) |
OpcUa_Boolean | getConfirmedState () |
virtual void | getConfirmedStateIdValue (Session *pSession, OpcUa_Variant &value) |
Generated event data class for a AcknowledgeableConditionType.
This class contains the auto generated code for the object type AcknowledgeableConditionType 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::AcknowledgeableConditionTypeData::AcknowledgeableConditionTypeData | ( | ) |
Constructs an AcknowledgeableConditionTypeData object
OpcUa::AcknowledgeableConditionTypeData::~AcknowledgeableConditionTypeData | ( | ) | [virtual] |
Destroys the AcknowledgeableConditionTypeData object
OpcUa_Boolean OpcUa::AcknowledgeableConditionTypeData::getAckedState | ( | ) |
Get the event field state bool value for AckedState
void OpcUa::AcknowledgeableConditionTypeData::getAckedStateIdValue | ( | Session * | pSession, |
OpcUa_Variant & | value | ||
) | [virtual] |
Get the event field value AckedState/Id 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::AcknowledgeableConditionTypeData::getAckedStateValue | ( | Session * | pSession, |
OpcUa_Variant & | value | ||
) | [virtual] |
Get the event field value AckedState 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
OpcUa_Boolean OpcUa::AcknowledgeableConditionTypeData::getConfirmedState | ( | ) |
Get the event field state bool value for ConfirmedState
void OpcUa::AcknowledgeableConditionTypeData::getConfirmedStateIdValue | ( | Session * | pSession, |
OpcUa_Variant & | value | ||
) | [virtual] |
Get the event field value ConfirmedState/Id 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::AcknowledgeableConditionTypeData::getConfirmedStateValue | ( | Session * | pSession, |
OpcUa_Variant & | value | ||
) | [virtual] |
Get the event field value ConfirmedState 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::AcknowledgeableConditionTypeData::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::ConditionTypeData.
Reimplemented in OpcUa::AlarmConditionTypeData, OpcUa::DiscreteAlarmTypeData, OpcUa::ExclusiveDeviationAlarmTypeData, OpcUa::ExclusiveLevelAlarmTypeData, OpcUa::ExclusiveLimitAlarmTypeData, OpcUa::ExclusiveRateOfChangeAlarmTypeData, OpcUa::LimitAlarmTypeData, OpcUa::NonExclusiveDeviationAlarmTypeData, OpcUa::NonExclusiveLevelAlarmTypeData, OpcUa::NonExclusiveLimitAlarmTypeData, OpcUa::NonExclusiveRateOfChangeAlarmTypeData, OpcUa::OffNormalAlarmTypeData, and OpcUa::TripAlarmTypeData.
void OpcUa::AcknowledgeableConditionTypeData::initializeAsBranch | ( | AcknowledgeableConditionTypeBase * | pCondition ) |
This method is used to initializes the AcknowledgeableConditionTypeData 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::AcknowledgeableConditionTypeData::setAckedState | ( | OpcUa_Boolean | ackedState ) |
Set the event field state bool value for AckedState
void OpcUa::AcknowledgeableConditionTypeData::setConfirmedState | ( | OpcUa_Boolean | confirmedState ) |
Set the event field state bool value for ConfirmedState