ATLAS Offline Software
|
#include <SignalStateHelper.h>
Public Member Functions | |
SignalStateConstHelper () | |
Empty Constructor. More... | |
SignalStateConstHelper (const ISignalState *theObject) | |
Constructor with initialization. More... | |
SignalStateConstHelper (P4SignalState::State s) | |
SignalStateConstHelper (const ISignalState *theObject, P4SignalState::State s) | |
~SignalStateConstHelper () | |
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 (const 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 74 of file SignalStateHelper.h.
SignalStateConstHelper::SignalStateConstHelper | ( | ) |
SignalStateConstHelper::SignalStateConstHelper | ( | const ISignalState * | theObject | ) |
SignalStateConstHelper::SignalStateConstHelper | ( | P4SignalState::State | s | ) |
Definition at line 129 of file SignalStateHelper.cxx.
SignalStateConstHelper::SignalStateConstHelper | ( | const ISignalState * | theObject, |
P4SignalState::State | s | ||
) |
Definition at line 137 of file SignalStateHelper.cxx.
SignalStateConstHelper::~SignalStateConstHelper | ( | ) |
bool SignalStateConstHelper::controlObject | ( | const ISignalState * | theObject | ) |
Change the object controlled, this releases previous object and resets its SigState.
Change the object controlled.
Definition at line 154 of file SignalStateHelper.cxx.
bool SignalStateConstHelper::releaseObject | ( | ) |
Release controled object (this resets its signal state)
Definition at line 176 of file SignalStateHelper.cxx.
bool SignalStateConstHelper::resetSignalState | ( | ) |
Reset the Signal State of the controlled object and use it for future operations.
Definition at line 188 of file SignalStateHelper.cxx.
bool SignalStateConstHelper::setSignalState | ( | P4SignalState::State | s | ) |
Change the signal state for future operations.
Definition at line 164 of file SignalStateHelper.cxx.
|
protected |
Definition at line 105 of file SignalStateHelper.h.
|
protected |
Pointer to the owned object.
Definition at line 108 of file SignalStateHelper.h.
|
protected |
Storage of the states.
Definition at line 104 of file SignalStateHelper.h.