pjmsg_mcap_wrapper
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | Private Attributes | List of all members
mcap::RecordReader Struct Reference

Detailed Description

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

Definition at line 507 of file reader.hpp.

#include <reader.hpp>

Public Member Functions

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

Public Attributes

ByteOffset offset
 
ByteOffset endOffset
 

Private Attributes

IReadabledataSource_ = nullptr
 
Status status_
 
Record curRecord_
 

Constructor & Destructor Documentation

◆ RecordReader()

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

Definition at line 1221 of file reader.inl.

Member Function Documentation

◆ curRecordOffset()

ByteOffset mcap::RecordReader::curRecordOffset ( ) const

Definition at line 1253 of file reader.inl.

◆ next()

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

Definition at line 1236 of file reader.inl.

◆ reset()

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

Definition at line 1228 of file reader.inl.

◆ status()

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

Definition at line 1249 of file reader.inl.

Member Data Documentation

◆ curRecord_

Record mcap::RecordReader::curRecord_
private

Definition at line 524 of file reader.hpp.

◆ dataSource_

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

Definition at line 522 of file reader.hpp.

◆ endOffset

ByteOffset mcap::RecordReader::endOffset

Definition at line 509 of file reader.hpp.

◆ offset

ByteOffset mcap::RecordReader::offset

Definition at line 508 of file reader.hpp.

◆ status_

Status mcap::RecordReader::status_
private

Definition at line 523 of file reader.hpp.


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