open62541pp 0.15.0
C++ wrapper of open62541
Loading...
Searching...
No Matches
opcua::MonitoredItem< Connection > Class Template Reference

#include <monitoreditem.hpp>

Detailed Description

template<typename Connection>
class opcua::MonitoredItem< Connection >

High-level monitored item class.

Template Parameters
ConnectionServer or Client
Note
Not all methods are available and implemented for servers.

Use the free functions in the opcua::services namespace for more advanced usage:

Examples
client_subscription.cpp, and events/client_eventfilter.cpp.

Definition at line 29 of file monitoreditem.hpp.

Public Member Functions

 MonitoredItem (Connection &connection, uint32_t subscriptionId, uint32_t monitoredItemId) noexcept
 
Connection & connection () noexcept
 
const Connection & connection () const noexcept
 
uint32_t subscriptionId () const noexcept
 
uint32_t monitoredItemId () const noexcept
 
const NodeIdgetNodeId ()
 
AttributeId getAttributeId ()
 
void setMonitoringParameters (MonitoringParametersEx &parameters)
 
void setMonitoringMode (MonitoringMode monitoringMode)
 
void deleteMonitoredItem ()
 

Constructor & Destructor Documentation

◆ MonitoredItem()

template<typename Connection >
opcua::MonitoredItem< Connection >::MonitoredItem ( Connection & connection,
uint32_t subscriptionId,
uint32_t monitoredItemId )
inlinenoexcept

Wrap an existing monitored item.

The subscriptionId is ignored and set to 0U for servers.

Definition at line 33 of file monitoreditem.hpp.

Member Function Documentation

◆ connection() [1/2]

template<typename Connection >
Connection & opcua::MonitoredItem< Connection >::connection ( )
inlinenoexcept

◆ connection() [2/2]

template<typename Connection >
const Connection & opcua::MonitoredItem< Connection >::connection ( ) const
inlinenoexcept

Get the server/client instance.

Definition at line 46 of file monitoreditem.hpp.

◆ subscriptionId()

template<typename Connection >
uint32_t opcua::MonitoredItem< Connection >::subscriptionId ( ) const
inlinenoexcept

◆ monitoredItemId()

template<typename Connection >
uint32_t opcua::MonitoredItem< Connection >::monitoredItemId ( ) const
inlinenoexcept

◆ getNodeId()

template<typename Connection >
const NodeId & opcua::MonitoredItem< Connection >::getNodeId ( )

◆ getAttributeId()

template<typename Connection >
AttributeId opcua::MonitoredItem< Connection >::getAttributeId ( )

Get the monitored AttributeId.

Examples
client_subscription.cpp, and events/client_eventfilter.cpp.

◆ setMonitoringParameters()

template<typename Connection >
void opcua::MonitoredItem< Connection >::setMonitoringParameters ( MonitoringParametersEx & parameters)
inline

Modify this monitored item.

Note
Not implemented for Server.
See also
services::modifyMonitoredItem

Definition at line 69 of file monitoreditem.hpp.

◆ setMonitoringMode()

template<typename Connection >
void opcua::MonitoredItem< Connection >::setMonitoringMode ( MonitoringMode monitoringMode)
inline

Set the monitoring mode of this monitored item.

Note
Not implemented for Server.
See also
services::setMonitoringMode

Definition at line 77 of file monitoreditem.hpp.

◆ deleteMonitoredItem()

template<typename Connection >
void opcua::MonitoredItem< Connection >::deleteMonitoredItem ( )
inline

Delete this monitored item.

See also
services::deleteMonitoredItem

Definition at line 84 of file monitoreditem.hpp.