MXL : Media eXchange Layer
MXL
Loading...
Searching...
No Matches
EventFlowReader.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 "FlowReader.hpp"
10#include "Timing.hpp"
11
12namespace mxl::lib
13{
19 {
20 public:
30 virtual mxlStatus getEvent(Timepoint deadline, mxlEventInfo* info, std::uint8_t** payload) = 0;
31
32 protected:
39 };
40}
Backend contract for reading complete event entries or fragments in queue order. Each reader has one ...
FlowReader(uuids::uuid &&flowId, std::filesystem::path const &domain)
Initialize flow identity and domain using the base reader constructors.
virtual mxlStatus getEvent(Timepoint deadline, mxlEventInfo *info, std::uint8_t **payload)=0
Copy the next available entry and advance this reader's cursor.
FlowReader(uuids::uuid &&flowId, std::filesystem::path const &domain)
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