ucommon
|
Common stream protocol for std C++ i/o classes. More...
#include <stream.h>
Public Member Functions | |
bool | is_open (void) |
operator bool () | |
bool | operator! () |
int | sync (void) |
Flush the stream input and output buffers, writes pending output. | |
![]() | |
int | get (void) |
Get the next character. | |
int | put (int code) |
Put the next character. |
Protected Member Functions | |
void | allocate (size_t size) |
int | overflow (int code) |
void | release (void) |
int | uflow () |
This streambuf method is used for doing unbuffered reads through the establish tcp socket connection when in interactive mode. | |
int | underflow () |
![]() | |
virtual int | _getch (void)=0 |
Get the next character. | |
virtual int | _putch (int code)=0 |
Put the next character. |
Protected Attributes | |
size_t | bufsize |
char * | gbuf |
char * | pbuf |
Common stream protocol for std C++ i/o classes.
This both binds the character protocol to iostream and offers a common base class for all other c++ stdlib based streaming classes.
int ucommon::StreamProtocol::sync | ( | void | ) |
Flush the stream input and output buffers, writes pending output.
Reimplemented in ucommon::sstream.
|
protected |
This streambuf method is used for doing unbuffered reads through the establish tcp socket connection when in interactive mode.
Also this method will handle proper use of buffers if not in interactive mode.