Public Types | Public Member Functions | Protected Member Functions | List of all members
imod::TModelWrap< Base > Class Template Reference

This model wrapper provides a simple connection between a concrete istd::IChangeable implementation and a model. More...

#include <TModelWrap.h>

Inheritance diagram for imod::TModelWrap< Base >:
iser::TCopySerializedWrap< Base > imod::CModelBase imod::IModel istd::IPolymorphic icomp::TComponentCloneWrap< imod::TModelWrap< Base > > icomp::TModelCompWrap< Base >

Public Types

typedef
iser::TCopySerializedWrap
< Base > 
BaseClass
 
typedef imod::CModelBase BaseClass2
 
- Public Types inherited from iser::TCopySerializedWrap< Base >
typedef Base BaseClass
 
- Public Types inherited from imod::CModelBase
typedef QSet< IObserver * > Observers
 

Public Member Functions

 TModelWrap ()
 
void SetBaseObject (const Base &baseObject)
 
virtual int GetSupportedOperations () const
 
virtual istd::IChangeableCloneMe (istd::IChangeable::CompatibilityMode mode=istd::IChangeable::CM_WITHOUT_REFS) const
 
virtual void BeginChanges (const istd::IChangeable::ChangeSet &changeSet)
 
virtual void EndChanges (const istd::IChangeable::ChangeSet &changeSet)
 
virtual void BeginChangeGroup (const istd::IChangeable::ChangeSet &changeSet)
 
virtual void EndChangeGroup (const istd::IChangeable::ChangeSet &changeSet)
 
- Public Member Functions inherited from iser::TCopySerializedWrap< Base >
virtual bool CopyFrom (const istd::IChangeable &object, istd::IChangeable::CompatibilityMode mode=istd::IChangeable::CM_WITHOUT_REFS)
 
virtual bool IsEqual (const istd::IChangeable &object) const
 
- Public Member Functions inherited from imod::CModelBase
 CModelBase ()
 
virtual ~CModelBase ()
 
virtual int GetObserverCount () const
 Returns count of connected observers. More...
 
virtual Observers GetObservers () const
 Returns set of all observers. More...
 
const
istd::IChangeable::ChangeSet
GetCumulatedChanges () const
 
virtual bool AttachObserver (imod::IObserver *observerPtr)
 Attaches model object to observer observerPtr. More...
 
virtual void DetachObserver (imod::IObserver *observerPtr)
 Detaches model object from observer observerPtr. More...
 
virtual void DetachAllObservers ()
 Detaches all attached observers. More...
 
virtual bool IsAttached (const imod::IObserver *observerPtr) const
 Returns true if observer observer is attached to this model object. More...
 
- Public Member Functions inherited from istd::IPolymorphic
virtual ~IPolymorphic ()
 

Protected Member Functions

virtual void OnBeginGlobalChanges ()
 Called before global changes will be started. More...
 
virtual void OnEndGlobalChanges (const istd::IChangeable::ChangeSet &changeSet)
 Called after global changes are finished. More...
 
- Protected Member Functions inherited from imod::CModelBase
void NotifyBeforeChange (const istd::IChangeable::ChangeSet &changeSet, bool isGroup)
 Called before each change. More...
 
void NotifyAfterChange (const istd::IChangeable::ChangeSet &changeSet)
 Called after each change. More...
 

Detailed Description

template<class Base>
class imod::TModelWrap< Base >

This model wrapper provides a simple connection between a concrete istd::IChangeable implementation and a model.

Definition at line 24 of file TModelWrap.h.

Member Typedef Documentation

template<class Base>
typedef iser::TCopySerializedWrap<Base> imod::TModelWrap< Base >::BaseClass

Definition at line 27 of file TModelWrap.h.

template<class Base>
typedef imod::CModelBase imod::TModelWrap< Base >::BaseClass2

Definition at line 28 of file TModelWrap.h.

Constructor & Destructor Documentation

template<class Base >
imod::TModelWrap< Base >::TModelWrap ( )

Definition at line 55 of file TModelWrap.h.

Member Function Documentation

template<class Base >
void imod::TModelWrap< Base >::BeginChangeGroup ( const istd::IChangeable::ChangeSet changeSet)
virtual

Definition at line 106 of file TModelWrap.h.

template<class Base >
void imod::TModelWrap< Base >::BeginChanges ( const istd::IChangeable::ChangeSet changeSet)
virtual

Definition at line 92 of file TModelWrap.h.

template<class Base >
istd::IChangeable * imod::TModelWrap< Base >::CloneMe ( istd::IChangeable::CompatibilityMode  mode = istd::IChangeable::CM_WITHOUT_REFS) const
virtual
template<class Base >
void imod::TModelWrap< Base >::EndChangeGroup ( const istd::IChangeable::ChangeSet changeSet)
virtual

Definition at line 113 of file TModelWrap.h.

template<class Base >
void imod::TModelWrap< Base >::EndChanges ( const istd::IChangeable::ChangeSet changeSet)
virtual

Definition at line 99 of file TModelWrap.h.

template<class Base >
int imod::TModelWrap< Base >::GetSupportedOperations ( ) const
virtual

Reimplemented from iser::TCopySerializedWrap< Base >.

Definition at line 70 of file TModelWrap.h.

References istd::IChangeable::SO_CLONE, and istd::IChangeable::SO_OBSERVE.

template<class Base >
void imod::TModelWrap< Base >::OnBeginGlobalChanges ( )
protectedvirtual

Called before global changes will be started.

Implements imod::CModelBase.

Definition at line 124 of file TModelWrap.h.

template<class Base >
void imod::TModelWrap< Base >::OnEndGlobalChanges ( const istd::IChangeable::ChangeSet changeSet)
protectedvirtual

Called after global changes are finished.

Implements imod::CModelBase.

Definition at line 131 of file TModelWrap.h.

template<class Base>
void imod::TModelWrap< Base >::SetBaseObject ( const Base &  baseObject)

Definition at line 61 of file TModelWrap.h.


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

© 2007-2017 Witold Gantzke and Kirill Lepskiy