ucommon
7.0.0
About: GNU uCommon C++ is a portable and optimized class framework for writing C++ applications that need to use threads and support concurrent synchronization, and that use sockets, XML parsing, object serialization, thread-optimized string and data structure classes, etc..
![]() ![]() |
#include <stream.h>
Public Member Functions | |
int | sync (void) |
bool | is_open (void) const |
operator bool () const | |
bool | operator! () const |
Protected Member Functions | |
StreamBuffer () | |
int | uflow () __OVERRIDE |
void | release (void) |
void | allocate (size_t size) |
Protected Attributes | |
size_t | bufsize |
char * | gbuf |
char * | pbuf |
Private Member Functions | |
__DELETE_COPY (StreamBuffer) | |
Common stream buffer 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.
|
protected |
Definition at line 56 of file stream.cpp.
|
private |
|
protected |
Definition at line 76 of file stream.cpp.
References bufsize, ucommon::clear(), gbuf, and pbuf.
Referenced by ucommon::tcpstream::allocate().
|
inline |
Definition at line 96 of file stream.h.
Referenced by main(), ucommon::sstream::open(), and ucommon::sstream::sstream().
|
inline |
|
protected |
Definition at line 103 of file stream.cpp.
References bufsize, ucommon::clear(), gbuf, and pbuf.
Referenced by ucommon::filestream::close(), ucommon::tcpstream::release(), and ucommon::pipestream::release().
int ucommon::StreamBuffer::sync | ( | void | ) |
Flush the stream input and output buffers, writes pending output.
Definition at line 116 of file stream.cpp.
References bufsize, EOF, and gbuf.
Referenced by ucommon::tcpstream::close(), ucommon::pipestream::close(), ucommon::filestream::close(), ucommon::filestream::rewind(), ucommon::filestream::seek(), and ucommon::sstream::sync().
|
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.
Definition at line 63 of file stream.cpp.
|
protected |
Definition at line 70 of file stream.h.
Referenced by allocate(), ucommon::tcpstream::allocate(), ucommon::pipestream::allocate(), ucommon::filestream::allocate(), ucommon::tcpstream::close(), ucommon::pipestream::close(), ucommon::filestream::close(), ucommon::tcpstream::open(), ucommon::sstream::open(), ucommon::tcpstream::overflow(), ucommon::pipestream::overflow(), ucommon::filestream::overflow(), release(), ucommon::tcpstream::reset(), ucommon::filestream::rewind(), ucommon::filestream::seek(), StreamBuffer(), sync(), ucommon::pipestream::terminate(), uflow(), ucommon::tcpstream::underflow(), ucommon::pipestream::underflow(), and ucommon::filestream::underflow().
|
protected |
Definition at line 71 of file stream.h.
Referenced by allocate(), ucommon::pipestream::allocate(), ucommon::filestream::allocate(), ucommon::tcpstream::close(), release(), ucommon::pipestream::release(), ucommon::tcpstream::reset(), StreamBuffer(), sync(), ucommon::tcpstream::underflow(), ucommon::pipestream::underflow(), and ucommon::filestream::underflow().
|
protected |
Definition at line 71 of file stream.h.
Referenced by allocate(), ucommon::pipestream::allocate(), ucommon::filestream::allocate(), ucommon::tcpstream::close(), ucommon::tcpstream::overflow(), ucommon::pipestream::overflow(), ucommon::filestream::overflow(), release(), ucommon::pipestream::release(), ucommon::tcpstream::reset(), and StreamBuffer().