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

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

Public Member Functions

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

Protected Attributes

const MonitoredObjectobj_
 
bool sendnotif_
 
bool unblocked_
 

Detailed Description

prevents change notifications coming out of a MonitoredObject.

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::ChangeNotifyBlocker ( const MonitoredObject ,
bool  send_notif = true 
)

◆ ~ChangeNotifyBlocker()

ChangeNotifyBlocker::~ChangeNotifyBlocker ( )

Member Function Documentation

◆ reBlock()

void ChangeNotifyBlocker::reBlock ( )

◆ unBlockNow()

void ChangeNotifyBlocker::unBlockNow ( )

Member Data Documentation

◆ obj_

const MonitoredObject& ChangeNotifyBlocker::obj_
protected

◆ sendnotif_

bool ChangeNotifyBlocker::sendnotif_
protected

◆ unblocked_

bool ChangeNotifyBlocker::unblocked_
protected

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