10 #ifndef YARP_OS_OUTPUTSTREAM_H
11 #define YARP_OS_OUTPUTSTREAM_H
38 virtual void write(
char ch);
48 virtual void write(
const Bytes& b,
int offset,
int len);
73 virtual void writeLine(
const char* data,
int len);
80 virtual bool isOk()
const = 0;
86 virtual bool setWriteTimeout(
double timeout);
92 virtual bool setTypeOfService(
int tos);
98 virtual int getTypeOfService();
A simple abstraction for a block of bytes.
Simple specification of the minimum functions needed from output streams.
virtual bool isOk() const =0
Check if the stream is ok or in an error state.
virtual void write(const yarp::os::Bytes &b)=0
Write a block of bytes to the stream.
virtual ~OutputStream()
Destructor.
virtual void close()=0
Terminate the stream.
bool write(const ImageOf< PixelRgb > &src, const std::string &dest, image_fileformat format=FORMAT_PPM)
The main, catch-all namespace for YARP.