#include <DiscreteFlowReader.hpp>
Definition at line 11 of file DiscreteFlowReader.hpp.
◆ FlowReader() [1/2]
Definition at line 84 of file FlowReader.cpp.
14 {}
std::filesystem::path _domain
◆ FlowReader() [2/2]
◆ getGrain() [1/2]
| virtual mxlStatus mxl::lib::DiscreteFlowReader::getGrain |
( |
std::uint64_t | in_index, |
|
|
std::uint16_t | in_minValidSlices, |
|
|
mxlGrainInfo * | out_grainInfo, |
|
|
std::uint8_t ** | out_payload ) |
|
pure virtual |
Non-blocking accessor for a specific grain at a specific index. The index must be greater than or equal to the current tail index of the flow.
- Parameters
-
| in_index | The grain index. |
| in_minValidSlices | The expected number of valid slices in the returned mxlGrainInfo. |
| out_grainInfo | A valid pointer to mxlGrainInfo that will be copied to |
| out_payload | A valid void pointer to pointer that will be set to the first byte of the grain payload. Payload size is available in the mxlGrainInfo structure. |
- Returns
- A status code describing the outcome of the call.
Implemented in mxl::lib::PosixDiscreteFlowReader.
◆ getGrain() [2/2]
| virtual mxlStatus mxl::lib::DiscreteFlowReader::getGrain |
( |
std::uint64_t | in_index, |
|
|
std::uint16_t | in_minValidSlices, |
|
|
Timepoint | in_deadline, |
|
|
mxlGrainInfo * | out_grainInfo, |
|
|
std::uint8_t ** | out_payload ) |
|
pure virtual |
Accessor for a specific grain at a specific index. The index must be greater than or equal to the current tail index of the flow.
- Parameters
-
| in_index | The grain index. |
| in_minValidSlices | The expected number of valid slices in the returned mxlGrainInfo. |
| in_deadline | The point in time of Clock::Realtime at which to stop waiting. |
| out_grainInfo | A valid pointer to mxlGrainInfo that will be copied to |
| out_payload | A valid void pointer to pointer that will be set to the first byte of the grain payload. Payload size is available in the mxlGrainInfo structure. |
- Returns
- A status code describing the outcome of the call. Please note that this method will never return MXL_ERR_TIMEOUT, because the actual error that is being encountered in this case is MXL_ERR_OUT_OF_RANGE_TOO_EARLY, even after waiting.
Implemented in mxl::lib::PosixDiscreteFlowReader.
◆ waitForGrain()
| virtual mxlStatus mxl::lib::DiscreteFlowReader::waitForGrain |
( |
std::uint64_t | in_index, |
|
|
std::uint16_t | in_minValidSlices, |
|
|
Timepoint | in_deadline ) const |
|
pure virtual |
Blocking wait function for a specific grain at a specific index. The index must be greater than or equal to the current tail index of the flow.
- Parameters
-
| in_index | The grain index. |
| in_minValidSlices | The expected number of valid slices in the returned mxlGrainInfo. |
| in_deadline | The point in time of Clock::Realtime at which to stop waiting. |
- Returns
- A status code describing the outcome of the call. Please note that this method will never return MXL_ERR_TIMEOUT, because the actual error that is being encountered in this case is MXL_ERR_OUT_OF_RANGE_TOO_EARLY, even after waiting.
- Note
- Please note that contrary to the various overloads of getGrain, this method does not update the flow access time.
Implemented in mxl::lib::PosixDiscreteFlowReader.
The documentation for this class was generated from the following file: