VLink 2.0.0
A high-performance communication middleware
Loading...
Searching...
No Matches
vlink::Status::PublicationMatched Struct Referencefinal

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

#include <status_detail.h>

Inheritance diagram for vlink::Status::PublicationMatched:
Collaboration diagram for vlink::Status::PublicationMatched:

Public Member Functions

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

Public Attributes

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.

Friends

VLINK_EXPORT friend std::ostream & operator<< (std::ostream &ostream, const PublicationMatched &status) noexcept
 Writes the status fields to ostream.

Additional Inherited Members

Detailed Description

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.

Member Function Documentation

◆ get_string()

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

Returns a human-readable summary of this status.

Returns
String describing total and current matched reader counts.

Implements vlink::Status::Base.

◆ get_type()

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

Returns kPublicationMatched.

Returns
Status type identifier.

Implements vlink::Status::Base.

◆ operator<<

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

Writes the status fields to ostream.

Parameters
ostreamOutput stream.
statusThis PublicationMatched status.
Returns
Reference to ostream.

Member Data Documentation

◆ 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.


The documentation for this struct was generated from the following file: