ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Control
StoreGate
StoreGate
ReadCondHandleKey.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
#ifndef STOREGATE_READCONDHANDLEKEY_H
6
#define STOREGATE_READCONDHANDLEKEY_H
7
8
#include "
StoreGate/CondHandleKey.h
"
9
#include <concepts>
10
#include <string>
11
12
13
namespace
SG
{
14
15
template
<
class
T>
16
class
ReadCondHandle
;
17
18
template
<
class
T>
19
class
ReadCondHandleKey
20
:
public
CondHandleKey
<T>
21
{
22
public
:
23
24
friend
class
ReadCondHandle
<T>;
25
26
explicit
ReadCondHandleKey
(
const
std::string&
key
,
const
std::string&
dbKey
=
""
) :
27
CondHandleKey
<T>(
key
,
dbKey
,
Gaudi
::DataHandle::Reader)
28
{}
29
30
43
template
<std::derived_from<IProperty> OWNER>
44
inline
ReadCondHandleKey
( OWNER* owner,
45
std::string name,
46
const
std::string&
key
={},
47
std::string doc=
""
) :
48
ReadCondHandleKey
<T>(
key
) {
49
auto
p = owner->declareProperty(std::move(name), *
this
, std::move(doc));
50
p->template setOwnerType<OWNER>();
51
}
52
53
62
inline
ReadCondHandleKey
&
operator=
(
const
std::string& sgkey) {
63
VarHandleKey::operator=
(sgkey);
64
return
*
this
;
65
}
66
67
};
68
69
70
}
// namespace SG
71
72
#endif
// not STOREGATE_READCONDHANDLEKEY_H
CondHandleKey.h
SG::CondHandleKey::CondHandleKey
CondHandleKey(const std::string &key, const std::string &dbKey, Gaudi::DataHandle::Mode a)
SG::ReadCondHandleKey< CondAttrListCollection >::dbKey
const std::string & dbKey() const
Definition
CondHandleKey.h:31
SG::ReadCondHandleKey
Definition
ReadCondHandleKey.h:21
SG::ReadCondHandleKey::ReadCondHandleKey
ReadCondHandleKey(const std::string &key, const std::string &dbKey="")
Definition
ReadCondHandleKey.h:26
SG::ReadCondHandleKey::operator=
ReadCondHandleKey & operator=(const std::string &sgkey)
Change the key of the object to which we're referring.
Definition
ReadCondHandleKey.h:62
SG::ReadCondHandleKey::ReadCondHandleKey
ReadCondHandleKey(OWNER *owner, std::string name, const std::string &key={}, std::string doc="")
auto-declaring Property Constructor.
Definition
ReadCondHandleKey.h:44
SG::ReadCondHandle
Definition
ReadCondHandle.h:40
SG::VarHandleKey::operator=
VarHandleKey & operator=(const std::string &sgkey)
Change the key of the object to which we're referring.
Definition
AthToolSupport/AsgDataHandles/Root/VarHandleKey.cxx:68
SG::ReadCondHandleKey< CondAttrListCollection >::key
const std::string & key() const
Definition
AthToolSupport/AsgDataHandles/Root/VarHandleKey.cxx:141
Gaudi
=============================================================================
Definition
CaloGPUClusterAndCellDataMonitorOptions.h:273
SG
Forward declaration.
Definition
CaloCellPacker_400_500.h:32
Generated on
for ATLAS Offline Software by
1.17.0