Prints data from an output stream to a buffer.
More...
Protected Attributes |
| DtBoost::shared_ptr< DtPrinterBuf > | myBuffer |
| | The buffer to which all output data is written.
|
Detailed Description
Prints data from an output stream to a buffer.
DtBufferPrinter may be attached to MAKRti::DtOutputStream objects and will print any data received to a DtPrinterBuf.
Constructor & Destructor Documentation
| DtBufferPrinter::DtBufferPrinter |
( |
DtBoost::shared_ptr< DtPrinterBuf > |
buffer | ) |
|
| virtual DtBufferPrinter::~DtBufferPrinter |
( |
| ) |
|
|
virtual |
Member Function Documentation
| DtBoost::shared_ptr<DtPrinterBuf> DtBufferPrinter::buffer |
( |
| ) |
|
|
inline |
Get a shared pointer to the buffer which this printer writes to.
| virtual void DtBufferPrinter::swapAndCopyBuffer |
( |
DtBoost::shared_ptr< DtPrinterBuf > |
buffer | ) |
|
|
virtual |
Swaps the current buffer for the given one.
The new buffer will be populated with the contents of the current buffer. The old buffer will be deleted.
| virtual void DtBufferPrinter::swapBuffer |
( |
DtBoost::shared_ptr< DtPrinterBuf > |
buffer | ) |
|
|
virtual |
Swaps the current buffer for the given one. The old buffer will be deleted.
| virtual void DtBufferPrinter::write |
( |
const std::string & |
st, |
|
|
int |
notify_level, |
|
|
bool |
sync |
|
) |
| |
|
virtual |
Writes the string to the buffer with the specified notify level.
Member Data Documentation
The buffer to which all output data is written.
The documentation for this class was generated from the following file: