charon-core  0.3.1
SplitStreamBuf Class Reference

Buffer to split output on several streams. More...

#include <charon-core/SplitStream.h>

Inheritance diagram for SplitStreamBuf:

Public Member Functions

 SplitStreamBuf (const std::vector< std::streambuf * > &buffers)
 Constructor initializing the buffers array.
 
int overflow (int c)
 Write character in the case of overflow. More...
 
int sync ()
 Sync stream buffers. More...
 
std::streamsize xsputn (char const *str, std::streamsize size)
 Write sequence of characters. More...
 

Private Member Functions

charon_core_LOCAL SplitStreamBuf (const SplitStreamBuf &)
 forbid copying
 
void charon_core_LOCAL operator= (const SplitStreamBuf &)
 forbid assignment
 

Private Attributes

std::vector< std::streambuf * > _buffers
 pointer to stream buffers
 

Detailed Description

Definition at line 32 of file SplitStream.h.

Member Function Documentation

int SplitStreamBuf::overflow ( int  c)
Parameters
cchar value to check
Returns
EOF if overflow occured

Definition at line 43 of file SplitStream.cpp.

References _buffers.

int SplitStreamBuf::sync ( )
Returns
EOF on failure

Definition at line 65 of file SplitStream.cpp.

References _buffers.

std::streamsize SplitStreamBuf::xsputn ( char const *  str,
std::streamsize  size 
)
Parameters
strchar array to put
sizenumber of characters
Returns
number of written characters

Definition at line 55 of file SplitStream.cpp.

References _buffers.


The documentation for this class was generated from the following files: