VLink  2.0.0
A high-performance communication middleware
vlink::Status::SampleLost Struct Referencefinal

Reader-side event raised when a sample is lost between writer and reader. 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. More...
 
std::string get_string () const override
 Returns the literal "SampleLost". More...
 

Public Attributes

int32_t total_count {0}
 Cumulative samples lost. More...
 
int32_t total_count_change {0}
 Delta in total_count since the last notification. More...
 

Friends

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

Additional Inherited Members

Detailed Description

Reader-side event raised when a sample is lost between writer and reader.

Typically caused by writer rate exceeding the reader's History depth.

Member Function Documentation

◆ get_string()

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

Returns the literal "SampleLost".

Returns
Event name string.

Implements vlink::Status::Base.

◆ get_type()

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

Returns kSampleLost.

Returns
Status type discriminator.

Implements vlink::Status::Base.

Friends And Related Function Documentation

◆ operator<<

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

Streams the counter fields to ostream.

Parameters
ostreamOutput stream.
statusEvent to print.
Returns
Reference to ostream.

Member Data Documentation

◆ total_count

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

Cumulative samples lost.

◆ total_count_change

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

Delta in total_count since the last notification.


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