Voyant API 1.0.0
Loading...
Searching...
No Matches
VoyantRecorderConfig Struct Reference

Configuration settings for creating a VoyantRecorder instance. More...

#include <voyant_data_recorder.hpp>

Public Member Functions

 VoyantRecorderConfig (const std::string &path)
 Constructs a configuration for the recorder.

Public Attributes

std::string outputPath
 Base path for output files (.vynt). This is a required field.
bool timestampFilename = true
 If true, appends a timestamp to the output filename. Defaults to true.
bool overwrite = false
 If true, an existing output file is overwritten. Defaults to false (creation fails instead).
uint32_t framesPerFile = 0
 Max frames per file before splitting. Defaults to 0 (no limit).
uint64_t durationPerFile = 0
 Max duration per file in seconds before splitting. Defaults to 0 (no limit).
uint64_t sizePerFileMb = 0
 Max size per file in MB before splitting. Defaults to 0 (no limit).
uint32_t maxTotalFrames = 0
 Max total frames across all files. Defaults to 0 (no limit).
uint64_t maxTotalDuration = 0
 Max total duration in seconds across all files. Defaults to 0 (no limit).
uint64_t maxTotalSizeMb = 0
 Max total size in MB across all files. Defaults to 0 (no limit).

Detailed Description

Configuration settings for creating a VoyantRecorder instance.

Note
Using 0 for any limit parameter means "no limit" for that constraint.

Constructor & Destructor Documentation

◆ VoyantRecorderConfig()

VoyantRecorderConfig::VoyantRecorderConfig ( const std::string & path)
inlineexplicit

Constructs a configuration for the recorder.

Parameters
pathThe base path for the output recording file(s); must end in .vynt.

Member Data Documentation

◆ durationPerFile

uint64_t VoyantRecorderConfig::durationPerFile = 0

Max duration per file in seconds before splitting. Defaults to 0 (no limit).

◆ framesPerFile

uint32_t VoyantRecorderConfig::framesPerFile = 0

Max frames per file before splitting. Defaults to 0 (no limit).

◆ maxTotalDuration

uint64_t VoyantRecorderConfig::maxTotalDuration = 0

Max total duration in seconds across all files. Defaults to 0 (no limit).

◆ maxTotalFrames

uint32_t VoyantRecorderConfig::maxTotalFrames = 0

Max total frames across all files. Defaults to 0 (no limit).

◆ maxTotalSizeMb

uint64_t VoyantRecorderConfig::maxTotalSizeMb = 0

Max total size in MB across all files. Defaults to 0 (no limit).

◆ outputPath

std::string VoyantRecorderConfig::outputPath

Base path for output files (.vynt). This is a required field.

◆ overwrite

bool VoyantRecorderConfig::overwrite = false

If true, an existing output file is overwritten. Defaults to false (creation fails instead).

◆ sizePerFileMb

uint64_t VoyantRecorderConfig::sizePerFileMb = 0

Max size per file in MB before splitting. Defaults to 0 (no limit).

◆ timestampFilename

bool VoyantRecorderConfig::timestampFilename = true

If true, appends a timestamp to the output filename. Defaults to true.


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