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

Makes component and model from some class implementing interface istd::IChangeable. More...

#include <TModelCompWrap.h>

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

Public Types

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

Protected Member Functions

virtual void OnComponentDestroyed ()
- Protected Member Functions inherited from imod::TModelWrap< Base >
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...

Additional Inherited Members

- Public Member Functions inherited from icomp::TComponentCloneWrap< imod::TModelWrap< Base > >
virtual istd::IChangeableCloneMe (istd::IChangeable::CompatibilityMode mode=istd::IChangeable::CM_WITHOUT_REFS) const
- Public Member Functions inherited from imod::TModelWrap< Base >
 TModelWrap ()
void SetBaseObject (const Base &baseObject)
virtual int GetSupportedOperations () 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...
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 ()
- Static Protected Member Functions inherited from icomp::CInterfaceManipBase
template<class Interface >
static Interface * ExtractInterface (IComponent *componentPtr, const QByteArray &subId="")
 Extract interface from component. More...
- Static Protected Member Functions inherited from istd::CIdManipBase
static bool SplitId (const QByteArray &complexId, QByteArray &baseId, QByteArray &subId)
 Split component ID into separated ID's. More...
static QByteArray JoinId (const QByteArray &baseId, const QByteArray &subId)
 Join base component ID and sub ID into composed component ID. More...

Detailed Description

template<class Base>
class icomp::TModelCompWrap< Base >

Makes component and model from some class implementing interface istd::IChangeable.

This model wrapper extends functionality of icomp::TModelWrap for components.

Definition at line 24 of file TModelCompWrap.h.

Member Typedef Documentation

template<class Base >
typedef icomp::TComponentCloneWrap<imod::TModelWrap<Base> > icomp::TModelCompWrap< Base >::BaseClass

Definition at line 27 of file TModelCompWrap.h.

Member Function Documentation

template<class Base >
void icomp::TModelCompWrap< Base >::OnComponentDestroyed ( )

Definition at line 45 of file TModelCompWrap.h.

References imod::CModelBase::DetachAllObservers().

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

© 2007-2017 Witold Gantzke and Kirill Lepskiy