ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Control
StoreGate
StoreGate
WriteCondHandleKey.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_WRITECONDHANDLEKEY_H
6
#define STOREGATE_WRITECONDHANDLEKEY_H
7
8
9
#include "
StoreGate/CondHandleKey.h
"
10
11
#include <concepts>
12
13
14
namespace
SG
{
15
16
template
<
class
T>
17
class
WriteCondHandle
;
18
19
template
<
class
T>
20
class
WriteCondHandleKey
21
:
public
CondHandleKey
<T>
22
{
23
24
friend
class
WriteCondHandle
<T>;
25
26
public
:
27
33
WriteCondHandleKey
(
const
std::string&
key
,
const
std::string&
dbKey
) :
34
CondHandleKey
<T>(
key
,
dbKey
,
Gaudi
::DataHandle::Writer)
35
{}
36
43
explicit
WriteCondHandleKey
(
const
std::string&
key
) :
44
CondHandleKey
<T>(
key
,
key
,
Gaudi
::DataHandle::Writer)
45
{}
46
47
60
template
<std::derived_from<IProperty> OWNER>
61
inline
WriteCondHandleKey
( OWNER* owner,
62
std::string name,
63
const
std::string&
key
={},
64
std::string doc=
""
) :
65
WriteCondHandleKey
<T>(
key
) {
66
auto
p = owner->declareProperty(std::move(name), *
this
, std::move(doc));
67
p->template setOwnerType<OWNER>();
68
}
69
70
79
inline
WriteCondHandleKey
&
operator=
(
const
std::string& sgkey) {
80
VarHandleKey::operator=
(sgkey);
81
return
*
this
;
82
}
83
84
};
85
86
}
// namespace SG
87
88
#endif
CondHandleKey.h
SG::CondHandleKey::CondHandleKey
CondHandleKey(const std::string &key, const std::string &dbKey, Gaudi::DataHandle::Mode a)
SG::WriteCondHandleKey< NswCalibDbTimeChargeData >::dbKey
const std::string & dbKey() const
Definition
CondHandleKey.h:31
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::WriteCondHandleKey< NswCalibDbTimeChargeData >::key
const std::string & key() const
Definition
AthToolSupport/AsgDataHandles/Root/VarHandleKey.cxx:141
SG::WriteCondHandleKey
Definition
WriteCondHandleKey.h:22
SG::WriteCondHandleKey::WriteCondHandleKey
WriteCondHandleKey(OWNER *owner, std::string name, const std::string &key={}, std::string doc="")
auto-declaring Property Constructor.
Definition
WriteCondHandleKey.h:61
SG::WriteCondHandleKey::WriteCondHandleKey
WriteCondHandleKey(const std::string &key)
Constructor for WriteCondHandle that takes just a SG key @key StoreGate key.
Definition
WriteCondHandleKey.h:43
SG::WriteCondHandleKey::operator=
WriteCondHandleKey & operator=(const std::string &sgkey)
Change the key of the object to which we're referring.
Definition
WriteCondHandleKey.h:79
SG::WriteCondHandleKey::WriteCondHandleKey
WriteCondHandleKey(const std::string &key, const std::string &dbKey)
Constructor for WriteCondHandle @key StoreGate key @dbKey key in the database.
Definition
WriteCondHandleKey.h:33
SG::WriteCondHandle
Definition
WriteCondHandle.h:26
Gaudi
=============================================================================
Definition
CaloGPUClusterAndCellDataMonitorOptions.h:273
SG
Forward declaration.
Definition
CaloCellPacker_400_500.h:32
Generated on
for ATLAS Offline Software by
1.17.0