|
ACF $AcfVersion:0$
|
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) override |
Attaches model object to observer observerPtr. | |
| virtual void | DetachObserver (IObserver *observerPtr) override |
Detaches model object from observer observerPtr. | |
| virtual void | DetachAllObservers () override |
| Detaches all attached observers. | |
| virtual bool | IsAttached (const IObserver *observerPtr) const override |
Returns true if observer observer is attached to this model object. | |
Public Member Functions inherited from istd::IPolymorphic | |
| virtual | ~IPolymorphic () |
Implementation of the model proxy.
This class can be used to switch model connections behind the proxy.
Definition at line 23 of file CModelProxy.h.
| imod::CModelProxy::CModelProxy | ( | ) |
|
overridevirtual |
Attaches model object to observer observerPtr.
observer will cause an assertion. | observerPtr | observer, cannot be NULL. |
Implements imod::IModel.
|
overridevirtual |
Detaches all attached observers.
Implements imod::IModel.
|
overridevirtual |
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.
|
overridevirtual |
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 | ) |