C++ Based OPC UA Client/Server/PubSub SDK
1.7.9.586
|
Represents an EventMonitoredItem in durable subscriptions. More...
#include <uamonitoreditem.h>
Inherits UaMonitoredItemEvent.
Public Member Functions | |
virtual void | setShutdown () |
Set flag that the server is shutting down without client side monitored item deletion. | |
virtual OpcUa_Boolean | hasChanged () |
Check if there are events available for the item. More... | |
virtual void | newEvent (UaVariantArray &eventFields, OpcUa_Boolean detach) |
Send new event. More... | |
virtual OpcUa_UInt32 | getEventCount () |
Get the current event count from the monitored item. | |
Public Member Functions inherited from UaMonitoredItemEvent | |
UaMonitoredItemEvent (const UaNodeId &nodeId, const EventManagerArray &eventManagers, OpcUa_MonitoringMode MonitoringMode, OpcUa_Int32 ClientHandle, OpcUa_Double SamplingInterval, OpcUa_EventFilter *pEventFilter, UaSubscription *pUaSubscription) | |
construction More... | |
~UaMonitoredItemEvent () | |
destruction | |
MonitoredItemType | type () const |
Get the type of monitored item. More... | |
void | setMonitoringMode (OpcUa_MonitoringMode monitoringMode) |
Set the Monitoring Mode. More... | |
void | setEventItemHandle (OpcUa_UInt32 eventItemHandle, OpcUa_UInt32 eventManagerIndex) |
Set the EventItem handle for an EventManager. More... | |
void | getEventItemHandles (UaUInt32Array &eventItemHandles) |
Get the EventItem handles for the EventManagers. More... | |
void | setEventManagerInvalid (OpcUa_UInt32 eventManagerIndex) |
Set EventManager invalid. More... | |
void | setEventItemSubspended (OpcUa_Boolean suspended, OpcUa_UInt32 eventManagerIndex) |
Set the suspended flag for an EventManager. More... | |
void | getEventItemsSubspended (UaBooleanArray &eventItemsSuspended) |
Get the EventItem suspended flag array for the EventManagers. More... | |
void | getEventManagers (EventManagerArray &eventManagers) |
Get the related EventManagers. More... | |
OpcUa_UInt32 | addEventManager (EventManager *pEventManager) |
Add an EventManager and return the event manager index. More... | |
void | setEventFilter (OpcUa_EventFilter *pEventFilter) |
Set event filter of item. More... | |
virtual void | reset () |
Deletes all queued events and resets flags to the state of creation. | |
void | invalidateEventManager (OpcUa_UInt32 eventManagerIndex) |
Invalidate the event manager in the monitored item. | |
Public Member Functions inherited from UaMonitoredItem | |
UaMonitoredItem (const UaNodeId &nodeId, OpcUa_MonitoringMode MonitoringMode, OpcUa_Int32 ClientHandle, OpcUa_Double SamplingInterval, UaSubscription *pUaSubscription) | |
construction More... | |
virtual | ~UaMonitoredItem () |
destruction | |
void | setClientHandle (OpcUa_Int32 clientHandle) |
Set the client handle of the monitored item. More... | |
OpcUa_Int32 | clientHandle () const |
Get the client handle of the monitored item. More... | |
OpcUa_MonitoringMode | monitoringMode () const |
Get the monitoring mode of the monitored item. More... | |
void | setSamplingInterval (OpcUa_Double samplingInterval) |
Set the sampling rate of the monitored item. More... | |
OpcUa_Double | samplingInterval () const |
Get the sampling rate of the monitored item. More... | |
UaNodeId | nodeId () const |
NodeId of the node monitored with this item. More... | |
void | setLinks (std::list< OpcUa_UInt32 > *pLinks) |
Sets the triggering links of the monitored item. More... | |
std::list< OpcUa_UInt32 > * | links () |
Returns the triggering links of the monitored item. More... | |
OpcUa_Boolean | wasTriggered () const |
Check if the item triggered. More... | |
void | resetTriggeredStatus () |
Sets the triggered status of the monitored item to false. | |
OpcUa_TimestampsToReturn | timestampsToReturn () const |
Timestamps to return with a datavalue. | |
void | setTimestampsToReturn (OpcUa_TimestampsToReturn timestampsToReturn) |
Sets which timestamps shall be returned with a data value. | |
Public Member Functions inherited from EventCallback | |
EventCallback () | |
construction | |
virtual | ~EventCallback () |
destruction | |
Additional Inherited Members | |
Public Types inherited from UaMonitoredItem | |
enum | MonitoredItemType { DATA, EVENT } |
MonitoredItem type enumeration. More... | |
Protected Attributes inherited from UaMonitoredItem | |
UaSubscription * | m_pUaSubscription |
Parent subscription for the monitored item. | |
Represents an EventMonitoredItem in durable subscriptions.
|
virtual |
Check if there are events available for the item.
Reimplemented from UaMonitoredItemEvent.
|
virtual |
Send new event.
eventFields | a field of events. |
detach | Indicates if the event data contained in the eventFields can be detached or not |
Reimplemented from UaMonitoredItemEvent.