Streambuf that uses an RWPortal as its source and sink of bytes.
More...
#include <rw/network/RWTPortalStreambuf.h>
Inherits basic_streambuf< charT, traits >.
template<class charT, class traits>
class RWTPortalStreambuf< charT, traits >
RWTPortalStreambuf is a streambuf that uses an RWPortal as its source and sink of bytes.
template<class charT , class traits >
A typedef for the character type used by this stream buffer. This is an alias for the charT
template parameter.
template<class charT , class traits >
A typedef for an integer type that is able to store all possible values of type char_type, including end-of-file.
template<class charT , class traits >
A typedef for the character traits used by this stream buffer. This is an alias for the traits
template parameter.
template<class charT , class traits >
Constructs a streambuf without a source or sink of bytes. You need to set the source and sink using setPortal() before using self.
template<class charT , class traits >
Constructs a streambuf connected to the portal portal.
template<class charT , class traits >
Writes to the portal when the buffer overflows.
template<class charT , class traits >
Sets the communications channel into which you are writing. If force is true
, the underlying portal is reassigned, and any exceptions thrown by the assignment are caught and ignored.
template<class charT , class traits >
Reads from the portal when the buffer underflows.