![]() |
MAK RTIspy API Documentation for HLA 1.3
|
Prints data from an output stream to a buffer. More...
Inheritance diagram for DtBufferPrinter:
Collaboration diagram for DtBufferPrinter:Public Member Functions | |
| DtBufferPrinter (DtBoost::shared_ptr< DtPrinterBuf > buffer) | |
| Constructor. | |
| virtual | ~DtBufferPrinter () |
| Destructor. | |
| virtual void | write (const std::string &st, int notify_level) |
| Writes the string to the buffer with the specified notify level. | |
| DtBoost::shared_ptr< DtPrinterBuf > | buffer () |
| Get a shared pointer to the buffer which this printer writes to. | |
| virtual void | swapBuffer (DtBoost::shared_ptr< DtPrinterBuf > buffer) |
| Swaps the current buffer for the given one. The old buffer will be deleted. | |
| virtual void | swapAndCopyBuffer (DtBoost::shared_ptr< DtPrinterBuf > buffer) |
| Swaps the current buffer for the given one. | |
Protected Attributes | |
| DtBoost::shared_ptr< DtPrinterBuf > | myBuffer |
| The buffer to which all output data is written. | |
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.
| DtBufferPrinter::DtBufferPrinter | ( | DtBoost::shared_ptr< DtPrinterBuf > | buffer | ) |
Constructor.
| DtBufferPrinter::~DtBufferPrinter | ( | ) | [virtual] |
Destructor.
| DtBoost::shared_ptr<DtPrinterBuf> DtBufferPrinter::buffer | ( | ) | [inline] |
Get a shared pointer to the buffer which this printer writes to.
Referenced by swapAndCopyBuffer(), and swapBuffer().
| void DtBufferPrinter::swapAndCopyBuffer | ( | DtBoost::shared_ptr< DtPrinterBuf > | buffer | ) | [virtual] |
| void DtBufferPrinter::swapBuffer | ( | DtBoost::shared_ptr< DtPrinterBuf > | buffer | ) | [virtual] |
| void DtBufferPrinter::write | ( | const std::string & | st, |
| int | notify_level | ||
| ) | [virtual] |
Writes the string to the buffer with the specified notify level.
References myBuffer.
DtBoost::shared_ptr<DtPrinterBuf> DtBufferPrinter::myBuffer [protected] |
The buffer to which all output data is written.
Referenced by swapAndCopyBuffer(), swapBuffer(), and write().