Class for recording Voyant frames to binary files with automatic splitting.
More...
#include <voyant_data_recorder.hpp>
Class for recording Voyant frames to binary files with automatic splitting.
◆ VoyantRecorder() [1/2]
Constructor that takes a configuration struct.
- Parameters
-
| config | The configuration settings for the recorder |
◆ ~VoyantRecorder()
| VoyantRecorder::~VoyantRecorder |
( |
| ) |
|
Destructor - automatically finalizes recording if needed.
◆ VoyantRecorder() [2/2]
◆ finalize()
| bool VoyantRecorder::finalize |
( |
| ) |
|
Finalizes the recording and closes all files.
- Returns
- true if successful, false otherwise
◆ getSplitCount()
| std::optional< size_t > VoyantRecorder::getSplitCount |
( |
| ) |
const |
Gets the number of file splits that have occurred.
- Returns
- Number of splits, or std::nullopt if recorder is invalid
◆ getTotalFramesRecorded()
| std::optional< size_t > VoyantRecorder::getTotalFramesRecorded |
( |
| ) |
const |
Gets the total number of frames recorded.
- Returns
- Total frame count, or std::nullopt if recorder is invalid
◆ isValid()
| bool VoyantRecorder::isValid |
( |
| ) |
const |
Checks if the recorder is valid.
- Returns
- true if recorder is properly initialized
◆ operator=()
◆ recordFrame()
Records a frame to the current file.
- Parameters
-
- Returns
- RecordResult indicating the outcome of the recording operation
◆ buffer_
| std::vector<uint8_t> VoyantRecorder::buffer_ |
|
private |
◆ finalized_
| bool VoyantRecorder::finalized_ |
|
private |
◆ lastErrorMsg_
| std::string VoyantRecorder::lastErrorMsg_ |
|
private |
◆ recorderHandle_
The documentation for this class was generated from the following file: