anatomist  5.1.2
3D neuroimaging data viewer
anatomist::EventHandler Class Referenceabstract

Event handlers are called internally when the default context outputs an event. More...

#include <anatomist/processor/event.h>

Public Member Functions

 EventHandler ()
 
virtual ~EventHandler ()
 
virtual void doit (const OutputEvent &)=0
 this method should be defined by derived classes to do something when an event of the matching type occurs More...
 

Static Public Member Functions

static void registerHandler (const std::string &evtype, carto::rc_ptr< EventHandler >)
 
static void unregisterHandler (const std::string &evtype, carto::rc_ptr< EventHandler >)
 
static const std::map< std::string, std::set< carto::rc_ptr< EventHandler > > > & handlers ()
 

Detailed Description

Event handlers are called internally when the default context outputs an event.

Definition at line 105 of file event.h.

Constructor & Destructor Documentation

◆ EventHandler()

anatomist::EventHandler::EventHandler ( )

◆ ~EventHandler()

virtual anatomist::EventHandler::~EventHandler ( )
virtual

Member Function Documentation

◆ doit()

virtual void anatomist::EventHandler::doit ( const OutputEvent )
pure virtual

this method should be defined by derived classes to do something when an event of the matching type occurs

◆ handlers()

static const std::map<std::string, std::set<carto::rc_ptr<EventHandler> > >& anatomist::EventHandler::handlers ( )
inlinestatic

Definition at line 119 of file event.h.

◆ registerHandler()

static void anatomist::EventHandler::registerHandler ( const std::string &  evtype,
carto::rc_ptr< EventHandler  
)
static

◆ unregisterHandler()

static void anatomist::EventHandler::unregisterHandler ( const std::string &  evtype,
carto::rc_ptr< EventHandler  
)
static

The documentation for this class was generated from the following file: