|
VLink 2.0.0
A high-performance communication middleware
|
Status event fired when the liveliness state of a matched DataWriter changes. 更多...
#include <status_detail.h>
Public 成员函数 | |
| Type | get_type () const override |
Returns kLivelinessChanged. | |
| 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 | alive_count {0} |
| Number of matched writers that are currently alive. | |
| int32_t | not_alive_count {0} |
| Number of matched writers that are not alive. | |
| int32_t | alive_count_change {0} |
| Change in alive_count since last callback. | |
| int32_t | not_alive_count_change {0} |
| Change in not_alive_count since last callback. | |
| InstanceHandle | last_publication_handle {nullptr} |
| Handle of the writer that most recently changed. | |
友元 | |
| VLINK_EXPORT friend std::ostream & | operator<< (std::ostream &ostream, const LivelinessChanged &status) noexcept |
Writes the status fields to ostream. | |
额外继承的成员函数 | |
| Protected 成员函数 继承自 vlink::Status::Base | |
| Base () | |
| virtual | ~Base () |
Status event fired when the liveliness state of a matched DataWriter changes.
Tracks how many matched publishers are alive versus not alive. The last_publication_handle identifies the writer whose liveliness state most recently changed.
|
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 LivelinessChanged status. |
ostream. | int32_t vlink::Status::LivelinessChanged::alive_count {0} |
Number of matched writers that are currently alive.
| int32_t vlink::Status::LivelinessChanged::alive_count_change {0} |
Change in alive_count since last callback.
| InstanceHandle vlink::Status::LivelinessChanged::last_publication_handle {nullptr} |
Handle of the writer that most recently changed.
| int32_t vlink::Status::LivelinessChanged::not_alive_count {0} |
Number of matched writers that are not alive.
| int32_t vlink::Status::LivelinessChanged::not_alive_count_change {0} |
Change in not_alive_count since last callback.