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

Options for reading messages out of an MCAP file. More...

#include <reader.hpp>

Public Types

enum  ReadOrder { ReadOrder::FileOrder, ReadOrder::LogTimeOrder, ReadOrder::ReverseLogTimeOrder }
 

Public Member Functions

 ReadMessageOptions ()=default
 
 ReadMessageOptions (Timestamp start, Timestamp end)
 
Status validate () const
 validate the configuration. More...
 

Public Attributes

Timestamp endTime = MaxTime
 Only messages with log timestamps less than endTime will be included. More...
 
ReadOrder readOrder = ReadOrder::FileOrder
 Set the expected order that messages should be returned in. if readOrder == FileOrder, messages will be returned in the order they appear in the MCAP file. if readOrder == LogTimeOrder, messages will be returned in ascending log time order. if readOrder == ReverseLogTimeOrder, messages will be returned in descending log time order. More...
 
Timestamp startTime = 0
 Only messages with log timestamps greater or equal to startTime will be included. More...
 
std::function< bool(std::string_view)> topicFilter
 If provided, topicFilter is called on all topics found in the MCAP file. If topicFilter returns true for a given channel, messages from that channel will be included. if not provided, messages from all channels are provided. More...
 

Detailed Description

Options for reading messages out of an MCAP file.

Definition at line 231 of file reader.hpp.

Member Enumeration Documentation

◆ ReadOrder

Enumerator
FileOrder 
LogTimeOrder 
ReverseLogTimeOrder 

Definition at line 247 of file reader.hpp.

Constructor & Destructor Documentation

◆ ReadMessageOptions() [1/2]

mcap::ReadMessageOptions::ReadMessageOptions ( Timestamp  start,
Timestamp  end 
)
inline

Definition at line 256 of file reader.hpp.

◆ ReadMessageOptions() [2/2]

mcap::ReadMessageOptions::ReadMessageOptions ( )
default

Member Function Documentation

◆ validate()

Status mcap::ReadMessageOptions::validate ( ) const

validate the configuration.

Member Data Documentation

◆ endTime

Timestamp mcap::ReadMessageOptions::endTime = MaxTime

Only messages with log timestamps less than endTime will be included.

Definition at line 240 of file reader.hpp.

◆ readOrder

ReadOrder mcap::ReadMessageOptions::readOrder = ReadOrder::FileOrder

Set the expected order that messages should be returned in. if readOrder == FileOrder, messages will be returned in the order they appear in the MCAP file. if readOrder == LogTimeOrder, messages will be returned in ascending log time order. if readOrder == ReverseLogTimeOrder, messages will be returned in descending log time order.

Definition at line 254 of file reader.hpp.

◆ startTime

Timestamp mcap::ReadMessageOptions::startTime = 0

Only messages with log timestamps greater or equal to startTime will be included.

Definition at line 236 of file reader.hpp.

◆ topicFilter

std::function<bool(std::string_view)> mcap::ReadMessageOptions::topicFilter

If provided, topicFilter is called on all topics found in the MCAP file. If topicFilter returns true for a given channel, messages from that channel will be included. if not provided, messages from all channels are provided.

Definition at line 246 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