MvcDefSubject Class
class MvcDefSubject: public IMvcSubject
Default implementation of IMvcSubject interfaceDefined in: MvcDefSbjObs.h
Class Members
virtual void AddObserver(IMvcObserver* pObserver)
Adds a observer to the list of dependents on this object. When a change in state occurs, all observers are notified.
virtual void RemoveObserver(IMvcObserver* pObserver)
The dependent identified by the argument is removed from this objects list of dependents
virtual void UpdateAllObservers(IMvcObserver* pObserver = NULL, IMvcMessage* pMsg = NULL)
All objects dependent on this object are sent a notification indicating what aspect of this object has changed
virtual BOOL HasObserver(IMvcObserver* pObserver)
Determine if the observer passed in is currently configured for this subject
virtual HRESULT STDMETHODCALLTYPE QueryInterface(REFIID iid, void ** ppvObject)
Retrieve a pointer to an interface supported by this object.
virtual ULONG STDMETHODCALLTYPE AddRef()
Add a reference to this object.
virtual ULONG STDMETHODCALLTYPE Release()
Release a reference to this object.