Auxiliary class wrapping std::stringstream thus allowing constructing message via stream interface, and putting result into its creator Message_Messenger within destructor.
More...
#include <Message_Messenger.hxx>
Auxiliary class wrapping std::stringstream thus allowing constructing message via stream interface, and putting result into its creator Message_Messenger within destructor.
It is intended to be used either as temporary object or as local variable, note that content will be lost if it is copied.
◆ ~StreamBuffer()
Message_Messenger::StreamBuffer::~StreamBuffer |
( |
| ) |
|
|
inline |
Destructor flushing constructed message.
◆ StreamBuffer()
Formal copy constructor.
Since buffer is intended for use as temporary object or local variable, copy (or move) is needed only formally to be able to return the new instance from relevant creation method. In practice it should never be called because modern compilers create such instances in place. However note that if this constructor is called, the buffer content (string) will not be copied (move is not supported for std::stringstream class on old compilers such as gcc 4.4, msvc 9).
◆ Flush()
Flush collected string to messenger.
◆ Messenger()
◆ operator Standard_OStream &()
◆ operator<<() [1/2]
Wrapper for operator << of the stream.
◆ operator<<() [2/2]
StreamBuffer & Message_Messenger::StreamBuffer::operator<< |
( |
std::ostream & |
*)(std::ostream & | ) |
|
|
inline |
Operator << for manipulators of ostream (ends, endl, flush), flushes the buffer (sends the message)
◆ Stream()
Access to the stream object.
The documentation for this class was generated from the following file: