|
VLink 2.0.0
A high-performance communication middleware
|
Status event fired when a sample is lost before it can be delivered to the DataReader. 更多...
#include <status_detail.h>
Public 成员函数 | |
| Type | get_type () const override |
Returns kSampleLost. | |
| 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} |
| Total samples ever lost. | |
| int32_t | total_count_change {0} |
| Change in total_count since last callback. | |
友元 | |
| VLINK_EXPORT friend std::ostream & | operator<< (std::ostream &ostream, const SampleLost &status) noexcept |
Writes the status fields to ostream. | |
额外继承的成员函数 | |
| Protected 成员函数 继承自 vlink::Status::Base | |
| Base () | |
| virtual | ~Base () |
Status event fired when a sample is lost before it can be delivered to the DataReader.
Sample loss typically occurs when a publisher produces data faster than the subscriber consumes it and the history depth is exceeded.
|
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 SampleLost status. |
ostream. | int32_t vlink::Status::SampleLost::total_count {0} |
Total samples ever lost.
| int32_t vlink::Status::SampleLost::total_count_change {0} |
Change in total_count since last callback.