Defined in:An object inherits from the
ExclusiveObservableclass when it can be observed by a single observer only, and the
ExclusiveObservableclass provides a mechanism for notifying the observer of the object when events occur.
template <class observableType, class eventType = void> class ExclusiveObservable
||Returns a boolean value indicating whether an observable object has an observer.|
||Installs the observer on an observable object.|
||Posts an event to an observable object.|
||The type of the class that can be observed. This parameter should be the type of the class that inherits directly from the |
||The type of an event object that is sent to the observer when an event occurs. If there is no event object, then this parameter should be omitted.|
ExclusiveObservableclass maintains a link to a single observer that is listening to an observable object for event notifications. An observable object inherits from the
The exclusive observer are installed by calling the
ExclusiveObservable::SetObserverfunction for the observable object. When an event occurs, the observable object calls the
ExclusiveObservable::PostEventfunction to sent an event to its current observer.