IEventRouterImpl Class
class IEventRouterImpl: public IEventRouter
Provides a default implementation of the IEventRouter interface. This class maintains a list of event listeners and implements RouteEvent by iterating over the listeners and calling IEventListener::HandleEvent.Defined in: EventRouter.h
Class Members
ListenerVector m_listeners
Array of event listeners
virtual bool QueryGuid(REFGUID guid, void **ppvObj)
Cast object to a pointer type given a GUID.
ULONG STDMETHODCALLTYPE AddRef()
Add a reference to this object.
ULONG STDMETHODCALLTYPE Release()
Release a reference to this object.
virtual bool RouteEvent(IEvent* pIEvent)
Routes event objects to event listeners.
virtual bool AddListener(IEventListener* pIListener)
Add an event listener to the router.
virtual bool RemoveListener(IEventListener* pIListener)
Remove an event listener from the router.