#include <subscription.h>
Public Member Functions | |
void | Delete () |
SubscriptionData | GetData () |
uint32_t | GetId () const |
double | GetPeriode () const |
UserData * | getUsrPtr (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< MonitoredItemCreateResult > | Subscribe (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 ¶ms, 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 |
SubscriptionHandler & | Client |
SubscriptionData | Data |
uint32_t | LastMonitoredItemHandle = 1 |
Common::Logger::SharedPtr | Logger |
std::mutex | Mutex |
Services::SharedPtr | Server |
SimpleAttOpMap | SimpleAttributeOperandMap |
Definition at line 90 of file subscription.h.
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.
|
inlinevirtual |
Definition at line 103 of file subscription.h.
|
private |
Definition at line 93 of file subscription.cpp.
|
private |
Definition at line 125 of file subscription.cpp.
|
private |
Definition at line 120 of file subscription.cpp.
void OpcUa::Subscription::Delete | ( | ) |
Definition at line 41 of file subscription.cpp.
|
inline |
Definition at line 109 of file subscription.h.
|
inline |
Definition at line 110 of file subscription.h.
|
inline |
Definition at line 111 of file subscription.h.
UserData * OpcUa::Subscription::getUsrPtr | ( | uint32_t | handle | ) |
Definition at line 316 of file subscription.cpp.
|
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.
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.
|
private |
Definition at line 155 of file subscription.h.
|
private |
Definition at line 153 of file subscription.h.
|
private |
Definition at line 152 of file subscription.h.
|
private |
Definition at line 154 of file subscription.h.
|
private |
Definition at line 158 of file subscription.h.
|
private |
Definition at line 157 of file subscription.h.
|
private |
Definition at line 151 of file subscription.h.
|
private |
Definition at line 156 of file subscription.h.