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

Configuration options for McapWriter. More...

#include <writer.hpp>

Public Member Functions

 McapWriterOptions (const std::string_view profile)
 

Public Attributes

uint64_t chunkSize = DefaultChunkSize
 Target uncompressed Chunk payload size in bytes. Once a Chunk's uncompressed data meets or exceeds this size, the Chunk will be compressed (if compression is enabled) and written to disk. Note that smaller Chunks may be written, such as the last Chunk in the Data section. This option is ignored if noChunking=true. More...
 
Compression compression = Compression::Zstd
 Compression algorithm to use when writing Chunks. This option is ignored if noChunking=true. More...
 
CompressionLevel compressionLevel = CompressionLevel::Default
 Compression level to use when writing Chunks. Slower generally produces smaller files, at the expense of more CPU time. These levels map to different internal settings for each compression algorithm. More...
 
bool enableDataCRC = false
 Enable CRC calculations for all records in the data section. More...
 
bool forceCompression = false
 By default, Chunks that do not benefit from compression will be written uncompressed. This option can be used to force compression on all Chunks. This option is ignored if noChunking=true. More...
 
std::string library = "libmcap " MCAP_LIBRARY_VERSION
 A freeform string written by recording libraries. For this library, the default is "libmcap {Major}.{Minor}.{Patch}". More...
 
bool noAttachmentCRC = false
 Disable CRC calculations for Attachments. More...
 
bool noAttachmentIndex = false
 
bool noChunkCRC = false
 Disable CRC calculations for Chunks. More...
 
bool noChunkIndex = false
 
bool noChunking = false
 Do not write Chunks to the file, instead writing Schema, Channel, and Message records directly into the Data section. More...
 
bool noMessageIndex = false
 Do not write Message Index records to the file. If noSummary=true and noChunkIndex=false, Chunk Index records will still be written to the Summary section, providing a coarse message index. More...
 
bool noMetadataIndex = false
 
bool noRepeatedChannels = false
 
bool noRepeatedSchemas = false
 
bool noStatistics = false
 
bool noSummary = false
 Do not write Summary or Summary Offset sections to the file, placing the Footer record immediately after DataEnd. This can provide some speed boost to file writing and produce smaller files, at the expense of requiring a conversion process later if fast summarization or indexed access is desired. More...
 
bool noSummaryCRC = false
 Disable CRC calculations for the summary section. More...
 
bool noSummaryOffsets = false
 
std::string profile
 The recording profile. See https://mcap.dev/spec/registry#well-known-profiles for more information on well-known profiles. More...
 

Detailed Description

Configuration options for McapWriter.

Definition at line 19 of file writer.hpp.

Constructor & Destructor Documentation

◆ McapWriterOptions()

mcap::McapWriterOptions::McapWriterOptions ( const std::string_view  profile)
inline

Definition at line 103 of file writer.hpp.

Member Data Documentation

◆ chunkSize

uint64_t mcap::McapWriterOptions::chunkSize = DefaultChunkSize

Target uncompressed Chunk payload size in bytes. Once a Chunk's uncompressed data meets or exceeds this size, the Chunk will be compressed (if compression is enabled) and written to disk. Note that smaller Chunks may be written, such as the last Chunk in the Data section. This option is ignored if noChunking=true.

Definition at line 62 of file writer.hpp.

◆ compression

Compression mcap::McapWriterOptions::compression = Compression::Zstd

Compression algorithm to use when writing Chunks. This option is ignored if noChunking=true.

Definition at line 67 of file writer.hpp.

◆ compressionLevel

CompressionLevel mcap::McapWriterOptions::compressionLevel = CompressionLevel::Default

Compression level to use when writing Chunks. Slower generally produces smaller files, at the expense of more CPU time. These levels map to different internal settings for each compression algorithm.

Definition at line 73 of file writer.hpp.

◆ enableDataCRC

bool mcap::McapWriterOptions::enableDataCRC = false

Enable CRC calculations for all records in the data section.

Definition at line 31 of file writer.hpp.

◆ forceCompression

bool mcap::McapWriterOptions::forceCompression = false

By default, Chunks that do not benefit from compression will be written uncompressed. This option can be used to force compression on all Chunks. This option is ignored if noChunking=true.

Definition at line 79 of file writer.hpp.

◆ library

std::string mcap::McapWriterOptions::library = "libmcap " MCAP_LIBRARY_VERSION

A freeform string written by recording libraries. For this library, the default is "libmcap {Major}.{Minor}.{Patch}".

Definition at line 90 of file writer.hpp.

◆ noAttachmentCRC

bool mcap::McapWriterOptions::noAttachmentCRC = false

Disable CRC calculations for Attachments.

Definition at line 27 of file writer.hpp.

◆ noAttachmentIndex

bool mcap::McapWriterOptions::noAttachmentIndex = false

Definition at line 97 of file writer.hpp.

◆ noChunkCRC

bool mcap::McapWriterOptions::noChunkCRC = false

Disable CRC calculations for Chunks.

Definition at line 23 of file writer.hpp.

◆ noChunkIndex

bool mcap::McapWriterOptions::noChunkIndex = false

Definition at line 99 of file writer.hpp.

◆ noChunking

bool mcap::McapWriterOptions::noChunking = false

Do not write Chunks to the file, instead writing Schema, Channel, and Message records directly into the Data section.

Definition at line 40 of file writer.hpp.

◆ noMessageIndex

bool mcap::McapWriterOptions::noMessageIndex = false

Do not write Message Index records to the file. If noSummary=true and noChunkIndex=false, Chunk Index records will still be written to the Summary section, providing a coarse message index.

Definition at line 46 of file writer.hpp.

◆ noMetadataIndex

bool mcap::McapWriterOptions::noMetadataIndex = false

Definition at line 98 of file writer.hpp.

◆ noRepeatedChannels

bool mcap::McapWriterOptions::noRepeatedChannels = false

Definition at line 96 of file writer.hpp.

◆ noRepeatedSchemas

bool mcap::McapWriterOptions::noRepeatedSchemas = false

Definition at line 95 of file writer.hpp.

◆ noStatistics

bool mcap::McapWriterOptions::noStatistics = false

Definition at line 100 of file writer.hpp.

◆ noSummary

bool mcap::McapWriterOptions::noSummary = false

Do not write Summary or Summary Offset sections to the file, placing the Footer record immediately after DataEnd. This can provide some speed boost to file writing and produce smaller files, at the expense of requiring a conversion process later if fast summarization or indexed access is desired.

Definition at line 54 of file writer.hpp.

◆ noSummaryCRC

bool mcap::McapWriterOptions::noSummaryCRC = false

Disable CRC calculations for the summary section.

Definition at line 35 of file writer.hpp.

◆ noSummaryOffsets

bool mcap::McapWriterOptions::noSummaryOffsets = false

Definition at line 101 of file writer.hpp.

◆ profile

std::string mcap::McapWriterOptions::profile

The recording profile. See https://mcap.dev/spec/registry#well-known-profiles for more information on well-known profiles.

Definition at line 85 of file writer.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