Go to the documentation of this file.
6#ifndef imod_IObserver_included
7#define imod_IObserver_included
Common interface for model objects, that supports Model/Observer design pattern.
Common interface for all classes implementing the Observer functionality in the Model/Observer design...
virtual bool OnModelAttached(IModel *modelPtr, istd::IChangeable::ChangeSet &changeMask)=0
This call back function will be called, if an observable object is about to be attached.
virtual bool IsModelAttached(const IModel *modelPtr=nullptr) const =0
Check if specified model is attached.
virtual bool OnModelDetached(IModel *modelPtr)=0
This call back function will be called, if an observable object is about to be detached.
virtual void BeforeModelChange(IModel *modelPtr)=0
This function will be called before update of the observer contents occures.
virtual void AfterModelChange(IModel *modelPtr, const istd::IChangeable::ChangeSet &changeSet)=0
This function will be called after update of the observer contents occures.
Set of change flags (its IDs).
This namespace containes basic implementation of Model/Observer design pattern This package is system...
© Witold Gantzke and Kirill Lepskiy