struct TypedRecordReader

Declaration

struct TypedRecordReader { /* full declaration omitted */ };

Description

A mid-level interface for parsing and validating MCAP records from a data source.

Declared at: mcap/include/mcap/reader.hpp:563

Member Variables

public std::function<void(const Header&, ByteOffset)> onHeader
public std::function<void(const Footer&, ByteOffset)> onFooter
public std::function<void(const SchemaPtr, ByteOffset, std::optional<ByteOffset>)> onSchema
public std::function<void(const ChannelPtr, ByteOffset, std::optional<ByteOffset>)> onChannel
public std::function<void(const Message&, ByteOffset, std::optional<ByteOffset>)> onMessage
public std::function<void(const Chunk&, ByteOffset)> onChunk
public std::function<void(const MessageIndex&, ByteOffset)> onMessageIndex
public std::function<void(const ChunkIndex&, ByteOffset)> onChunkIndex
public std::function<void(const Attachment&, ByteOffset)> onAttachment
public std::function<void(const AttachmentIndex&, ByteOffset)> onAttachmentIndex
public std::function<void(const Statistics&, ByteOffset)> onStatistics
public std::function<void(const Metadata&, ByteOffset)> onMetadata
public std::function<void(const MetadataIndex&, ByteOffset)> onMetadataIndex
public std::function<void(const SummaryOffset&, ByteOffset)> onSummaryOffset
public std::function<void(const DataEnd&, ByteOffset)> onDataEnd
public std::function<void(const Record&, ByteOffset, std::optional<ByteOffset>)> onUnknownRecord
public std::function<void(ByteOffset)> onChunkEnd

Method Overview

Methods

TypedRecordReader(
    mcap::IReadable& dataSource,
    mcap::ByteOffset startOffset,
    mcap::ByteOffset endOffset = EndOffset)

Declared at: mcap/include/mcap/reader.hpp:582

Parameters

mcap::IReadable& dataSource
mcap::ByteOffset startOffset
mcap::ByteOffset endOffset = EndOffset

TypedRecordReader(const mcap::TypedRecordReader&)

Declared at: mcap/include/mcap/reader.hpp:585

Parameters

const mcap::TypedRecordReader&

TypedRecordReader(mcap::TypedRecordReader&&)

Declared at: mcap/include/mcap/reader.hpp:587

Parameters

mcap::TypedRecordReader&&

bool next()

Declared at: mcap/include/mcap/reader.hpp:590

mcap::ByteOffset offset() const

Declared at: mcap/include/mcap/reader.hpp:592

const mcap::Status& status() const

Declared at: mcap/include/mcap/reader.hpp:594