VLink  2.0.0
A high-performance communication middleware
vlink::BagReader::Info::UrlMeta Struct Referencefinal

Per-URL accounting entry recorded inside Info::url_metas. More...

#include <bag_reader.h>

Collaboration diagram for vlink::BagReader::Info::UrlMeta:

Public Member Functions

bool operator< (const UrlMeta &target) const noexcept
 Defines a stable ordering between two URL metadata entries. More...
 

Public Attributes

bool valid {false}
 True when the entry is fully populated. More...
 
int index {0}
 Bag-local numeric URL identifier. More...
 
std::string url
 Full VLink URL string. More...
 
std::string url_type
 Communication model: Event / Method / Field. More...
 
ActionType action_type {ActionType::kUnknownAction}
 Stored action when known. More...
 
std::string ser_type
 Serialisation type name. More...
 
SchemaType schema_type {SchemaType::kUnknown}
 Coarse schema family for this URL. More...
 
size_t count {0}
 Number of recorded messages. More...
 
size_t size {0}
 Total stored bytes (compressed when applicable). More...
 
double freq {0}
 Average publication frequency in Hertz. More...
 
double loss {0}
 Declared loss ratio in the range [0, 1]. More...
 

Detailed Description

Per-URL accounting entry recorded inside Info::url_metas.

Member Function Documentation

◆ operator<()

bool vlink::BagReader::Info::UrlMeta::operator< ( const UrlMeta target) const
noexcept

Defines a stable ordering between two URL metadata entries.

Sort key is the URL transport priority first, then the URL string itself and finally the numeric index as a deterministic tie-breaker.

Parameters
targetRight-hand operand.
Returns
true when *this should appear before target.

Member Data Documentation

◆ action_type

ActionType vlink::BagReader::Info::UrlMeta::action_type {ActionType::kUnknownAction}

Stored action when known.

◆ count

size_t vlink::BagReader::Info::UrlMeta::count {0}

Number of recorded messages.

◆ freq

double vlink::BagReader::Info::UrlMeta::freq {0}

Average publication frequency in Hertz.

◆ index

int vlink::BagReader::Info::UrlMeta::index {0}

Bag-local numeric URL identifier.

◆ loss

double vlink::BagReader::Info::UrlMeta::loss {0}

Declared loss ratio in the range [0, 1].

◆ schema_type

SchemaType vlink::BagReader::Info::UrlMeta::schema_type {SchemaType::kUnknown}

Coarse schema family for this URL.

◆ ser_type

std::string vlink::BagReader::Info::UrlMeta::ser_type

Serialisation type name.

◆ size

size_t vlink::BagReader::Info::UrlMeta::size {0}

Total stored bytes (compressed when applicable).

◆ url

std::string vlink::BagReader::Info::UrlMeta::url

Full VLink URL string.

◆ url_type

std::string vlink::BagReader::Info::UrlMeta::url_type

Communication model: Event / Method / Field.

◆ valid

bool vlink::BagReader::Info::UrlMeta::valid {false}

True when the entry is fully populated.


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