SourcePro C++ 12.0 |
SourcePro® C++ API Reference Guide |
SourcePro C++ Documentation Home |
Streambuf that uses an RWPortal as its source and sink of bytes. More...
#include <rw/network/RWTPortalStreambuf.h>
Public Types | |
typedef charT | char_type |
typedef traits | traits_type |
typedef traits_type::int_type | int_type |
Public Member Functions | |
RWTPortalStreambuf (void) | |
RWTPortalStreambuf (const RWPortal &portal) | |
void | setPortal (const RWPortal &portal, bool force=false) |
Protected Member Functions | |
virtual int_type | overflow (int_type=traits_type::eof()) |
virtual int_type | underflow (void) |
RWTPortalStreambuf is a streambuf that uses an RWPortal as its source and sink of bytes.
typedef charT RWTPortalStreambuf< charT, traits >::char_type |
A typedef for the character type used by this stream buffer. This is an alias for the charT
template parameter.
typedef traits_type::int_type RWTPortalStreambuf< charT, traits >::int_type |
A typedef for an integer type that is able to store all possible values of type char_type, including end-of-file.
typedef traits RWTPortalStreambuf< charT, traits >::traits_type |
A typdedef for the character traits used by this stream buffer. This is an alias for the traits
template parameter.
RWTPortalStreambuf< charT, traits >::RWTPortalStreambuf | ( | void | ) |
Constructs a streambuf without a source or sink of bytes. You need to set the source and sink using setPortal() before using self.
RWTPortalStreambuf< charT, traits >::RWTPortalStreambuf | ( | const RWPortal & | portal | ) |
Constructs a streambuf connected to the portal portal.
virtual int_type RWTPortalStreambuf< charT, traits >::overflow | ( | int_type | = traits_type::eof() |
) | [protected, virtual] |
Writes to the portal when the buffer overflows.
void RWTPortalStreambuf< charT, traits >::setPortal | ( | const RWPortal & | portal, | |
bool | force = false | |||
) |
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.
virtual int_type RWTPortalStreambuf< charT, traits >::underflow | ( | void | ) | [protected, virtual] |
Reads from the portal when the buffer underflows.
© Copyright Rogue Wave Software, Inc. All Rights Reserved.
Rogue Wave and SourcePro are registered trademarks of Rogue Wave Software, Inc. in the United States and other countries. All other trademarks are the property of their respective owners.
Contact Rogue Wave about documentation or support issues.