MCPcopy Create free account
hub / github.com/cpputest/cpputest / EventDispatcher

Class EventDispatcher

examples/ApplicationLib/EventDispatcher.h:53–61  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

51};
52
53class EventDispatcher
54{
55 std::list<std::pair<EventType, EventObserver*> > observerList_;
56public:
57 EventDispatcher();
58
59 void registerObserver(EventType type, EventObserver* observer);
60 void dispatchEvent(const Event& event, int timeoutSeconds);
61};
62
63#endif

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected