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

Status event fired when a DataWriter gains or loses a matching DataReader. 更多...

#include <status_detail.h>

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

Public 成员函数

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

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.

额外继承的成员函数

详细描述

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.

成员函数说明

◆ get_string()

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

Returns a human-readable summary of this status.

返回
String describing total and current matched reader counts.

实现了 vlink::Status::Base.

◆ get_type()

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

Returns kPublicationMatched.

返回
Status type identifier.

实现了 vlink::Status::Base.

◆ operator<<

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

Writes the status fields to ostream.

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

类成员变量说明

◆ current_count

int32_t vlink::Status::PublicationMatched::current_count {0}

Number of readers currently matched.

◆ current_count_change

int32_t vlink::Status::PublicationMatched::current_count_change {0}

Change in current_count since last callback.

◆ last_subscription_handle

InstanceHandle vlink::Status::PublicationMatched::last_subscription_handle {nullptr}

Handle of the most recently matched reader.

◆ total_count

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

Cumulative number of readers ever matched.

◆ total_count_change

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

Change in total_count since last callback.


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