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

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. More...

#include <types.hpp>

Public Member Functions

 MessageView (const Message &message, const ChannelPtr channel, const SchemaPtr schema, RecordOffset offset)
 

Public Attributes

const ChannelPtr channel
 
const Messagemessage
 
const RecordOffset messageOffset
 
const SchemaPtr schema
 

Detailed 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.

Definition at line 387 of file types.hpp.

Constructor & Destructor Documentation

◆ MessageView()

mcap::MessageView::MessageView ( const Message message,
const ChannelPtr  channel,
const SchemaPtr  schema,
RecordOffset  offset 
)
inline

Definition at line 393 of file types.hpp.

Member Data Documentation

◆ channel

const ChannelPtr mcap::MessageView::channel

Definition at line 389 of file types.hpp.

◆ message

const Message& mcap::MessageView::message

Definition at line 388 of file types.hpp.

◆ messageOffset

const RecordOffset mcap::MessageView::messageOffset

Definition at line 391 of file types.hpp.

◆ schema

const SchemaPtr mcap::MessageView::schema

Definition at line 390 of file types.hpp.


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


plotjuggler
Author(s): Davide Faconti
autogenerated on Sun Aug 11 2024 02:24:31