VLink 2.0.0
A high-performance communication middleware
载入中...
搜索中...
未找到
database_reader.h 文件参考

Concrete BagReader implementation for the SQLite-backed VLink bag format. 更多...

#include <future>
#include <memory>
#include <string>
#include <vector>
#include "./bag_reader.h"
database_reader.h 的引用(Include)关系图:

浏览该文件的源代码.

 Concrete SQLite-backed bag file player. 更多...

命名空间

详细描述

Concrete BagReader implementation for the SQLite-backed VLink bag format.

DatabaseReader reads bag files in the SQLite-backed .vdb format and inherits all playback, seeking, fix, and reindex capabilities from BagReader.

The .vdb format stores messages in a structured SQLite database, enabling efficient random-access queries, indexed playback, and in-place repair with fix().

Usage
auto reader = vlink::BagReader::create("/data/recording.vdb");
// or explicitly:
auto reader = std::make_shared<vlink::DatabaseReader>("/data/recording.vdb");
reader->register_output_callback([](int64_t ts, const std::string& url,
vlink::ActionType action, const vlink::Bytes& data) {
// process message
});
reader->async_run();
reader->play({});
参见
BagReader, McapReader