Status event fired when a DataReader gains or loses a matching DataWriter.
More...
#include <status_detail.h>
|
| Type | get_type () const override |
| | Returns kSubscriptionMatched.
|
| std::string | get_string () const override |
| | Returns a human-readable summary of this status.
|
| template<typename T> |
| std::shared_ptr< T > | as () const |
| | Safely downcasts this status to a concrete type T.
|
Status event fired when a DataReader gains or loses a matching DataWriter.
Delivered to the reader's status callback whenever a publisher that matches the topic name and QoS policy appears or disappears.
◆ get_string()
| std::string vlink::Status::SubscriptionMatched::get_string |
( |
| ) |
const |
|
nodiscardoverridevirtual |
Returns a human-readable summary of this status.
- Returns
- String describing total and current matched writer counts.
Implements vlink::Status::Base.
◆ get_type()
| Type vlink::Status::SubscriptionMatched::get_type |
( |
| ) |
const |
|
nodiscardoverridevirtual |
◆ operator<<
Writes the status fields to ostream.
- Parameters
-
- Returns
- Reference to
ostream.
◆ current_count
| int32_t vlink::Status::SubscriptionMatched::current_count {0} |
Number of writers currently matched.
◆ current_count_change
| int32_t vlink::Status::SubscriptionMatched::current_count_change {0} |
Change in current_count since last callback.
◆ last_publication_handle
| InstanceHandle vlink::Status::SubscriptionMatched::last_publication_handle {nullptr} |
Handle of the most recently matched writer.
◆ total_count
| int32_t vlink::Status::SubscriptionMatched::total_count {0} |
Cumulative number of writers ever matched.
◆ total_count_change
| int32_t vlink::Status::SubscriptionMatched::total_count_change {0} |
Change in total_count since last callback.
The documentation for this struct was generated from the following file: