write-only std::streambuf that append()s all writes to a given Buffer More...
#include <PackableStream.h>
Public Member Functions | |
AppendingStreamBuf (Buffer &p) | |
~AppendingStreamBuf () override=default | |
Protected Member Functions | |
int_type | overflow (int_type aChar=traits_type::eof()) override |
int | sync () override |
std::streamsize | xsputn (const char *chars, std::streamsize number) override |
Private Member Functions | |
void | postInit () |
for specializations that must customize the last construction step More... | |
void | postSync () |
for specializations that must customize the last sync() step More... | |
void | lowAppend (const char *s, const std::streamsize n) |
Private Attributes | |
Buffer & | buf_ |
the associated character sequence (a.k.a. the sink) More... | |
Detailed Description
class AppendingStreamBuf< Buffer >
Definition at line 19 of file PackableStream.h.
Constructor & Destructor Documentation
◆ AppendingStreamBuf()
|
inlineexplicit |
Definition at line 22 of file PackableStream.h.
References AppendingStreamBuf< Buffer >::postInit().
◆ ~AppendingStreamBuf()
|
overridedefault |
Member Function Documentation
◆ lowAppend()
|
inlineprivate |
Definition at line 62 of file PackableStream.h.
References AppendingStreamBuf< Buffer >::buf_.
Referenced by AppendingStreamBuf< Buffer >::overflow(), AppendingStreamBuf< Buffer >::sync(), and AppendingStreamBuf< Buffer >::xsputn().
◆ overflow()
|
inlineoverrideprotected |
Definition at line 28 of file PackableStream.h.
References C, AppendingStreamBuf< Buffer >::lowAppend(), and AppendingStreamBuf< Buffer >::sync().
◆ postInit()
|
inlineprivate |
Definition at line 57 of file PackableStream.h.
Referenced by AppendingStreamBuf< Buffer >::AppendingStreamBuf().
◆ postSync()
|
inlineprivate |
Definition at line 60 of file PackableStream.h.
Referenced by AppendingStreamBuf< Buffer >::sync().
◆ sync()
|
inlineoverrideprotected |
Definition at line 43 of file PackableStream.h.
References AppendingStreamBuf< Buffer >::lowAppend(), and AppendingStreamBuf< Buffer >::postSync().
Referenced by AppendingStreamBuf< Buffer >::overflow().
◆ xsputn()
|
inlineoverrideprotected |
Definition at line 50 of file PackableStream.h.
References AppendingStreamBuf< Buffer >::lowAppend().
Member Data Documentation
◆ buf_
|
private |
Definition at line 64 of file PackableStream.h.
Referenced by AppendingStreamBuf< Buffer >::lowAppend().
The documentation for this class was generated from the following file:
- src/base/PackableStream.h