19#ifndef __ROGUE_UTILITIES_FILEIO_STREAM_WRITER_CHANNEL_H__
20#define __ROGUE_UTILITIES_FILEIO_STREAM_WRITER_CHANNEL_H__
51 std::shared_ptr<rogue::utilities::fileio::StreamWriter> writer_;
63 std::condition_variable cond_;
80 static std::shared_ptr<rogue::utilities::fileio::StreamWriterChannel>
create(
81 std::shared_ptr<rogue::utilities::fileio::StreamWriter> writer,
97 StreamWriterChannel(std::shared_ptr<rogue::utilities::fileio::StreamWriter> writer, uint8_t channel);
111 void acceptFrame(std::shared_ptr<rogue::interfaces::stream::Frame> frame);
Stream slave endpoint and default frame pool.
static std::shared_ptr< rogue::interfaces::stream::Slave > create()
Creates a new stream slave.
Stream sink that writes incoming frames into a tagged writer channel.
~StreamWriterChannel()
Destroys stream writer channel.
void acceptFrame(std::shared_ptr< rogue::interfaces::stream::Frame > frame)
Accepts and writes one incoming frame.
void setFrameCount(uint32_t count)
Sets the accepted-frame counter to a specific value.
uint32_t getFrameCount()
Returns the number of accepted frames.
static void setup_python()
Registers Python bindings for this class.
bool waitFrameCount(uint32_t count, uint64_t timeout)
Waits until at least count frames have been accepted.
std::shared_ptr< rogue::utilities::fileio::StreamWriterChannel > StreamWriterChannelPtr