Public Member Functions | Public Attributes | Private Attributes | List of all members
mcap::RecordReader Struct Reference

A low-level interface for parsing MCAP-style TLV records from a data source. More...

#include <reader.hpp>

Public Member Functions

ByteOffset curRecordOffset () const
 
std::optional< Recordnext ()
 
 RecordReader (IReadable &dataSource, ByteOffset startOffset, ByteOffset endOffset=EndOffset)
 
void reset (IReadable &dataSource, ByteOffset startOffset, ByteOffset endOffset)
 
const Statusstatus () const
 

Public Attributes

ByteOffset endOffset
 
ByteOffset offset
 

Private Attributes

Record curRecord_
 
IReadabledataSource_ = nullptr
 
Status status_
 

Detailed Description

A low-level interface for parsing MCAP-style TLV records from a data source.

Definition at line 498 of file reader.hpp.

Constructor & Destructor Documentation

◆ RecordReader()

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

Member Function Documentation

◆ curRecordOffset()

ByteOffset mcap::RecordReader::curRecordOffset ( ) const

◆ next()

std::optional<Record> mcap::RecordReader::next ( )

◆ reset()

void mcap::RecordReader::reset ( IReadable dataSource,
ByteOffset  startOffset,
ByteOffset  endOffset 
)

◆ status()

const Status& mcap::RecordReader::status ( ) const

Member Data Documentation

◆ curRecord_

Record mcap::RecordReader::curRecord_
private

Definition at line 515 of file reader.hpp.

◆ dataSource_

IReadable* mcap::RecordReader::dataSource_ = nullptr
private

Definition at line 513 of file reader.hpp.

◆ endOffset

ByteOffset mcap::RecordReader::endOffset

Definition at line 500 of file reader.hpp.

◆ offset

ByteOffset mcap::RecordReader::offset

Definition at line 499 of file reader.hpp.

◆ status_

Status mcap::RecordReader::status_
private

Definition at line 514 of file reader.hpp.


The documentation for this struct was generated from the following file:


plotjuggler
Author(s): Davide Faconti
autogenerated on Mon Nov 11 2024 03:23:52