AAO DRAMA/DRAMA2 C++ Interface
DRAMA C++11 and later interface
|
Implement a streambuf sub-class that can write messages via the DRAMA MessageUser interface.
This class implements std::streambuf, which allows it to be used as an output stream buffer for character based output streams (std::ostream). Messages are output via the MessageUser() method of an object supplied to the constructor. This would typically be a a sub-class of drama::MessageHandler or drama::thread::TMessHandler.
Implementation based on code in "The C++ Standard Library", Second Edition, N.M. Josuttis, Pages 837/838.
T | A class which provides a MessageUser() interface. |
#include "messagehandler.hh"
Inherits std::streambuf.
Public Member Functions | |
MessageUserStreamBuf (T &actionObj) | |
Construct a MessageUserStreamBuf object. | |
virtual | ~MessageUserStreamBuf () |
Destroy the MessgaeUserStream, any remaining output is sent. | |
Click here for the DRAMA home page and here for the AAO home page.
For more information, contact tony.farrell@mq.edu.au
Generated on Thu Dec 12 2024 23:07:35 for AAO DRAMA/DRAMA2 C++ Interface by 1.9.8