|
VLink 2.0.0
A high-performance communication middleware
|
Status event fired when a DataWriter gains or loses a matching DataReader. 更多...
#include <status_detail.h>
Public 成员函数 | |
| Type | get_type () const override |
Returns kPublicationMatched. | |
| 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 readers ever matched. | |
| int32_t | total_count_change {0} |
| Change in total_count since last callback. | |
| int32_t | current_count {0} |
| Number of readers currently matched. | |
| int32_t | current_count_change {0} |
| Change in current_count since last callback. | |
| InstanceHandle | last_subscription_handle {nullptr} |
| Handle of the most recently matched reader. | |
友元 | |
| VLINK_EXPORT friend std::ostream & | operator<< (std::ostream &ostream, const PublicationMatched &status) noexcept |
Writes the status fields to ostream. | |
额外继承的成员函数 | |
| Protected 成员函数 继承自 vlink::Status::Base | |
| Base () | |
| virtual | ~Base () |
Status event fired when a DataWriter gains or loses a matching DataReader.
Delivered to the writer's status callback whenever a subscriber 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 PublicationMatched status. |
ostream. | int32_t vlink::Status::PublicationMatched::current_count {0} |
Number of readers currently matched.
| int32_t vlink::Status::PublicationMatched::current_count_change {0} |
Change in current_count since last callback.
| InstanceHandle vlink::Status::PublicationMatched::last_subscription_handle {nullptr} |
Handle of the most recently matched reader.
| int32_t vlink::Status::PublicationMatched::total_count {0} |
Cumulative number of readers ever matched.
| int32_t vlink::Status::PublicationMatched::total_count_change {0} |
Change in total_count since last callback.