#include <stream.hh>
Inheritance diagram for atoms::Stream:


This defines the basic interface for stream operations, including error handling.
Definition at line 22 of file stream.hh.
Public Member Functions | |
| virtual | ~Stream () |
| virtual void | close ()=0 |
| Closes the stream if it is not already closed. | |
| virtual bool | isOpen () const=0 |
| Returns true iff the stream is fully open. | |
| virtual bool | isClosed () const=0 |
| Returns true iff the stream is fully closed. | |
| virtual bool | isReadable () const=0 |
| Returns true iff the stream is readable. | |
| virtual bool | isWritable () const=0 |
| Returns true iff the stream is writable. | |
| virtual bool | isSeekable () const=0 |
| Returns true iff the stream is seekable. | |
| virtual size_t | read (void *buf, size_t count)=0 |
| Reads one to count bytes into buf. | |
| virtual size_t | write (const void *buf, size_t size)=0 |
| Writes one to size bytes from buf. | |
Protected Attributes | |
| boost::weak_ptr< IOHandle > | thisWeak |
| A weak pointer to 'this' for source in IOError. | |
|
|
|
|
|
Closes the stream if it is not already closed.
Implemented in atoms::StreamSocket, atoms::ssl::StreamFilter, and atoms::UNIXStream. |
|
|
Returns true iff the stream is fully closed. Streams may be an intermediate state. For example, stream sockets can be in a 'connecting' state.
Implemented in atoms::ssl::StreamFilter, and atoms::UNIXStream. |
|
|
Returns true iff the stream is fully open. Streams may be an intermediate state. For example, stream sockets can be in a 'connecting' state.
Implemented in atoms::ssl::StreamFilter, and atoms::UNIXStream. |
|
|
Returns true iff the stream is readable.
Implemented in atoms::ssl::StreamFilter, and atoms::UNIXStream. |
|
|
Returns true iff the stream is seekable.
Implemented in atoms::ssl::StreamFilter, atoms::UNIXStream, and atoms::SeekableUNIXStream. |
|
|
Returns true iff the stream is writable.
Implemented in atoms::ssl::StreamFilter, and atoms::UNIXStream. |
|
||||||||||||
|
Reads one to count bytes into buf. Atomic; on error no bytes will be read.
Implemented in atoms::ssl::StreamFilter, and atoms::UNIXStream. Referenced by atoms::Buffer::readAndAppend(). |
|
||||||||||||
|
Writes one to size bytes from buf. Atomic; on error no bytes will be written.
Implemented in atoms::ssl::StreamFilter, and atoms::UNIXStream. Referenced by atoms::Buffer::writeAndShift(). |
|
|
A weak pointer to 'this' for source in IOError.
|
1.3.5