![]() |
• Utility Library | ||||||||||
|
API Links
Developer Links
|
class ExclusiveObservableDefined in:
An object inherits from the C4Observable.hExclusiveObservable class when it can be observed by a single observer only, and the ExclusiveObservable class provides a mechanism for notifying the observer of the object when events occur.
Definition
Member Functions
Template Parameters
Constructor
ExclusiveObservable class can only exist as a base class for another class.
Description
The ExclusiveObservable class maintains a link to a single observer that is listening to an observable object for event notifications. An observable object inherits from the ExclusiveObservable class.The exclusive observer are installed by calling the ExclusiveObservable::SetObserver function for the observable object. When an event occurs, the observable object calls the ExclusiveObservable::PostEvent function to sent an event to its current observer.
See Also
|