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