|
YARP
Yet Another Robot Platform
|
|
Go to the documentation of this file.
10 #ifndef YARP_OS_TWOWAYSTREAM_H
11 #define YARP_OS_TWOWAYSTREAM_H
73 virtual bool isOk()
const = 0;
119 const Contact& getLocalAddress()
const override;
120 const Contact& getRemoteAddress()
const override;
122 bool isOk()
const override;
123 void reset()
override;
124 void close()
override;
125 void beginPacket()
override;
126 void endPacket()
override;
138 #endif // YARP_OS_TWOWAYSTREAM_H
virtual const Contact & getLocalAddress() const =0
Get the address of the local side of the stream.
A stream which can be asked to perform bidirectional communication.
bool read(ImageOf< PixelRgb > &dest, const std::string &src, image_fileformat format=FORMAT_ANY)
virtual void write(char ch)
Write a single byte to the stream.
Simple specification of the minimum functions needed from output streams.
virtual void reset()=0
Reset the stream.
A "null" stream, always invalid.
virtual OutputStream & getOutputStream()=0
Get an OutputStream to write to.
virtual void close()=0
Terminate the stream.
virtual void endPacket()=0
Mark the end of a logical packet (see beginPacket).
virtual ~TwoWayStream()
Destructor.
virtual const Contact & getRemoteAddress() const =0
Get the address of the remote side of the stream.
A simple abstraction for a block of bytes.
virtual void beginPacket()=0
Mark the beginning of a logical packet.
The main, catch-all namespace for YARP.
virtual bool isOk() const =0
Check if the stream is ok or in an error state.
virtual InputStream & getInputStream()=0
Get an InputStream to read from.
bool write(const ImageOf< PixelRgb > &src, const std::string &dest, image_fileformat format=FORMAT_PPM)