ACF $AcfVersion:0$
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

typedef icomp::TComponentCloneWrap< imod::TModelWrap< Base > > BaseClass
 
- Public Types inherited from imod::TModelWrap< Base >
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
 

Protected Member Functions

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

Additional Inherited Members

- Public Member Functions inherited from icomp::TComponentCloneWrap< imod::TModelWrap< Base > >
virtual istd::IChangeableUniquePtr CloneMe (istd::IChangeable::CompatibilityMode mode=istd::IChangeable::CM_WITHOUT_REFS) const override
 
- Public Member Functions inherited from imod::TModelWrap< Base >
 TModelWrap ()
 
void SetBaseObject (const Base &baseObject)
 
virtual int GetSupportedOperations () const override
 
virtual void BeginChanges (const istd::IChangeable::ChangeSet &changeSet) override
 
virtual void EndChanges (const istd::IChangeable::ChangeSet &changeSet) override
 
virtual void BeginChangeGroup (const istd::IChangeable::ChangeSet &changeSet) override
 
virtual void EndChangeGroup (const istd::IChangeable::ChangeSet &changeSet) override
 
- Public Member Functions inherited from iser::TCopySerializedWrap< Base >
virtual bool CopyFrom (const istd::IChangeable &object, istd::IChangeable::CompatibilityMode mode=istd::IChangeable::CM_WITHOUT_REFS) override
 
virtual bool IsEqual (const istd::IChangeable &object) const override
 
- Public Member Functions inherited from imod::CModelBase
 CModelBase ()
 
virtual ~CModelBase ()
 
virtual int GetObserverCount () const
 Returns count of connected observers.
 
virtual Observers GetObservers () const
 Returns set of all observers.
 
istd::IChangeable::ChangeSet GetCumulatedChanges () const
 
virtual bool AttachObserver (imod::IObserver *observerPtr) override
 Attaches model object to observer observerPtr.
 
virtual void DetachObserver (imod::IObserver *observerPtr) override
 Detaches model object from observer observerPtr.
 
virtual void DetachAllObservers () override
 Detaches all attached observers.
 
virtual bool IsAttached (const imod::IObserver *observerPtr) const override
 Returns true if observer observer is attached to this model object.
 
- 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.
 
- 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.
 
static QByteArray JoinId (const QByteArray &baseId, const QByteArray &subId)
 Join base component ID and sub ID into composed component ID.
 

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 23 of file TModelCompWrap.h.

Member Typedef Documentation

◆ BaseClass

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

Definition at line 26 of file TModelCompWrap.h.

Member Function Documentation

◆ OnComponentDestroyed()

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

Definition at line 44 of file TModelCompWrap.h.

References imod::CModelBase::DetachAllObservers().


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