Sen API
Sen Libraries
Loading...
Searching...
No Matches
recording_merger.h File Reference
#include "sen/core/base/duration.h"
#include <cstddef>
#include <cstdint>
#include <filesystem>
#include <functional>
#include <string>
#include <variant>
#include <vector>

Go to the source code of this file.

Classes

class  sen::db::RecordingMergeObject
 Information about an object found while merging recordings. More...
struct  sen::db::RecordingMergeDuplicateObject
 Conflict data passed to the duplicate object resolver. More...
struct  sen::db::RecordingMergeObjectRename
 New name selected for one object in a duplicate object conflict. More...
struct  sen::db::RecordingMergeKeepSelectedObject
 Object that we need to keep and discards the other in a duplicate conflict. More...
struct  sen::db::RecordingMergeRenameObjects
 Resolution that assigns new names to objects in a duplicate conflict. More...
struct  sen::db::RecordingMergeInput
 Recording input used by the merger. More...
struct  sen::db::RecordingMergeSettings
 Settings used to merge several recording archives into one archive. More...

Namespaces

namespace  sen
namespace  sen::db

Typedefs

using sen::db::RecordingMergeDuplicateObjectResolution
 Decision returned by the duplicate object resolver.
using sen::db::RecordingMergeDuplicateObjectResolver
 Callback used to resolve duplicate object names.
using sen::db::RecordingMergeProgressReporter = std::function<void(std::size_t bytesDone, std::size_t bytesTotal)>
 Reports merge progress. Both values are in bytes of input, and the reporter is called only when the whole-percent figure changes, so it is safe to do visible work in it.

Enumerations

enum class  sen::db::RecordingMergeMode { sen::db::RecordingMergeMode::normalMerge , sen::db::RecordingMergeMode::zeroAligned , sen::db::RecordingMergeMode::offsetAligned }
 Timestamp alignment modes supported when merging recording archives. More...

Functions

void sen::db::mergeRecordings (const RecordingMergeSettings &settings)
 Merges recording archives into a single archive.