|
ACF $AcfVersion:0$
|
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 21 of file CChangeNotifier.h.
|
inlineexplicit |
Constructs the notifier.
| changeablePtr | Your object prepared to change. If it is NULL than this notifier has no function. |
| changeSetPtr | Pointer to set of change flags (its IDs). It cannot be NULL. |
Definition at line 59 of file CChangeNotifier.h.
References istd::IChangeable::BeginChanges(), and NULL.
|
inline |
Definition at line 71 of file CChangeNotifier.h.
References istd::IChangeable::EndChanges(), and NULL.
| 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.