ACF $AcfVersion:0$
Public Types | Public Member Functions | List of all members
imod::CMultiModelDispatcherBase::ObserverProxy Class Reference

#include <CMultiModelDispatcherBase.h>

Inheritance diagram for imod::CMultiModelDispatcherBase::ObserverProxy:
imod::CSingleModelObserverBase imod::IObserver istd::IPolymorphic

Public Types

typedef CSingleModelObserverBase BaseClass
 
- Public Types inherited from imod::CSingleModelObserverBase
typedef imod::IModel ModelType
 

Public Member Functions

 ObserverProxy (CMultiModelDispatcherBase *parentPtr, int modelId, const istd::IChangeable::ChangeSet &relevantFlags)
 
virtual void OnUpdate (const istd::IChangeable::ChangeSet &changeSet) override
 Called on update of observed model.
 
- Public Member Functions inherited from imod::CSingleModelObserverBase
 CSingleModelObserverBase ()
 
virtual ~CSingleModelObserverBase ()
 
imod::IModelGetObservedModel () const
 Get access to observed model.
 
imod::IModelGetModelPtr () const
 Get access to observed model.
 
void EnsureModelDetached ()
 Make sure this observer is detached.
 
void SetObservedIds (const istd::IChangeable::ChangeSet &changeMask)
 Set list of ID's beeing observed.
 
virtual bool IsModelAttached (const imod::IModel *modelPtr=NULL) const override
 Checks if the specified model is currently attached to this observer.
 
virtual bool OnModelAttached (imod::IModel *modelPtr, istd::IChangeable::ChangeSet &changeMask) override
 Callback invoked when an observable model is about to be attached to this observer.
 
virtual bool OnModelDetached (imod::IModel *modelPtr) override
 Callback invoked when an observable model is about to be detached from this observer.
 
virtual void BeforeUpdate (imod::IModel *modelPtr) override
 Callback invoked before an update of the observer's content occurs.
 
virtual void AfterUpdate (imod::IModel *modelPtr, const istd::IChangeable::ChangeSet &changeSet) override
 Callback invoked after an update of the observer's content occurs.
 
- Public Member Functions inherited from istd::IPolymorphic
virtual ~IPolymorphic ()
 

Additional Inherited Members

- Protected Member Functions inherited from imod::CSingleModelObserverBase
void SetModelPtr (imod::IModel *modelPtr)
 Set internal model pointer to specified value.
 
- Static Protected Attributes inherited from imod::CSingleModelObserverBase
static const istd::IChangeable::ChangeSet s_undoChanges
 

Detailed Description

Definition at line 62 of file CMultiModelDispatcherBase.h.

Member Typedef Documentation

◆ BaseClass

Definition at line 65 of file CMultiModelDispatcherBase.h.

Constructor & Destructor Documentation

◆ ObserverProxy()

imod::CMultiModelDispatcherBase::ObserverProxy::ObserverProxy ( CMultiModelDispatcherBase parentPtr,
int  modelId,
const istd::IChangeable::ChangeSet relevantFlags 
)

Member Function Documentation

◆ OnUpdate()

virtual void imod::CMultiModelDispatcherBase::ObserverProxy::OnUpdate ( const istd::IChangeable::ChangeSet changeSet)
overridevirtual

Called on update of observed model.

This method is designed to be overload by derrived classes.

Reimplemented from imod::CSingleModelObserverBase.


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