OpendTect  6.3
Public Member Functions | Protected Attributes | List of all members
ChangeNotifyBlocker Class Reference

prevents change notifications coming out of a Monitorable. More...

Public Member Functions

 ChangeNotifyBlocker (const Monitorable &, bool send_notif=true)
 
 ~ChangeNotifyBlocker ()
 
void unBlockNow ()
 
void reBlock ()
 

Protected Attributes

const Monitorableobj_
 
bool unblocked_
 
bool sendnotif_
 

Detailed Description

prevents change notifications coming out of a Monitorable.

Use to stop tons of change notifications going out. Will send an 'Entire object changed' event when it goes out of scope. To prevent that, set send_notif to false.

Constructor & Destructor Documentation

ChangeNotifyBlocker::ChangeNotifyBlocker ( const Monitorable ,
bool  send_notif = true 
)
ChangeNotifyBlocker::~ChangeNotifyBlocker ( )

Member Function Documentation

void ChangeNotifyBlocker::reBlock ( )
void ChangeNotifyBlocker::unBlockNow ( )

Member Data Documentation

const Monitorable& ChangeNotifyBlocker::obj_
protected
bool ChangeNotifyBlocker::sendnotif_
protected
bool ChangeNotifyBlocker::unblocked_
protected

Generated at for the OpendTect seismic interpretation project. Copyright (C): dGB Beheer B. V. 2017