![]() |
ICF 3.1.1.10
Technical documentation of ICF Libraries
|
Implementation of the model proxy. More...
#include <CModelProxy.h>
Public Member Functions | |
| CModelProxy () | |
| void | SetModelPtr (imod::IModel *modelPtr) |
| void | ResetModel () |
| virtual bool | AttachObserver (IObserver *observerPtr) |
Attaches model object to observer observerPtr. | |
| virtual void | DetachObserver (IObserver *observerPtr) |
Detaches model object from observer observerPtr. | |
| virtual void | DetachAllObservers () |
| Detaches all attached observers. | |
| virtual bool | IsAttached (const IObserver *observerPtr) const |
Returns true if observer observer is attached to this model object. | |
Public Member Functions inherited from imod::IModel | |
Implementation of the model proxy.
This class can be used to switch model connections behind the proxy.
Definition at line 28 of file CModelProxy.h.
| imod::CModelProxy::CModelProxy | ( | ) |
|
virtual |
Attaches model object to observer observerPtr.
observer will cause an assertion. | observerPtr | observer, cannot be nullptr. |
Implements imod::IModel.
|
virtual |
Detaches all attached observers.
Implements imod::IModel.
|
virtual |
Detaches model object from observer observerPtr.
observer which is not attached to the observer observer will cause an assertion. To prevent this, you can use the isAttached() function. Implements imod::IModel.
|
virtual |
Returns true if observer observer is attached to this model object.
Implements imod::IModel.
| void imod::CModelProxy::ResetModel | ( | ) |
| void imod::CModelProxy::SetModelPtr | ( | imod::IModel * | modelPtr | ) |
© Witold Gantzke and Kirill Lepskiy