Library: Foundation
Package: Events
Header: Poco/NotificationStrategy.h
The interface that all notification strategies must implement.
Member Functions: add, clear, empty, notify, remove
virtual ~NotificationStrategy();
virtual void add(
const TDelegate & pDelegate
) = 0;
Adds a delegate to the strategy, if the delegate is not yet present
virtual void clear() = 0;
Removes all delegates from the strategy.
virtual bool empty() const = 0;
Returns false if the strategy contains at least one delegate.
virtual void notify(
const void * sender,
TArgs & arguments
) = 0;
Sends a notification to all registered delegates,
virtual void remove(
const TDelegate & pDelegate
) = 0;
Removes a delegate from the strategy if found.