#include <internal_subscription.h>
Public Member Functions | |
MonitoredItemCreateResult | CreateMonitoredItem (const MonitoredItemCreateRequest &request) |
void | DataChangeCallback (const uint32_t &, const DataValue &value) |
std::vector< StatusCode > | DeleteMonitoredItemsIds (const std::vector< uint32_t > &ids) |
bool | EnqueueDataChange (uint32_t monitoreditemid, const DataValue &value) |
bool | EnqueueEvent (uint32_t monitoreditemid, const Event &event) |
bool | HasExpired () |
InternalSubscription (SubscriptionServiceInternal &service, const SubscriptionData &data, const NodeId &SessionAuthenticationToken, std::function< void(PublishResult)> Callback, const Common::Logger::SharedPtr &logger) | |
ModifySubscriptionResult | ModifySubscription (const ModifySubscriptionParameters &data) |
void | NewAcknowlegment (const SubscriptionAcknowledgement &ack) |
RepublishResponse | Republish (const RepublishParameters ¶ms) |
void | Start () |
void | Stop () |
void | TriggerEvent (NodeId node, Event event) |
~InternalSubscription () | |
Private Member Functions | |
void | DeleteAllMonitoredItems () |
bool | DeleteMonitoredDataChange (uint32_t handle) |
bool | DeleteMonitoredEvent (uint32_t handle) |
std::vector< Variant > | GetEventFields (const EventFilter &filter, const Event &event) |
NotificationData | GetNotificationData () |
bool | HasPublishResult () |
std::vector< PublishResult > | PopPublishResult () |
void | PublishResults (const boost::system::error_code &error) |
void | TriggerDataChangeEvent (MonitoredDataChange monitoreditems, ReadValueId attrval) |
Private Attributes | |
Server::AddressSpace & | AddressSpace |
std::function< void(PublishResult)> | Callback |
const NodeId | CurrentSession |
SubscriptionData | Data |
boost::shared_mutex | DbMutex |
boost::asio::io_service & | io |
uint32_t | KeepAliveCount = 0 |
uint32_t | LastMonitoredItemId = 100 |
uint32_t | LifeTimeCount |
Common::Logger::SharedPtr | Logger |
MonitoredDataChangeMap | MonitoredDataChanges |
MonitoredEventsMap | MonitoredEvents |
std::list< PublishResult > | NotAcknowledgedResults |
uint32_t | NotificationSequence = 1 |
SubscriptionServiceInternal & | Service |
bool | Startup = true |
boost::asio::deadline_timer | Timer |
bool | TimerStopped = false |
std::list< TriggeredDataChange > | TriggeredDataChangeEvents |
std::list< TriggeredEvent > | TriggeredEvents |
Definition at line 60 of file internal_subscription.h.
OpcUa::Internal::InternalSubscription::InternalSubscription | ( | SubscriptionServiceInternal & | service, |
const SubscriptionData & | data, | ||
const NodeId & | SessionAuthenticationToken, | ||
std::function< void(PublishResult)> | Callback, | ||
const Common::Logger::SharedPtr & | logger | ||
) |
Definition at line 10 of file internal_subscription.cpp.
OpcUa::Internal::InternalSubscription::~InternalSubscription | ( | ) |
Definition at line 31 of file internal_subscription.cpp.
MonitoredItemCreateResult OpcUa::Internal::InternalSubscription::CreateMonitoredItem | ( | const MonitoredItemCreateRequest & | request | ) |
Definition at line 273 of file internal_subscription.cpp.
void OpcUa::Internal::InternalSubscription::DataChangeCallback | ( | const uint32_t & | m_id, |
const DataValue & | value | ||
) |
Definition at line 462 of file internal_subscription.cpp.
|
private |
Definition at line 44 of file internal_subscription.cpp.
|
private |
Definition at line 386 of file internal_subscription.cpp.
|
private |
Definition at line 429 of file internal_subscription.cpp.
std::vector< StatusCode > OpcUa::Internal::InternalSubscription::DeleteMonitoredItemsIds | ( | const std::vector< uint32_t > & | ids | ) |
Definition at line 359 of file internal_subscription.cpp.
bool OpcUa::Internal::InternalSubscription::EnqueueDataChange | ( | uint32_t | monitoreditemid, |
const DataValue & | value | ||
) |
bool OpcUa::Internal::InternalSubscription::EnqueueEvent | ( | uint32_t | monitoreditemid, |
const Event & | event | ||
) |
Definition at line 510 of file internal_subscription.cpp.
|
private |
Definition at line 538 of file internal_subscription.cpp.
|
private |
Definition at line 251 of file internal_subscription.cpp.
bool OpcUa::Internal::InternalSubscription::HasExpired | ( | ) |
Definition at line 60 of file internal_subscription.cpp.
|
private |
Definition at line 114 of file internal_subscription.cpp.
ModifySubscriptionResult OpcUa::Internal::InternalSubscription::ModifySubscription | ( | const ModifySubscriptionParameters & | data | ) |
Definition at line 221 of file internal_subscription.cpp.
void OpcUa::Internal::InternalSubscription::NewAcknowlegment | ( | const SubscriptionAcknowledgement & | ack | ) |
Definition at line 265 of file internal_subscription.cpp.
|
private |
Definition at line 136 of file internal_subscription.cpp.
|
private |
Definition at line 72 of file internal_subscription.cpp.
RepublishResponse OpcUa::Internal::InternalSubscription::Republish | ( | const RepublishParameters & | params | ) |
Definition at line 200 of file internal_subscription.cpp.
void OpcUa::Internal::InternalSubscription::Start | ( | ) |
Definition at line 24 of file internal_subscription.cpp.
void OpcUa::Internal::InternalSubscription::Stop | ( | ) |
Definition at line 37 of file internal_subscription.cpp.
|
private |
Definition at line 340 of file internal_subscription.cpp.
Definition at line 493 of file internal_subscription.cpp.
|
private |
Definition at line 92 of file internal_subscription.h.
|
private |
Definition at line 96 of file internal_subscription.h.
|
private |
Definition at line 95 of file internal_subscription.h.
|
private |
Definition at line 94 of file internal_subscription.h.
|
mutableprivate |
Definition at line 93 of file internal_subscription.h.
|
private |
Definition at line 107 of file internal_subscription.h.
|
private |
Definition at line 99 of file internal_subscription.h.
|
private |
Definition at line 101 of file internal_subscription.h.
|
private |
Definition at line 110 of file internal_subscription.h.
|
private |
Definition at line 111 of file internal_subscription.h.
|
private |
Definition at line 102 of file internal_subscription.h.
|
private |
Definition at line 103 of file internal_subscription.h.
|
private |
Definition at line 104 of file internal_subscription.h.
|
private |
Definition at line 98 of file internal_subscription.h.
|
private |
Definition at line 91 of file internal_subscription.h.
|
private |
Definition at line 100 of file internal_subscription.h.
|
private |
Definition at line 108 of file internal_subscription.h.
|
private |
Definition at line 109 of file internal_subscription.h.
|
private |
Definition at line 105 of file internal_subscription.h.
|
private |
Definition at line 106 of file internal_subscription.h.