VLink 2.0.0
A high-performance communication middleware
载入中...
搜索中...
未找到
vlink::Status::SampleLost结构体 参考final

Status event fired when a sample is lost before it can be delivered to the DataReader. 更多...

#include <status_detail.h>

类 vlink::Status::SampleLost 继承关系图:
vlink::Status::SampleLost 的协作图:

Public 成员函数

Type get_type () const override
 Returns kSampleLost.
std::string get_string () const override
 Returns a human-readable summary of this status.

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.

额外继承的成员函数

详细描述

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.

成员函数说明

◆ get_string()

std::string vlink::Status::SampleLost::get_string ( ) const
nodiscardoverridevirtual

Returns a human-readable summary of this status.

返回
String describing sample loss counts.

实现了 vlink::Status::Base.

◆ get_type()

Type vlink::Status::SampleLost::get_type ( ) const
nodiscardoverridevirtual

Returns kSampleLost.

返回
Status type identifier.

实现了 vlink::Status::Base.

◆ operator<<

VLINK_EXPORT friend std::ostream & operator<< ( std::ostream & ostream,
const SampleLost & status )
friend

Writes the status fields to ostream.

参数
ostreamOutput stream.
statusThis SampleLost status.
返回
Reference to ostream.

类成员变量说明

◆ total_count

int32_t vlink::Status::SampleLost::total_count {0}

Total samples ever lost.

◆ total_count_change

int32_t vlink::Status::SampleLost::total_count_change {0}

Change in total_count since last callback.


该结构体的文档由以下文件生成: