![]() |
ICF 3.0.5.47
Technical documentation of ICF Libraries
|
This model wrapper provides a simple connection between a concrete istd::IChangeable
implementation and a model.
More...
#include <TModelWrap.h>
Public Types | |
typedef iser::TCopySerializedWrap< Base > | BaseClass |
typedef imod::CModelBase | BaseClass2 |
![]() | |
typedef Base | BaseClass |
![]() | |
typedef QSet< IObserver * > | Observers |
Public Member Functions | |
template<typename... Args> | |
TModelWrap (Args &&... args) | |
void | SetBaseObject (const Base &baseObject) |
int | GetSupportedOperations () const override |
std::unique_ptr< istd::IChangeable > | CloneMe (istd::IChangeable::CompatibilityMode mode=istd::IChangeable::CM_WITHOUT_REFS) const override |
QMutex * | GetChangesLock () const override |
void | BeginChanges (const istd::IChangeable::ChangeSet &changeSet) override |
void | EndChanges (const istd::IChangeable::ChangeSet &changeSet) override |
void | BeginChangeGroup (const istd::IChangeable::ChangeSet &changeSet) override |
void | EndChangeGroup (const istd::IChangeable::ChangeSet &changeSet) override |
![]() | |
template<typename... Args> | |
TCopySerializedWrap (Args &&... args) | |
int | GetSupportedOperations () const override |
bool | CopyFrom (const istd::IChangeable &object, istd::IChangeable::CompatibilityMode mode=istd::IChangeable::CM_WITHOUT_REFS) override |
bool | IsEqual (const istd::IChangeable &object) const override |
![]() | |
CModelBase () | |
virtual | ~CModelBase () |
virtual int | GetObserverCount () const |
Returns count of connected observers. | |
virtual Observers | GetObservers () const |
Returns set of all observers. | |
const istd::IChangeable::ChangeSet & | GetCumulatedChanges () const |
virtual bool | AttachObserver (imod::IObserver *observerPtr) |
Attaches model object to observer observerPtr . | |
virtual void | DetachObserver (imod::IObserver *observerPtr) |
Detaches model object from observer observerPtr . | |
virtual void | DetachAllObservers () |
Detaches all attached observers. | |
virtual bool | IsAttached (const imod::IObserver *observerPtr) const |
Returns true if observer observer is attached to this model object. | |
![]() |
Protected Member Functions | |
void | OnBeginGlobalChanges () override |
Called before global changes will be started. | |
void | OnEndGlobalChanges (const istd::IChangeable::ChangeSet &changeSet) override |
Called after global changes are finished. | |
![]() | |
void | NotifyBeforeChange (const istd::IChangeable::ChangeSet &changeSet, bool isGroup) |
Called before each change. | |
void | NotifyAfterChange (const istd::IChangeable::ChangeSet &changeSet) |
Called after each change. | |
This model wrapper provides a simple connection between a concrete istd::IChangeable
implementation and a model.
Definition at line 27 of file TModelWrap.h.
iser::TCopySerializedWrap<Base> imod::TModelWrap< Base >::BaseClass |
Definition at line 30 of file TModelWrap.h.
imod::CModelBase imod::TModelWrap< Base >::BaseClass2 |
Definition at line 31 of file TModelWrap.h.
|
inline |
Definition at line 34 of file TModelWrap.h.
|
override |
Definition at line 121 of file TModelWrap.h.
|
override |
Definition at line 107 of file TModelWrap.h.
|
override |
Definition at line 85 of file TModelWrap.h.
|
override |
Definition at line 128 of file TModelWrap.h.
|
override |
Definition at line 114 of file TModelWrap.h.
|
override |
Definition at line 100 of file TModelWrap.h.
|
override |
Definition at line 71 of file TModelWrap.h.
References istd::IChangeable::SO_CLONE, and istd::IChangeable::SO_OBSERVE.
|
overrideprotectedvirtual |
Called before global changes will be started.
Implements imod::CModelBase.
Definition at line 139 of file TModelWrap.h.
|
overrideprotectedvirtual |
Called after global changes are finished.
Implements imod::CModelBase.
Definition at line 148 of file TModelWrap.h.
void imod::TModelWrap< Base >::SetBaseObject | ( | const Base & | baseObject | ) |
Definition at line 62 of file TModelWrap.h.
© Witold Gantzke and Kirill Lepskiy