ATLAS Offline Software
|
#include <SignalStateHelper.h>
Public Member Functions | |
SignalStateHelper () | |
Empty Constructor. More... | |
SignalStateHelper (ISignalState *theObject) | |
Constructor with initialization. More... | |
SignalStateHelper (P4SignalState::State s) | |
SignalStateHelper (ISignalState *theObject, P4SignalState::State s) | |
~SignalStateHelper () | |
Destructor. More... | |
bool | setSignalState (P4SignalState::State s) |
Change the signal state for future operations. More... | |
bool | resetSignalState () |
Reset the Signal State of the controlled object and use it for future operations. More... | |
bool | controlObject (ISignalState *theObject) |
Change the object controlled, this releases previous object and resets its SigState. More... | |
bool | releaseObject () |
Release controled object (this resets its signal state) More... | |
Protected Attributes | |
P4SignalState::State | m_originalState |
Storage of the states. More... | |
P4SignalState::State | m_currentState |
ISignalState * | m_object |
Pointer to the owned object. More... | |
Simple helper class which allows "safe" signal state switching. As soon as the helper goes out of scope, the wrapped object is returned to its original SignalState.
Definition at line 24 of file SignalStateHelper.h.
SignalStateHelper::SignalStateHelper | ( | ) |
SignalStateHelper::SignalStateHelper | ( | ISignalState * | theObject | ) |
SignalStateHelper::SignalStateHelper | ( | P4SignalState::State | s | ) |
Definition at line 36 of file SignalStateHelper.cxx.
SignalStateHelper::SignalStateHelper | ( | ISignalState * | theObject, |
P4SignalState::State | s | ||
) |
Definition at line 44 of file SignalStateHelper.cxx.
SignalStateHelper::~SignalStateHelper | ( | ) |
bool SignalStateHelper::controlObject | ( | ISignalState * | theObject | ) |
Change the object controlled, this releases previous object and resets its SigState.
Change the object controlled.
Definition at line 61 of file SignalStateHelper.cxx.
bool SignalStateHelper::releaseObject | ( | ) |
Release controled object (this resets its signal state)
Definition at line 83 of file SignalStateHelper.cxx.
bool SignalStateHelper::resetSignalState | ( | ) |
Reset the Signal State of the controlled object and use it for future operations.
Definition at line 95 of file SignalStateHelper.cxx.
bool SignalStateHelper::setSignalState | ( | P4SignalState::State | s | ) |
|
protected |
Definition at line 55 of file SignalStateHelper.h.
|
protected |
Pointer to the owned object.
Definition at line 58 of file SignalStateHelper.h.
|
protected |
Storage of the states.
Definition at line 54 of file SignalStateHelper.h.