Encapsulates an object's method for using it as a message retriever.
void(T::* Operation)(const MsgHandler::MsgType, const std::string &)
Type of the function to execute.
virtual void postWriteHook()
Sends the data which was written to the string stream via the retrieving function.
MsgHandler::MsgType myMsgType
The type of message to retrieve.
std::ostringstream myMessage
message buffer
Operation myOperation
The object's operation to perform.
MsgRetrievingFunction(T *object, Operation operation, MsgHandler::MsgType type)
Constructor.
~MsgRetrievingFunction()
Destructor.
T * myObject
The object the action is directed to.
std::ostream & getOStream()
Returns the associated ostream.
Static storage of an output device and its base (abstract) implementation.