MXL : Media eXchange Layer
MXL
Loading...
Searching...
No Matches
ContinuousFlowWriter.hpp
Go to the documentation of this file.
1// SPDX-FileCopyrightText: 2025 Contributors to the Media eXchange Layer project.
2// SPDX-License-Identifier: Apache-2.0
3
4#pragma once
5
6#include "FlowWriter.hpp"
7
8namespace mxl::lib
9{
11 {
12 public:
19 [[nodiscard]]
20 virtual std::size_t getMaxWriteLength() const = 0;
21
35 virtual mxlStatus openSamples(std::uint64_t index, std::size_t count, mxlMutableWrappedMultiBufferSlice& payloadBufferSlices) = 0;
36
37 virtual mxlStatus commit() = 0;
38
39 virtual mxlStatus cancel() = 0;
40
41 protected:
43 };
44}
virtual std::size_t getMaxWriteLength() const =0
FlowWriter(uuids::uuid &&flowId, std::filesystem::path const &domain)
Definition FlowWriter.cpp:9
virtual mxlStatus openSamples(std::uint64_t index, std::size_t count, mxlMutableWrappedMultiBufferSlice &payloadBufferSlices)=0
virtual mxlStatus commit()=0
virtual mxlStatus cancel()=0
FlowWriter(uuids::uuid &&flowId, std::filesystem::path const &domain)
Definition FlowWriter.cpp:9
struct mxlMutableWrappedMultiBufferSlice_t mxlMutableWrappedMultiBufferSlice
mxlStatus
MXL SDK Status codes.
Definition mxl.h:22
std::size_t count(uuids::uuid id) const noexcept
Returns the number of writers registered for flow id 'id'.
#define MXL_EXPORT
Definition platform.h:9
uint64_t index