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

Method dispatchEvent

examples/ApplicationLib/EventDispatcher.cpp:43–50  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

41}
42
43void EventDispatcher::dispatchEvent(const Event& event, int timeoutSeconds)
44{
45 for (list<pair<EventType, EventObserver*> >::iterator i = observerList_.begin(); i != observerList_.end(); i++)
46 {
47 if (i->first == event.type)
48 i->second->notify(event, timeoutSeconds);
49 }
50}

Callers 1

TESTFunction · 0.80

Calls 2

beginMethod · 0.80
notifyMethod · 0.80

Tested by 1

TESTFunction · 0.64