Public Member Functions | List of all members

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. More...
 
 ~CChangeNotifier ()
 
bool IsValid () const
 Check if this pointer is valid. More...
 
void Reset ()
 Call update on attached object and detach it. More...
 
void Abort ()
 Similar like method Reset(), but it tries to avoid the update. More...
 

Detailed Description

Help class which provides the automatic update mechanism of the model.

Note
It should not be overriden.

Definition at line 21 of file CChangeNotifier.h.

Constructor & Destructor Documentation

istd::CChangeNotifier::CChangeNotifier ( IChangeable changeablePtr,
const IChangeable::ChangeSet changeSetPtr = &IChangeable::GetAnyChange() 
)
inlineexplicit

Constructs the notifier.

Parameters
changeablePtrYour object prepared to change. If it is NULL than this notifier has no function.
changeSetPtrPointer to set of change flags (its IDs). It cannot be NULL.

Definition at line 58 of file CChangeNotifier.h.

References istd::IChangeable::BeginChanges(), and NULL.

istd::CChangeNotifier::~CChangeNotifier ( )
inline

Definition at line 70 of file CChangeNotifier.h.

References istd::IChangeable::EndChanges(), and NULL.

Member Function Documentation

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

Check if this pointer is valid.

It will be invalid after Reset() and Abort() only.

void istd::CChangeNotifier::Reset ( )

Call update on attached object and detach it.


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

© 2007-2017 Witold Gantzke and Kirill Lepskiy