7#ifndef YARP_OS_IMPL_PORTWRITERBUFFER_H
8#define YARP_OS_IMPL_PORTWRITERBUFFER_H
17#ifndef DOXYGEN_SHOULD_SKIP_THIS
20class PortWriterBufferAdaptor :
public PortWriterWrapper
23 PortWriterBufferManager& creator;
27 PortWriterBufferAdaptor(PortWriterBufferManager& creator,
34 bool write(ConnectionWriter& connection)
const override
36 return writer.write(connection);
39 void onCompletion()
const override
41 writer.onCompletion();
42 creator.onCompletion(tracker);
45 void onCommencement()
const override
47 writer.onCommencement();
50 PortWriter* getInternal()
override
101 return content->writer;
A mini-server for performing network communication in the background.
A mini-server for network communication.
const void * getContent() const
Buffer outgoing data to a port.
bool unprepare()
Give the last prepared object back to YARP without writing it.
void write(bool forceStrict=false)
Try to write the last buffer returned by PortWriterBuffer::get.
T & get()
A synonym of PortWriterBuffer::prepare.
T & prepare()
Access the object which will be transmitted by the next call to PortWriterBuffer::write.
int getCount()
Check the number of buffers currently in use for communication.
virtual PortWriterWrapper * create(PortWriterBufferManager &man, void *tracker) override
void attach(Port &port)
Set the Port to which objects will be written.
void waitForWrite()
Wait until any pending writes are done.
The components from which ports and connections are built.
bool write(const ImageOf< PixelRgb > &src, const std::string &dest, image_fileformat format=FORMAT_PPM)