MXL : Media eXchange Layer
MXL
Loading...
Searching...
No Matches
EventFlowWriter.hpp
Go to the documentation of this file.
1// SPDX-FileCopyrightText: 2026 Contributors to the Media eXchange Layer project.
2// SPDX-License-Identifier: Apache-2.0
3
7
8#pragma once
9#include "FlowWriter.hpp"
10
11namespace mxl::lib
12{
19 {
20 public:
28 virtual mxlStatus openEvent(mxlEventInfo* info, std::uint8_t** payload) = 0;
36 virtual mxlStatus commit(mxlEventInfo const& info) = 0;
41 virtual mxlStatus cancel() = 0;
42
43 protected:
50 };
51}
Backend contract for a single event producer with private write staging. Callers guarantee one writer...
virtual mxlStatus openEvent(mxlEventInfo *info, std::uint8_t **payload)=0
Begin a write and reset metadata to the event defaults.
FlowWriter(uuids::uuid &&flowId, std::filesystem::path const &domain)
Initialize flow identity and domain using the base writer constructors.
Definition FlowWriter.cpp:9
virtual mxlStatus commit(mxlEventInfo const &info)=0
Publish the staged bytes as one complete event or fragment.
virtual mxlStatus cancel()=0
Discard an open write without advancing the queue or timestamp.
FlowWriter(uuids::uuid &&flowId, std::filesystem::path const &domain)
Definition FlowWriter.cpp:9
struct mxlEventInfo_t mxlEventInfo
Metadata for one event queue entry, either a complete event or a fragment.
mxlStatus
MXL SDK Status codes.
Definition mxl.h:22
#define MXL_EXPORT
Definition platform.h:9