ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Event
EventKernel
EventKernel
SignalStateHelper.h
Go to the documentation of this file.
1
2
3
/*
4
Copyright (C) 2002-2019 CERN for the benefit of the ATLAS collaboration
5
*/
6
7
#ifndef EVENTKERNEL_SIGNALSTATEHELPER_H
8
#define EVENTKERNEL_SIGNALSTATEHELPER_H
9
10
#include "
EventKernel/ISignalState.h
"
11
#include "
CxxUtils/checker_macros.h
"
12
23
24
class
SignalStateHelper
final
25
{
26
public
:
27
29
SignalStateHelper
();
30
32
SignalStateHelper
(
ISignalState
* theObject);
33
SignalStateHelper
(
P4SignalState::State
s);
34
SignalStateHelper
(
ISignalState
* theObject,
P4SignalState::State
s);
35
37
~SignalStateHelper
();
38
40
bool
setSignalState
(
P4SignalState::State
s) ;
41
43
bool
resetSignalState
() ;
44
46
bool
controlObject
(
ISignalState
* theObject);
47
49
bool
releaseObject
();
50
51
protected
:
52
54
P4SignalState::State
m_originalState
;
55
P4SignalState::State
m_currentState
;
56
58
ISignalState
*
m_object
;
59
60
};
61
62
73
74
class
ATLAS_NOT_THREAD_SAFE
SignalStateConstHelper
final
75
{
76
public
:
77
79
SignalStateConstHelper
();
80
82
SignalStateConstHelper
(
const
ISignalState
* theObject);
83
SignalStateConstHelper
(
P4SignalState::State
s);
84
SignalStateConstHelper
(
const
ISignalState
* theObject,
P4SignalState::State
s);
85
87
~SignalStateConstHelper
();
88
90
bool
setSignalState
(
P4SignalState::State
s) ;
91
93
bool
resetSignalState
() ;
94
96
bool
controlObject
(
const
ISignalState
* theObject);
97
99
bool
releaseObject
();
100
101
protected
:
102
104
P4SignalState::State
m_originalState
;
105
P4SignalState::State
m_currentState
;
106
108
ISignalState
*
m_object
;
109
110
};
111
112
113
#endif
ISignalState.h
checker_macros.h
Define macros for attributes used to control the static checker.
ATLAS_NOT_THREAD_SAFE
#define ATLAS_NOT_THREAD_SAFE
getNoisyStrip() Find noisy strips from hitmaps and write out into xml/db formats
Definition
checker_macros.h:212
ISignalState
ISignalState is an abstract base class providing support for various Signal States to be associated w...
Definition
ISignalState.h:42
SignalStateConstHelper::releaseObject
bool releaseObject()
Release controled object (this resets its signal state).
Definition
SignalStateHelper.cxx:176
SignalStateConstHelper::m_object
ISignalState * m_object
Pointer to the owned object.
Definition
SignalStateHelper.h:108
SignalStateConstHelper::setSignalState
bool setSignalState(P4SignalState::State s)
Change the signal state for future operations.
Definition
SignalStateHelper.cxx:164
SignalStateConstHelper::m_originalState
P4SignalState::State m_originalState
Storage of the states.
Definition
SignalStateHelper.h:104
SignalStateConstHelper::SignalStateConstHelper
SignalStateConstHelper()
Empty Constructor.
Definition
SignalStateHelper.cxx:114
SignalStateConstHelper::m_currentState
P4SignalState::State m_currentState
Definition
SignalStateHelper.h:105
SignalStateConstHelper::controlObject
bool controlObject(const ISignalState *theObject)
Change the object controlled, this releases previous object and resets its SigState.
Definition
SignalStateHelper.cxx:154
SignalStateConstHelper::resetSignalState
bool resetSignalState()
Reset the Signal State of the controlled object and use it for future operations.
Definition
SignalStateHelper.cxx:188
SignalStateHelper::resetSignalState
bool resetSignalState()
Reset the Signal State of the controlled object and use it for future operations.
Definition
SignalStateHelper.cxx:95
SignalStateHelper::~SignalStateHelper
~SignalStateHelper()
Destructor.
Definition
SignalStateHelper.cxx:55
SignalStateHelper::releaseObject
bool releaseObject()
Release controled object (this resets its signal state).
Definition
SignalStateHelper.cxx:83
SignalStateHelper::SignalStateHelper
SignalStateHelper()
Empty Constructor.
Definition
SignalStateHelper.cxx:21
SignalStateHelper::m_object
ISignalState * m_object
Pointer to the owned object.
Definition
SignalStateHelper.h:58
SignalStateHelper::m_originalState
P4SignalState::State m_originalState
Storage of the states.
Definition
SignalStateHelper.h:54
SignalStateHelper::setSignalState
bool setSignalState(P4SignalState::State s)
Change the signal state for future operations.
Definition
SignalStateHelper.cxx:71
SignalStateHelper::controlObject
bool controlObject(ISignalState *theObject)
Change the object controlled, this releases previous object and resets its SigState.
Definition
SignalStateHelper.cxx:61
SignalStateHelper::m_currentState
P4SignalState::State m_currentState
Definition
SignalStateHelper.h:55
P4SignalState::State
State
Definition
ISignalState.h:28
Generated on
for ATLAS Offline Software by
1.17.0