10 #ifndef YARP_OS_SIZEDWRITER_H
11 #define YARP_OS_SIZEDWRITER_H
22 class ConnectionWriter;
44 virtual size_t length(
size_t index)
const = 0;
46 virtual const char*
data(
size_t index)
const = 0;
An interface for writing to a network connection.
Simple specification of the minimum functions needed from output streams.
Interface implemented by all objects that can read themselves from the network, such as Bottle object...
Interface implemented by all objects that can write themselves to the network, such as Bottle objects...
This is a base class for objects that can be both read from and be written to the YARP network.
Minimal requirements for an efficient Writer.
virtual void stopWrite() const =0
Call when all writing is finished.
virtual size_t headerLength() const =0
virtual bool dropRequested()=0
virtual Portable * getReference()=0
virtual size_t length(size_t index) const =0
virtual size_t length() const =0
virtual PortReader * getReplyHandler()=0
virtual const char * data(size_t index) const =0
virtual void startWrite() const =0
Call when writing is about to begin.
bool write(const ImageOf< PixelRgb > &src, const std::string &dest, image_fileformat format=FORMAT_PPM)
The main, catch-all namespace for YARP.