#include <uamonitoreditem.h>
Public Types | |
enum | MonitoredItemType { DATA, EVENT } |
MonitoredItem type enumeration. More... | |
Public Member Functions | |
UaMonitoredItem (OpcUa_MonitoringMode MonitoringMode, OpcUa_Int32 ClientHandle, OpcUa_Double SamplingInterval, UaSubscription *pUaSubscription) | |
virtual | ~UaMonitoredItem () |
virtual MonitoredItemType | type () const =0 |
virtual OpcUa_Boolean | hasChanged ()=0 |
OpcUa_Int32 | clientHandle () const |
virtual void | setMonitoringMode (OpcUa_MonitoringMode monitoringMode) |
OpcUa_MonitoringMode | monitoringMode () const |
void | setSamplingInterval (OpcUa_Double samplingInterval) |
OpcUa_Double | samplingInterval () const |
Protected Attributes | |
UaSubscription * | m_pUaSubscription |
UaMonitoredItem::UaMonitoredItem | ( | OpcUa_MonitoringMode | MonitoringMode, | |
OpcUa_Int32 | ClientHandle, | |||
OpcUa_Double | SamplingInterval, | |||
UaSubscription * | pUaSubscription | |||
) |
construction
MonitoringMode | the mode for monitoring items. | |
ClientHandle | a handle to the client. | |
SamplingInterval | the value in MS for a Interval of a Variable. |
UaMonitoredItem::~UaMonitoredItem | ( | ) | [virtual] |
destruction
virtual MonitoredItemType UaMonitoredItem::type | ( | ) | const [pure virtual] |
Get the type of monitored item
Implemented in UaMonitoredItemData, and UaMonitoredItemEvent.
virtual OpcUa_Boolean UaMonitoredItem::hasChanged | ( | ) | [pure virtual] |
Check if the value or status of the item has changed
Implemented in UaMonitoredItemData, and UaMonitoredItemEvent.
OpcUa_Int32 UaMonitoredItem::clientHandle | ( | ) | const [inline] |
Get the client handle of the monitored item
virtual void UaMonitoredItem::setMonitoringMode | ( | OpcUa_MonitoringMode | monitoringMode | ) | [inline, virtual] |
Set the Monitoring Mode
monitoringMode | the Monitoring Mode |
Reimplemented in UaMonitoredItemData.
OpcUa_MonitoringMode UaMonitoredItem::monitoringMode | ( | ) | const [inline] |
Get the monitoring mode of the monitored item
void UaMonitoredItem::setSamplingInterval | ( | OpcUa_Double | samplingInterval | ) | [inline] |
Set the sampling rate of the monitored item
samplingInterval | the sampling rate of the monitored item |
OpcUa_Double UaMonitoredItem::samplingInterval | ( | ) | const [inline] |
Get the sampling rate of the monitored item
UaSubscription* UaMonitoredItem::m_pUaSubscription [protected] |
Parent subscription for the monitored item