CppCMS
|
This is a special buffer that allows to "steal" some chunk of text from the output stream. More...
#include <cppcms/steal_buf.h>
Public Member Functions | |
steal_buffer (std::ostream &out) | |
steal_buffer () | |
void | steal (std::ostream &out) |
void | release () |
Public Member Functions inherited from cppcms::util::stackbuf< Size > | |
char * | begin () |
char * | end () |
char * | c_str () |
std::string | str () |
Additional Inherited Members | |
Protected Member Functions inherited from cppcms::util::stackbuf< Size > | |
int | overflow (int c) |
This is a special buffer that allows to "steal" some chunk of text from the output stream.
It does this by replacing stream's streambuf object with temporary stream buffer that records all data written to the stream and then returns the original buffer upon call to release() member function it steal_buffer destruction.
The Size parameter defines the default chunk of memory allocated on the stack before heap is used.
|
inline |
Create the buffer and "Steal" the buffer from out
|
inline |
Create an empty buffer
|
inline |
Release the "stolen" buffer back, now the buffer contains all the data that was recorded.
|
inline |
Steal the buffer from out