write-only std::streambuf that append()s all writes to a given Buffer More...

#include <PackableStream.h>

Inheritance diagram for AppendingStreamBuf< Buffer >:
Collaboration diagram for AppendingStreamBuf< Buffer >:

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

template<class Buffer>
class AppendingStreamBuf< Buffer >

Definition at line 19 of file PackableStream.h.

Constructor & Destructor Documentation

◆ AppendingStreamBuf()

template<class Buffer >
AppendingStreamBuf< Buffer >::AppendingStreamBuf ( Buffer &  p)
inlineexplicit

Definition at line 22 of file PackableStream.h.

References AppendingStreamBuf< Buffer >::postInit().

◆ ~AppendingStreamBuf()

template<class Buffer >
AppendingStreamBuf< Buffer >::~AppendingStreamBuf ( )
overridedefault

Member Function Documentation

◆ lowAppend()

template<class Buffer >
void AppendingStreamBuf< Buffer >::lowAppend ( const char *  s,
const std::streamsize  n 
)
inlineprivate

◆ overflow()

template<class Buffer >
int_type AppendingStreamBuf< Buffer >::overflow ( int_type  aChar = traits_type::eof())
inlineoverrideprotected

◆ postInit()

template<class Buffer >
void AppendingStreamBuf< Buffer >::postInit ( )
inlineprivate

Definition at line 57 of file PackableStream.h.

Referenced by AppendingStreamBuf< Buffer >::AppendingStreamBuf().

◆ postSync()

template<class Buffer >
void AppendingStreamBuf< Buffer >::postSync ( )
inlineprivate

Definition at line 60 of file PackableStream.h.

Referenced by AppendingStreamBuf< Buffer >::sync().

◆ sync()

template<class Buffer >
int AppendingStreamBuf< Buffer >::sync ( )
inlineoverrideprotected

◆ xsputn()

template<class Buffer >
std::streamsize AppendingStreamBuf< Buffer >::xsputn ( const char *  chars,
std::streamsize  number 
)
inlineoverrideprotected

Definition at line 50 of file PackableStream.h.

References AppendingStreamBuf< Buffer >::lowAppend().

Member Data Documentation

◆ buf_

template<class Buffer >
Buffer& AppendingStreamBuf< Buffer >::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:

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors