51 FlowManager(std::filesystem::path
const& in_mxlDomain);
71 std::size_t grainNumOfSlices, std::array<std::uint32_t, MXL_MAX_PLANES_PER_GRAIN> grainSliceLengths,
72 std::uint32_t maxSyncBatchSizeHintOpt = 1, std::uint32_t maxCommitBatchSizeHintOpt = 1);
90 mxlDataFormat flowFormat,
mxlRational const& sampleRate, std::size_t channelCount, std::size_t sampleWordSize, std::size_t bufferLength,
91 std::uint32_t maxSyncBatchSizeHintOpt = 1, std::uint32_t maxCommitBatchSizeHintOpt = 1);
107 std::size_t eventCount,
mxlRational const& grainRate, std::size_t eventPayloadSize);
121 bool deleteFlow(std::unique_ptr<FlowData>&& flowData);
133 std::vector<uuids::uuid>
listFlows()
const;
146 std::filesystem::path
const&
getDomain()
const;
Owned mappings and runtime access for event flows.
bool deleteFlow(std::unique_ptr< FlowData > &&flowData)
std::unique_ptr< DiscreteFlowData > openDiscreteFlow(std::filesystem::path const &flowDir, SharedMemoryInstance< Flow > &&sharedFlowInstance)
std::filesystem::path _mxlDomain
std::unique_ptr< ContinuousFlowData > openContinuousFlow(std::filesystem::path const &flowDir, SharedMemoryInstance< Flow > &&sharedFlowInstance)
std::vector< uuids::uuid > listFlows() const
std::pair< bool, std::unique_ptr< EventFlowData > > createOrOpenEventFlow(uuids::uuid const &flowId, std::string const &flowDef, std::size_t eventCount, mxlRational const &grainRate, std::size_t eventPayloadSize)
Create an event flow atomically, or open the existing flow with the same ID.
FlowManager(std::filesystem::path const &in_mxlDomain)
std::string getFlowDef(uuids::uuid const &flowId) const
std::pair< bool, std::unique_ptr< DiscreteFlowData > > createOrOpenDiscreteFlow(uuids::uuid const &flowId, std::string const &flowDef, mxlDataFormat flowFormat, std::size_t grainCount, mxlRational const &grainRate, std::size_t grainPayloadSize, std::size_t grainNumOfSlices, std::array< std::uint32_t, MXL_MAX_PLANES_PER_GRAIN > grainSliceLengths, std::uint32_t maxSyncBatchSizeHintOpt=1, std::uint32_t maxCommitBatchSizeHintOpt=1)
std::filesystem::path const & getDomain() const
std::pair< bool, std::unique_ptr< ContinuousFlowData > > createOrOpenContinuousFlow(uuids::uuid const &flowId, std::string const &flowDef, mxlDataFormat flowFormat, mxlRational const &sampleRate, std::size_t channelCount, std::size_t sampleWordSize, std::size_t bufferLength, std::uint32_t maxSyncBatchSizeHintOpt=1, std::uint32_t maxCommitBatchSizeHintOpt=1)
std::unique_ptr< FlowData > openFlow(uuids::uuid const &flowId, AccessMode mode)
struct mxlRational_t mxlRational