Public Member Functions | List of all members
imod::CModelProxy Class Reference

Implementation of the model proxy. More...

#include <CModelProxy.h>

Inheritance diagram for imod::CModelProxy:
imod::IModel istd::IPolymorphic

Public Member Functions

 CModelProxy ()
 
void SetModelPtr (imod::IModel *modelPtr)
 
void ResetModel ()
 
virtual bool AttachObserver (IObserver *observerPtr)
 Attaches model object to observer observerPtr. More...
 
virtual void DetachObserver (IObserver *observerPtr)
 Detaches model object from observer observerPtr. More...
 
virtual void DetachAllObservers ()
 Detaches all attached observers. More...
 
virtual bool IsAttached (const IObserver *observerPtr) const
 Returns true if observer observer is attached to this model object. More...
 
- Public Member Functions inherited from istd::IPolymorphic
virtual ~IPolymorphic ()
 

Detailed Description

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.

Constructor & Destructor Documentation

imod::CModelProxy::CModelProxy ( )

Member Function Documentation

virtual bool imod::CModelProxy::AttachObserver ( IObserver observerPtr)
virtual

Attaches model object to observer observerPtr.

Warning
Please note, that double call of this function for the same observer will cause an assertion.
Parameters
observerPtrobserver, cannot be NULL.

Implements imod::IModel.

virtual void imod::CModelProxy::DetachAllObservers ( )
virtual

Detaches all attached observers.

Implements imod::IModel.

virtual void imod::CModelProxy::DetachObserver ( IObserver observerPtr)
virtual

Detaches model object from observer observerPtr.

Warning
Please note, that call of this function for the 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 bool imod::CModelProxy::IsAttached ( const IObserver observerPtr) const
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)

The documentation for this class was generated from the following file:

© 2007-2017 Witold Gantzke and Kirill Lepskiy