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

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

#include <status_detail.h>

Inheritance diagram for vlink::Status::SampleLost:
Collaboration diagram for vlink::Status::SampleLost:

Public Member Functions

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

Public Attributes

int32_t total_count {0}
 Total samples ever lost.
int32_t total_count_change {0}
 Change in total_count since last callback.

Friends

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

Additional Inherited Members

Detailed Description

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.

Member Function Documentation

◆ get_string()

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

Returns a human-readable summary of this status.

Returns
String describing sample loss counts.

Implements vlink::Status::Base.

◆ get_type()

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

Returns kSampleLost.

Returns
Status type identifier.

Implements vlink::Status::Base.

◆ operator<<

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

Writes the status fields to ostream.

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

Member Data Documentation

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


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