MXL : Media eXchange Layer
MXL
Loading...
Searching...
No Matches
FlowReader.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 <cstdint>
7#include <filesystem>
8#include <uuid.h>
9#include <mxl/flow.h>
10#include <mxl/mxl.h>
12
13namespace mxl::lib
14{
16 {
17 public:
22 [[nodiscard]]
23 uuids::uuid const& getId() const;
24
29 [[nodiscard]]
30 std::filesystem::path const& getDomain() const;
31
36 [[nodiscard]]
37 virtual FlowData const& getFlowData() const = 0;
38
44 [[nodiscard]]
45 virtual mxlFlowInfo getFlowInfo() const = 0;
46
52 [[nodiscard]]
54
61 [[nodiscard]]
63
65 virtual ~FlowReader();
66
67 protected:
73 [[nodiscard]]
74 virtual bool isFlowValid() const = 0;
75
80 [[nodiscard]]
81 bool checkPermissions() const;
82
83 protected:
84 explicit FlowReader(uuids::uuid&& flowId, std::filesystem::path const& domain);
85 explicit FlowReader(uuids::uuid const& flowId, std::filesystem::path const& domain);
86
87 private:
88 uuids::uuid _flowId;
89 std::filesystem::path _domain;
90 };
91
92} // namespace mxl::lib
bool checkPermissions() const
virtual FlowData const & getFlowData() const =0
virtual mxlFlowRuntimeInfo getFlowRuntimeInfo() const =0
virtual mxlFlowInfo getFlowInfo() const =0
std::filesystem::path _domain
uuids::uuid const & getId() const
FlowReader(uuids::uuid &&flowId, std::filesystem::path const &domain)
virtual bool isFlowValid() const =0
virtual mxlFlowConfigInfo getFlowConfigInfo() const =0
std::filesystem::path const & getDomain() const
Public flow reader, writer, payload and synchronization APIs.
struct mxlFlowRuntimeInfo_t mxlFlowRuntimeInfo
struct mxlFlowConfigInfo_t mxlFlowConfigInfo
struct mxlFlowInfo_t mxlFlowInfo
#define MXL_EXPORT
Definition platform.h:9
auto const flowId