struct MessageView

Declaration

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

Description

Returned when iterating over Messages in a file, MessageView contains a reference to one Message, a pointer to its Channel, and an optional pointer to that Channel's Schema. The Channel pointer is guaranteed to be valid, while the Schema pointer may be null if the Channel references schema_id 0.

Declared at: mcap/include/mcap/types.hpp:389

Member Variables

public const mcap::Message& message
public const mcap::ChannelPtr channel
public const mcap::SchemaPtr schema
public const mcap::RecordOffset messageOffset

Method Overview

  • public MessageView(const mcap::Message & _message, const mcap::ChannelPtr _channel, const mcap::SchemaPtr _schema, mcap::RecordOffset offset)

Methods

ΒΆMessageView(const mcap::Message& _message,
            const mcap::ChannelPtr _channel,
            const mcap::SchemaPtr _schema,
            mcap::RecordOffset offset)

Declared at: mcap/include/mcap/types.hpp:395

Parameters

const mcap::Message& _message
const mcap::ChannelPtr _channel
const mcap::SchemaPtr _schema
mcap::RecordOffset offset