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... | |
Options for reading messages out of an MCAP file.
Definition at line 231 of file reader.hpp.
|
strong |
Enumerator | |
---|---|
FileOrder | |
LogTimeOrder | |
ReverseLogTimeOrder |
Definition at line 247 of file reader.hpp.
Definition at line 256 of file reader.hpp.
|
default |
Status mcap::ReadMessageOptions::validate | ( | ) | const |
validate the configuration.
Only messages with log timestamps less than endTime will be included.
Definition at line 240 of file reader.hpp.
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.
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.
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.