Public Member Functions | Private Member Functions | Private Attributes | List of all members
OpcUa::Subscription Class Reference

#include <subscription.h>

Public Member Functions

void Delete ()
 
SubscriptionData GetData ()
 
uint32_t GetId () const
 
double GetPeriode () const
 
UserDatagetUsrPtr (uint32_t handle)
 
virtual void PublishCallback (Services::SharedPtr serverLocalPtr, const PublishResult result)
 
RepublishResponse Republish (uint32_t sequenceNumber)
 
void setUsrPtr (uint32_t handle, UserData *usr)
 
std::vector< MonitoredItemCreateResultSubscribe (std::vector< MonitoredItemCreateRequest > request)
 
uint32_t SubscribeDataChange (const Node &node, AttributeId attr=AttributeId::Value)
 
std::vector< uint32_t > SubscribeDataChange (const std::vector< ReadValueId > &attributes)
 
uint32_t SubscribeEvents (const Node &node, const EventFilter &eventfilter)
 
uint32_t SubscribeEvents (const Node &node, const Node &eventType)
 
uint32_t SubscribeEvents ()
 
 Subscription (Services::SharedPtr server, const CreateSubscriptionParameters &params, SubscriptionHandler &callback, const Common::Logger::SharedPtr &logger=nullptr)
 
void UnSubscribe (uint32_t handle)
 
void UnSubscribe (std::vector< uint32_t > handles)
 
virtual ~Subscription ()
 

Private Member Functions

void CallDataChangeCallback (const NotificationData &data)
 
void CallEventCallback (const NotificationData &data)
 
void CallStatusChangeCallback (const NotificationData &data)
 

Private Attributes

AttValMap AttributeValueMap
 
SubscriptionHandlerClient
 
SubscriptionData Data
 
uint32_t LastMonitoredItemHandle = 1
 
Common::Logger::SharedPtr Logger
 
std::mutex Mutex
 
Services::SharedPtr Server
 
SimpleAttOpMap SimpleAttributeOperandMap
 

Detailed Description

Definition at line 90 of file subscription.h.

Constructor & Destructor Documentation

OpcUa::Subscription::Subscription ( Services::SharedPtr  server,
const CreateSubscriptionParameters params,
SubscriptionHandler callback,
const Common::Logger::SharedPtr &  logger = nullptr 
)

Definition at line 29 of file subscription.cpp.

virtual OpcUa::Subscription::~Subscription ( )
inlinevirtual

Definition at line 103 of file subscription.h.

Member Function Documentation

void OpcUa::Subscription::CallDataChangeCallback ( const NotificationData data)
private

Definition at line 93 of file subscription.cpp.

void OpcUa::Subscription::CallEventCallback ( const NotificationData data)
private

Definition at line 125 of file subscription.cpp.

void OpcUa::Subscription::CallStatusChangeCallback ( const NotificationData data)
private

Definition at line 120 of file subscription.cpp.

void OpcUa::Subscription::Delete ( )

Definition at line 41 of file subscription.cpp.

SubscriptionData OpcUa::Subscription::GetData ( )
inline

Definition at line 109 of file subscription.h.

uint32_t OpcUa::Subscription::GetId ( ) const
inline

Definition at line 110 of file subscription.h.

double OpcUa::Subscription::GetPeriode ( ) const
inline

Definition at line 111 of file subscription.h.

UserData * OpcUa::Subscription::getUsrPtr ( uint32_t  handle)

Definition at line 316 of file subscription.cpp.

void OpcUa::Subscription::PublishCallback ( Services::SharedPtr  serverLocalPtr,
const PublishResult  result 
)
virtual

Definition at line 51 of file subscription.cpp.

RepublishResponse OpcUa::Subscription::Republish ( uint32_t  sequenceNumber)

Definition at line 223 of file subscription.cpp.

void OpcUa::Subscription::setUsrPtr ( uint32_t  handle,
UserData usr 
)

Definition at line 311 of file subscription.cpp.

std::vector< MonitoredItemCreateResult > OpcUa::Subscription::Subscribe ( std::vector< MonitoredItemCreateRequest request)

Definition at line 245 of file subscription.cpp.

uint32_t OpcUa::Subscription::SubscribeDataChange ( const Node node,
AttributeId  attr = AttributeId::Value 
)

Definition at line 232 of file subscription.cpp.

std::vector< uint32_t > OpcUa::Subscription::SubscribeDataChange ( const std::vector< ReadValueId > &  attributes)

Definition at line 261 of file subscription.cpp.

uint32_t OpcUa::Subscription::SubscribeEvents ( const Node node,
const EventFilter eventfilter 
)

Definition at line 385 of file subscription.cpp.

uint32_t OpcUa::Subscription::SubscribeEvents ( const Node node,
const Node eventType 
)

Definition at line 364 of file subscription.cpp.

uint32_t OpcUa::Subscription::SubscribeEvents ( )

Definition at line 359 of file subscription.cpp.

void OpcUa::Subscription::UnSubscribe ( uint32_t  handle)

Definition at line 321 of file subscription.cpp.

void OpcUa::Subscription::UnSubscribe ( std::vector< uint32_t >  handles)

Definition at line 326 of file subscription.cpp.

Member Data Documentation

AttValMap OpcUa::Subscription::AttributeValueMap
private

Definition at line 155 of file subscription.h.

SubscriptionHandler& OpcUa::Subscription::Client
private

Definition at line 153 of file subscription.h.

SubscriptionData OpcUa::Subscription::Data
private

Definition at line 152 of file subscription.h.

uint32_t OpcUa::Subscription::LastMonitoredItemHandle = 1
private

Definition at line 154 of file subscription.h.

Common::Logger::SharedPtr OpcUa::Subscription::Logger
private

Definition at line 158 of file subscription.h.

std::mutex OpcUa::Subscription::Mutex
private

Definition at line 157 of file subscription.h.

Services::SharedPtr OpcUa::Subscription::Server
private

Definition at line 151 of file subscription.h.

SimpleAttOpMap OpcUa::Subscription::SimpleAttributeOperandMap
private

Definition at line 156 of file subscription.h.


The documentation for this class was generated from the following files:


ros_opcua_impl_freeopcua
Author(s): Denis Štogl
autogenerated on Tue Jan 19 2021 03:12:10