|
pjmsg_mcap_wrapper
|
Uses message indices to read messages out of an MCAP in log time order. The underlying MCAP must be chunked, with a summary section and message indexes. The required McapWriterOptions are:
Definition at line 611 of file reader.hpp.
#include <reader.hpp>
Classes | |
| struct | ChunkSlot |
Public Member Functions | |
| IndexedMessageReader (McapReader &reader, const ReadMessageOptions &options, const std::function< void(const Message &, RecordOffset)> onMessage) | |
| bool | next () |
| reads the next message out of the MCAP. | |
| Status | status () const |
| gets the status of the reader. | |
Private Member Functions | |
| size_t | findFreeChunkSlot () |
| void | decompressChunk (const Chunk &chunk, ChunkSlot &slot) |
Private Attributes | |
| Status | status_ |
| McapReader & | mcapReader_ |
| RecordReader | recordReader_ |
| LZ4Reader | lz4Reader_ |
| ReadMessageOptions | options_ |
| std::unordered_set< ChannelId > | selectedChannels_ |
| std::function< void(const Message &, RecordOffset)> | onMessage_ |
| internal::ReadJobQueue | queue_ |
| std::vector< ChunkSlot > | chunkSlots_ |
| mcap::IndexedMessageReader::IndexedMessageReader | ( | McapReader & | reader, |
| const ReadMessageOptions & | options, | ||
| const std::function< void(const Message &, RecordOffset)> | onMessage | ||
| ) |
Definition at line 1800 of file reader.inl.
|
private |
Definition at line 1864 of file reader.inl.
|
private |
Definition at line 1854 of file reader.inl.
| bool mcap::IndexedMessageReader::next | ( | ) |
reads the next message out of the MCAP.
status() will return a non-Success status. Definition at line 1895 of file reader.inl.
| Status mcap::IndexedMessageReader::status | ( | ) | const |
|
private |
Definition at line 650 of file reader.hpp.
|
private |
Definition at line 644 of file reader.hpp.
|
private |
Definition at line 641 of file reader.hpp.
|
private |
Definition at line 648 of file reader.hpp.
|
private |
Definition at line 646 of file reader.hpp.
|
private |
Definition at line 649 of file reader.hpp.
|
private |
Definition at line 642 of file reader.hpp.
|
private |
Definition at line 647 of file reader.hpp.
|
private |
Definition at line 640 of file reader.hpp.