SignalBlocker Class Reference

Blocks signals on the given Subject. More...

#include <SignalBlocker.h>

Inheritance diagram for SignalBlocker:

Inheritance graph

List of all members.

Public Member Functions

 SignalBlocker (Subject &subject)


Detailed Description

Blocks signals on the given Subject.

The given Subject will have it's signals blocked when SignalBlocker is constructed. When SignalBlocker is destructed, the state of signal blocking will return to the state it had prior to the construction of SignalBlocker.

A convenience class. The same as SignalEnabler(subject, false).

Warning:
Disabling signals can be very dangerous as it hides details from any attached slots which may be depending on being notified to function properly.
See also:
SignalEnabler, Subject, Subject::signalsEnabled

Definition at line 106 of file SignalBlocker.h.


Constructor & Destructor Documentation

SignalBlocker::SignalBlocker ( Subject subject  )  [explicit]

Creates the RAII object.

Disables signals on the specified Subject.

Parameters:
subject The Subject to disable
Warning:
Disabling signals can be very dangerous as it hides details from any attached slots which may depend on being notified to function properly.

Definition at line 119 of file SignalBlocker.h.


Software Development Kit - Opticks 4.9.0 Build 16218