![]() |
• Utility Library | ||||||||||
|
API Links
Developer Links
|
class ObserverDefined in:
The C4Observable.hObserver class encapsulates an object pointer and callback function for an observer.
Definition
Template Parameters
Constructor
Parameters
Description
The Observer class encapsulates a member function of an observer object. Observers are installed on observable objects by calling the Observable::AddObserver function. Once installed, the member function stored in the observer object is called each time an event is posted for the observable object.The first parameter of the member function belonging to the observer object is a pointer to the object being observed. If the event type of the observable object is not void, then the event is passed as the second parameter to the member function. Otherwise, the member function should not take a second parameter.
Base Classes
See Also
|