UaMonitoredItem Class Reference

Implements a UA monitored item. It is not possible to create plane copies of this class. It is not possible to use the default constructor. More...

#include <uamonitoreditem.h>

Inheritance diagram for UaMonitoredItem:
Collaboration diagram for UaMonitoredItem:

List of all members.


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

UaSubscriptionm_pUaSubscription

Detailed Description

Implements a UA monitored item. It is not possible to create plane copies of this class. It is not possible to use the default constructor.

UaMonitoredItem


Member Enumeration Documentation

MonitoredItem type enumeration.

Enumerator:
DATA  MonitoredItemType: Data
EVENT  MonitoredItemType: Event


Constructor & Destructor Documentation

UaMonitoredItem::UaMonitoredItem ( OpcUa_MonitoringMode  MonitoringMode,
OpcUa_Int32  ClientHandle,
OpcUa_Double  SamplingInterval,
UaSubscription pUaSubscription 
)

construction

Parameters:
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


Member Function Documentation

virtual MonitoredItemType UaMonitoredItem::type (  )  const [pure virtual]

Get the type of monitored item

Returns:
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

Returns:
true if changed false if not.

Implemented in UaMonitoredItemData, and UaMonitoredItemEvent.

OpcUa_Int32 UaMonitoredItem::clientHandle (  )  const [inline]

Get the client handle of the monitored item

Returns:
the client handle of the monitored item

virtual void UaMonitoredItem::setMonitoringMode ( OpcUa_MonitoringMode  monitoringMode  )  [inline, virtual]

Set the Monitoring Mode

Parameters:
monitoringMode the Monitoring Mode

Reimplemented in UaMonitoredItemData.

OpcUa_MonitoringMode UaMonitoredItem::monitoringMode (  )  const [inline]

Get the monitoring mode of the monitored item

Returns:
the monitoring mode of the monitored item

void UaMonitoredItem::setSamplingInterval ( OpcUa_Double  samplingInterval  )  [inline]

Set the sampling rate of the monitored item

Parameters:
samplingInterval the sampling rate of the monitored item

OpcUa_Double UaMonitoredItem::samplingInterval (  )  const [inline]

Get the sampling rate of the monitored item

Returns:
the sampling rate of the monitored item


Member Data Documentation

Parent subscription for the monitored item


The documentation for this class was generated from the following files:
  • src/uaserver/uaservercpp/uamodule/uamonitoreditem.h
  • src/uaserver/uaservercpp/uamodule/uamonitoreditem.cpp