|
VLink 2.0.0
A high-performance communication middleware
|
Status event fired when a DataReader gains or loses a matching DataWriter. 更多...
#include <status_detail.h>
Public 成员函数 | |
| Type | get_type () const override |
Returns kSubscriptionMatched. | |
| std::string | get_string () const override |
| Returns a human-readable summary of this status. | |
| Public 成员函数 继承自 vlink::Status::Base | |
| template<typename T> | |
| std::shared_ptr< T > | as () const |
Safely downcasts this status to a concrete type T. | |
Public 属性 | |
| int32_t | total_count {0} |
| Cumulative number of writers ever matched. | |
| int32_t | total_count_change {0} |
| Change in total_count since last callback. | |
| int32_t | current_count {0} |
| Number of writers currently matched. | |
| int32_t | current_count_change {0} |
| Change in current_count since last callback. | |
| InstanceHandle | last_publication_handle {nullptr} |
| Handle of the most recently matched writer. | |
友元 | |
| VLINK_EXPORT friend std::ostream & | operator<< (std::ostream &ostream, const SubscriptionMatched &status) noexcept |
Writes the status fields to ostream. | |
额外继承的成员函数 | |
| Protected 成员函数 继承自 vlink::Status::Base | |
| Base () | |
| virtual | ~Base () |
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.
|
nodiscardoverridevirtual |
Returns a human-readable summary of this status.
实现了 vlink::Status::Base.
|
nodiscardoverridevirtual |
|
friend |
Writes the status fields to ostream.
| ostream | Output stream. |
| status | This SubscriptionMatched status. |
ostream. | int32_t vlink::Status::SubscriptionMatched::current_count {0} |
Number of writers currently matched.
| int32_t vlink::Status::SubscriptionMatched::current_count_change {0} |
Change in current_count since last callback.
| InstanceHandle vlink::Status::SubscriptionMatched::last_publication_handle {nullptr} |
Handle of the most recently matched writer.
| int32_t vlink::Status::SubscriptionMatched::total_count {0} |
Cumulative number of writers ever matched.
| int32_t vlink::Status::SubscriptionMatched::total_count_change {0} |
Change in total_count since last callback.