Abstract message visitor interface. More...
#include <message.h>
Public Member Functions | |
virtual bool | try_visit (const message_base_t &message, void *context) const =0 |
returns true if a message has been successfully processed | |
Abstract message visitor interface.
As the message type is dynamic and might not be known at compile type, the try_visit
method returns true
or false
to indicate whether a message has been successfully processed. If it returns false
, that might indicate, that some other message visitor should try a luck.
It should be noted, that it is potentially slow (not very performant) as it involves multiple visitors and multiple message try attemps (the double dispatch visitor pattern is not available).
|
pure virtual |
returns true
if a message has been successfully processed
Implemented in rotor::misc::default_stringifier_t.