![]() |
ICF 3.0.5.47
Technical documentation of ICF Libraries
|
Help class which provides the automatic update mechanism of the model. More...
#include <CChangeNotifier.h>
Public Member Functions | |
CChangeNotifier (IChangeable *changeablePtr, const IChangeable::ChangeSet *changeSetPtr=&IChangeable::GetAnyChange()) | |
Constructs the notifier. | |
~CChangeNotifier () | |
bool | IsValid () const |
Check if this pointer is valid. | |
void | Reset () |
Call update on attached object and detach it. | |
void | Abort () |
Similar like method Reset(), but it tries to avoid the update. | |
Help class which provides the automatic update mechanism of the model.
Definition at line 24 of file CChangeNotifier.h.
|
inlineexplicit |
Constructs the notifier.
changeablePtr | Your object prepared to change. If it is nullptr than this notifier has no function. |
changeSetPtr | Pointer to set of change flags (its IDs). It cannot be nullptr . |
Definition at line 61 of file CChangeNotifier.h.
References istd::IChangeable::BeginChanges().
|
inline |
Definition at line 73 of file CChangeNotifier.h.
References istd::IChangeable::EndChanges().
void istd::CChangeNotifier::Abort | ( | ) |
Similar like method Reset(), but it tries to avoid the update.
It should be used only if you are sure, that no changes was done, or result will be ignored.
bool istd::CChangeNotifier::IsValid | ( | ) | const |
void istd::CChangeNotifier::Reset | ( | ) |
Call update on attached object and detach it.
© Witold Gantzke and Kirill Lepskiy