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: More...
#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. More... | |
Status | status () const |
gets the status of the reader. More... | |
Private Member Functions | |
void | decompressChunk (const Chunk &chunk, ChunkSlot &slot) |
size_t | findFreeChunkSlot () |
Private Attributes | |
std::vector< ChunkSlot > | chunkSlots_ |
LZ4Reader | lz4Reader_ |
McapReader & | mcapReader_ |
std::function< void(const Message &, RecordOffset)> | onMessage_ |
ReadMessageOptions | options_ |
internal::ReadJobQueue | queue_ |
RecordReader | recordReader_ |
std::unordered_set< ChannelId > | selectedChannels_ |
Status | status_ |
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 598 of file reader.hpp.
mcap::IndexedMessageReader::IndexedMessageReader | ( | McapReader & | reader, |
const ReadMessageOptions & | options, | ||
const std::function< void(const Message &, RecordOffset)> | onMessage | ||
) |
|
private |
bool mcap::IndexedMessageReader::next | ( | ) |
reads the next message out of the MCAP.
status()
will return a non-Success status.
|
private |
Definition at line 635 of file reader.hpp.
|
private |
Definition at line 630 of file reader.hpp.
|
private |
Definition at line 628 of file reader.hpp.
|
private |
Definition at line 633 of file reader.hpp.
|
private |
Definition at line 631 of file reader.hpp.
|
private |
Definition at line 634 of file reader.hpp.
|
private |
Definition at line 629 of file reader.hpp.
|
private |
Definition at line 632 of file reader.hpp.
|
private |
Definition at line 627 of file reader.hpp.