Simple specification of the minimum functions needed from output streams. More...
#include <yarp/os/OutputStream.h>
 Inheritance diagram for yarp::os::OutputStream:Public Member Functions | |
| virtual | ~OutputStream () | 
| Destructor.  More... | |
| virtual void | write (char ch) | 
| Write a single byte to the stream.  More... | |
| virtual void | write (const Bytes &b, int offset, int len) | 
| Write a block of bytes to the stream.  More... | |
| virtual void | write (const yarp::os::Bytes &b)=0 | 
| Write a block of bytes to the stream.  More... | |
| virtual void | close ()=0 | 
| Terminate the stream.  More... | |
| virtual void | flush () | 
| Make sure all pending write operations are finished.  More... | |
| virtual void | writeLine (const char *data, int len) | 
| Write some text followed by a line feed.  More... | |
| virtual bool | isOk () const =0 | 
| Check if the stream is ok or in an error state.  More... | |
| virtual bool | setWriteTimeout (double timeout) | 
| Set activity timeout.  More... | |
| virtual bool | setTypeOfService (int tos) | 
| virtual int | getTypeOfService () | 
Simple specification of the minimum functions needed from output streams.
The streams could be TCP, UDP, MCAST, ...
Definition at line 24 of file OutputStream.h.
      
  | 
  virtualdefault | 
Destructor.
      
  | 
  pure virtual | 
Terminate the stream.
Implemented in MpiStream, yarp::os::NullStream, yarp::os::StringOutputStream, yarp::os::impl::SocketTwoWayStream, yarp::os::impl::MemoryOutputStream, yarp::os::impl::LocalCarrierStream, yarp::os::impl::HttpTwoWayStream, yarp::os::impl::DgramTwoWayStream, XmlRpcStream, UnixSockTwoWayStream, TcpRosStream, ShmemHybridStream, MpiP2PStream, MpiBcastStream, MjpegStream, and HumanStream.
      
  | 
  virtual | 
Make sure all pending write operations are finished.
Reimplemented in yarp::os::impl::SocketTwoWayStream, and yarp::os::impl::DgramTwoWayStream.
Definition at line 28 of file OutputStream.cpp.
      
  | 
  virtual | 
Reimplemented in yarp::os::impl::SocketTwoWayStream, and yarp::os::impl::DgramTwoWayStream.
Definition at line 51 of file OutputStream.cpp.
      
  | 
  pure virtual | 
Check if the stream is ok or in an error state.
Implemented in yarp::os::NullStream, yarp::os::StringOutputStream, yarp::os::impl::SocketTwoWayStream, yarp::os::impl::MemoryOutputStream, yarp::os::impl::LocalCarrierStream, yarp::os::impl::HttpTwoWayStream, yarp::os::impl::DgramTwoWayStream, XmlRpcStream, UnixSockTwoWayStream, TcpRosStream, ShmemHybridStream, MpiStream, MjpegStream, and HumanStream.
      
  | 
  virtual | 
Reimplemented in yarp::os::impl::SocketTwoWayStream, yarp::os::impl::LocalCarrierStream, and yarp::os::impl::DgramTwoWayStream.
Definition at line 45 of file OutputStream.cpp.
      
  | 
  virtual | 
Set activity timeout.
Support for this is optional. 0 = wait forever.
Reimplemented in yarp::os::impl::SocketTwoWayStream.
Definition at line 39 of file OutputStream.cpp.
      
  | 
  virtual | 
Write a single byte to the stream.
By default, this calls write(const Bytes& b) to do its work.
| ch | the byte to write | 
Definition at line 17 of file OutputStream.cpp.
      
  | 
  virtual | 
Write a block of bytes to the stream.
By default, this calls write(const Bytes& b) to do its work.
| b | the bytes to write | 
| offset | an offset within the block to start at | 
| len | the number of bytes to write | 
Definition at line 22 of file OutputStream.cpp.
      
  | 
  pure virtual | 
Write a block of bytes to the stream.
| b | the bytes to write | 
Implemented in MpiStream, yarp::os::impl::MemoryOutputStream, yarp::os::impl::LocalCarrierStream, yarp::os::impl::DgramTwoWayStream, XmlRpcStream, UnixSockTwoWayStream, TcpRosStream, ShmemHybridStream, MpiP2PStream, MpiBcastStream, MjpegStream, H264Stream, yarp::os::NullStream, yarp::os::StringOutputStream, yarp::os::impl::SocketTwoWayStream, yarp::os::impl::HttpTwoWayStream, and HumanStream.
      
  | 
  virtual | 
Write some text followed by a line feed.
By default, this calls write(const Bytes& b) to do its work.
| data | the text to write | 
Definition at line 32 of file OutputStream.cpp.