ATLAS Offline Software
Loading...
Searching...
No Matches
AthToolSupport/AsgDataHandles/AsgDataHandles/WriteHandleKey.h
Go to the documentation of this file.
1// This file's extension implies that it's C, but it's really -*- C++ -*-.
2
3/*
4 Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
5*/
6
13
14
15#ifndef ASG_DATA_HANDLES_WRITE_HANDLE_KEY_H
16#define ASG_DATA_HANDLES_WRITE_HANDLE_KEY_H
17
18#ifndef XAOD_STANDALONE
20#else
21
23
24
25namespace SG {
26
27
40template <class T>
42 : public VarHandleKey
43{
44public:
54 WriteHandleKey (const std::string& key = "");
55 // const std::string& storeName = StoreID::storeName(StoreID::EVENT_STORE));
56
57
71 template <class OWNER, class K>
72 inline WriteHandleKey (OWNER* owner,
73 std::string name,
74 const K& key={},
75 std::string doc="");
76
77
86 WriteHandleKey& operator= (const std::string& sgkey);
87};
88
89
90} // namespace SG
91
92
94
95
96#endif
97
98#endif
A property holding a SG store/key/clid from which a VarHandle is made.
Property holding a SG store/key/clid from which a WriteHandle is made.
A property holding a SG store/key/clid from which a VarHandle is made.
const std::string & key() const
Return the StoreGate ID for the referenced object.
Property holding a SG store/key/clid from which a WriteHandle is made.
WriteHandleKey & operator=(const std::string &sgkey)
Change the key of the object to which we're referring.
WriteHandleKey(const std::string &key="", const std::string &storeName=StoreID::storeName(StoreID::EVENT_STORE))
Constructor.
Forward declaration.