C++ classes for routing events to event handlers.