VLink  2.0.0
A high-performance communication middleware
vlink::Frame结构体 参考final

One recorded or replayed message as it flows through the bag pipeline. 更多...

#include <types.h>

vlink::Frame 的协作图:

Public 属性

int64_t timestamp {-1}
 Canonical time in microseconds (record / playback). 更多...
 
std::string url
 Topic URL. 更多...
 
std::string ser_type
 Serialisation type; reader fills it before user output. 更多...
 
SchemaType schema_type {SchemaType::kUnknown}
 Coarse schema family; reader fills it before user output. 更多...
 
ActionType action_type {ActionType::kUnknownAction}
 Recorded action kind. 更多...
 
Bytes data
 Serialised payload bytes. 更多...
 

详细描述

One recorded or replayed message as it flows through the bag pipeline.

The single unit passed through every bag push / callback / record hook (BagReader, BagWriter, BagProcessor, BagPluginInterface). Passed by const reference through each hop so the payload is never deep-copied on the synchronous path; a stage that must take ownership (an async reorder cache) or rewrite a field (playback URL remap) copies explicitly, and the payload Bytes itself is normally a shallow view at the source. ser_type / schema_type are supplied by the caller on the write side; on the read side they arrive empty at a plugin's on_read(), and BagReader fills them from the bag's URL metadata before invoking the user's output callback (so a fully-populated frame reaches consumers without a separate get_ser_type() lookup).

类成员变量说明

◆ action_type

ActionType vlink::Frame::action_type {ActionType::kUnknownAction}

Recorded action kind.

◆ data

Bytes vlink::Frame::data

Serialised payload bytes.

◆ schema_type

SchemaType vlink::Frame::schema_type {SchemaType::kUnknown}

Coarse schema family; reader fills it before user output.

◆ ser_type

std::string vlink::Frame::ser_type

Serialisation type; reader fills it before user output.

◆ timestamp

int64_t vlink::Frame::timestamp {-1}

Canonical time in microseconds (record / playback).

◆ url

std::string vlink::Frame::url

Topic URL.


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