7#ifndef YARP_OS_PORTWRITERBUFFER_H
8#define YARP_OS_PORTWRITERBUFFER_H
17#ifndef DOXYGEN_SHOULD_SKIP_THIS
20class PortWriterBufferAdaptor :
public PortWriterWrapper
23 PortWriterBufferManager&
creator;
39 void onCompletion()
const override
41 writer.onCompletion();
45 void onCommencement()
const override
47 writer.onCommencement();
101 return content->writer;
A mini-server for performing network communication in the background.
BufferedPort()
Constructor.
void write(bool forceStrict=false)
Write the current object being returned by BufferedPort::prepare.
const void * getContent() const
Buffer outgoing data to a port.
bool unprepare()
Give the last prepared object back to YARP without writing it.
T & get()
A synonym of PortWriterBuffer::prepare.
void write(bool forceStrict=false)
Try to write the last buffer returned by PortWriterBuffer::get.
void waitForWrite()
Wait until any pending writes are done.
int getCount()
Check the number of buffers currently in use for communication.
T & prepare()
Access the object which will be transmitted by the next call to PortWriterBuffer::write.
void attach(Port &port)
Set the Port to which objects will be written.
virtual PortWriterWrapper * create(PortWriterBufferManager &man, void *tracker) override
A mini-server for network communication.
An interface to the operating system, including Port based communication.