ATLAS Offline Software
Loading...
Searching...
No Matches
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
9#include <concepts>
10#include <string>
11
12
13namespace SG {
14
15 template <class T>
16 class ReadCondHandle;
17
18 template <class T>
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="") :
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="") :
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) {
64 return *this;
65 }
66
67};
68
69
70} // namespace SG
71
72#endif // not STOREGATE_READCONDHANDLEKEY_H
an iterator over instances of a given type in StoreGateSvc.
Definition DataHandle.h:43
CondHandleKey(const std::string &key, const std::string &dbKey, Gaudi::DataHandle::Mode a)
ReadCondHandleKey(const std::string &key, const std::string &dbKey="")
ReadCondHandleKey & operator=(const std::string &sgkey)
Change the key of the object to which we're referring.
ReadCondHandleKey(OWNER *owner, std::string name, const std::string &key={}, std::string doc="")
auto-declaring Property Constructor.
VarHandleKey & operator=(const std::string &sgkey)
Change the key of the object to which we're referring.
=============================================================================
Forward declaration.