UaMonitoredItemEvent Class Reference
Implements a UA monitored item for events. Derived from
UaMonitoredItem and
EventCallback It is not possible to create plane copies of this class. It is not possible to use the default constructor.
More...
#include <uamonitoreditem.h>
List of all members.
Detailed Description
Implements a UA monitored item for events. Derived from
UaMonitoredItem and
EventCallback It is not possible to create plane copies of this class. It is not possible to use the default constructor.
UaMonitoredItemEvent
Constructor & Destructor Documentation
UaMonitoredItemEvent::UaMonitoredItemEvent |
( |
const EventManagerArray & |
eventManagers, |
|
|
OpcUa_MonitoringMode |
MonitoringMode, |
|
|
OpcUa_Int32 |
ClientHandle, |
|
|
OpcUa_Double |
SamplingInterval, |
|
|
UaSubscription * |
pUaSubscription | |
|
) |
| | |
construction
- Parameters:
-
| eventManagers | a list of EventManager interfaces for an event notifier |
| MonitoringMode | the mode for monitoring items. |
| ClientHandle | a handle to the client. |
| SamplingInterval | the value in MS for a Interval of a Variable |
UaMonitoredItemEvent::~UaMonitoredItemEvent |
( |
|
) |
|
Member Function Documentation
Get the type of monitored item
- Returns:
- the type of monitored item
Implements UaMonitoredItem.
OpcUa_Boolean UaMonitoredItemEvent::hasChanged |
( |
|
) |
[virtual] |
Check if there are events available for the item.
- Returns:
- true if changed false if not.
Implements UaMonitoredItem.
void UaMonitoredItemEvent::setEventItemHandle |
( |
OpcUa_UInt32 |
eventItemHandle, |
|
|
OpcUa_UInt32 |
eventManagerIndex | |
|
) |
| | |
Set the EventItem handle for an EventManager.
- Parameters:
-
| eventItemHandle | a handle to the event item. |
| eventManagerIndex | an Index of different EventManagers. |
void UaMonitoredItemEvent::getEventItemHandles |
( |
UaUInt32Array & |
eventItemHandles |
) |
|
Get the EventItem handles for the EventManagers.
- Parameters:
-
| eventItemHandles | a handle to the event item. |
void UaMonitoredItemEvent::setEventManagerInvalid |
( |
OpcUa_UInt32 |
eventManagerIndex |
) |
|
Set EventManager invalid.
- Parameters:
-
| eventManagerIndex | an Index of different EventManagers. |
Get the related EventManagers.
- Parameters:
-
| eventManagers | a list of EventManager interfaces for an event notifier |
void UaMonitoredItemEvent::getEvents |
( |
OpcUa_UInt32 & |
eventCount, |
|
|
EventFieldsArray & |
events | |
|
) |
| | |
Get Events from item.
- Parameters:
-
| eventCount | the counted events. |
| events | a fieldlist of events that can occur. |
void UaMonitoredItemEvent::newEvent |
( |
UaVariantArray & |
eventFields, |
|
|
OpcUa_Boolean |
detach | |
|
) |
| | [virtual] |
Send new event.
- Parameters:
-
| eventFields | a field of events. |
| detach | Indicates if the new Event will be detached or not |
Implements EventCallback.
The documentation for this class was generated from the following files:
- src/uaserver/uaservercpp/uamodule/uamonitoreditem.h
- src/uaserver/uaservercpp/uamodule/uamonitoreditem.cpp