scclib
Stable Cloud Computing C++ Library
|
Output stream pipeline of writers. More...
#include <iopipeline.h>
Public Member Functions | |
OutPipeline (const std::shared_ptr< Writer > &, size_t=1024) | |
Create with base writer and write buffer size. | |
std::shared_ptr< Writer > | wr_fix_chain () |
Fix the chain, and return the pointer that should be pointed to by the stream. | |
![]() | |
OutChain (const std::shared_ptr< Writer > &) | |
Create with base writer and write buffer size. | |
void | wr_replace_base (const std::shared_ptr< PipelineWriter > &w) |
Replace the base writer with a new base writer. | |
void | wr_add_back (const std::shared_ptr< PipelineWriter > &w) |
Add a writer to the end of the chain (before the base). | |
void | wr_add_front (const std::shared_ptr< PipelineWriter > &w) |
Add a writer to the start of the chain (after the stream). | |
void | wr_del (const std::shared_ptr< PipelineWriter > &) |
Delete a writer from the chain. | |
![]() | |
OutStream (Writer &, size_t=1024) | |
Create writer stream. More... | |
OutStream (const std::shared_ptr< Writer > &, size_t=1024) | |
Create writer stream. More... | |
OutStream ()=delete | |
No default construct. | |
OutStream (const OutStream &)=delete | |
Copy construct not allowed. | |
OutStream & | operator= (const OutStream &)=delete |
Copy assign not allowed. | |
OutStream (OutStream &&) | |
Move construct. | |
OutStream & | operator= (OutStream &&) |
Move assign. | |
void | write_reset (const std::shared_ptr< Writer > &) |
std::shared_ptr< Writer > | write_shared () const |
size_t | sendbuf_size () const |
Size of send buffer. | |
void | sendbuf_size (size_t) |
Resize the send buffer. More... | |
virtual std::string | send_fail () const |
Failure message from outstream. More... | |
void | clear (std::ios::iostate=std::ios::goodbit) |
Additional Inherited Members | |
![]() | |
std::shared_ptr< Writer > | wr_base |
std::list< std::shared_ptr< PipelineWriter > > | wr_chain |
Output stream pipeline of writers.
Without: stream writes <-> base With chain: stream writes <-> chain[0] <-> ... <-> chain[N] <-> base
Definition at line 148 of file iopipeline.h.