SOFA API  014b24ea
Open source framework for multi-physics simuation
sofa::helper::logging::routingmessagehandler::RoutingMessageHandler Class Reference

#include <RoutingMessageHandler.h>

The RoutingMessageHandler class saves a copy of the messages in a buffer. More...

Inheritance diagram for sofa::helper::logging::routingmessagehandler::RoutingMessageHandler:

Detailed Description

The RoutingMessageHandler class saves a copy of the messages in a buffer.

This class is a MessageHandler to implement complex routing rules.

User interested in having a singleton of this class should have a look at

See also
MainRoutingMessageHandler.

Public Member Functions

 RoutingMessageHandler ()
 
 ~RoutingMessageHandler () override
 
void setAFilter (FilterFunction, MessageHandler *handler)
 All the message of the given class will be routed to this handler. More...
 
void removeAllFilters ()
 Remove all the filter but don't delete the associated memory. More...
 
void process (Message &m) override
 Inherited from MessageHandler. More...
 
- Public Member Functions inherited from sofa::helper::logging::MessageHandler
virtual ~MessageHandler ()
 

Constructor details

sofa::helper::logging::routingmessagehandler::RoutingMessageHandler::RoutingMessageHandler ( )
sofa::helper::logging::routingmessagehandler::RoutingMessageHandler::~RoutingMessageHandler ( )
inlineoverride

Function details

void sofa::helper::logging::routingmessagehandler::RoutingMessageHandler::process ( Message m)
overridevirtual
void sofa::helper::logging::routingmessagehandler::RoutingMessageHandler::removeAllFilters ( )

Remove all the filter but don't delete the associated memory.

void sofa::helper::logging::routingmessagehandler::RoutingMessageHandler::setAFilter ( FilterFunction  f,
MessageHandler handler 
)

All the message of the given class will be routed to this handler.