2 Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
5 * @file AsgDataHandles/ReadHandleKey.icc
6 * @author Nils Krumnack <Nils.Erik.Krumnack@cern.h>
7 * @author scott snyder <snyder@bnl.gov> (for original version)
8 * @brief Property holding a SG store/key/clid from which a ReadHandle is made.
17 * @param key The StoreGate key for the object.
18 * @param storeName Name to use for the store, if it's not encoded in sgkey.
20 * The provided key may actually start with the name of the store,
21 * separated by a "+": "MyStore+Obj". If no "+" is present
22 * the store named by @c storeName is used.
25 ReadHandleKey<T>::ReadHandleKey (const std::string& key)
27 // : VarHandleKey (ClassID_traits<T>::ID(), key,
28 // Gaudi::DataHandle::Reader,
35 * @brief Auto-declaring Property constructor.
36 * @param owner Owning component.
37 * @param name Name of the Property.
38 * @param key Default StoreGate key for the object.
39 * @param doc Documentation string.
41 * Will associate the named Property with this RHK via declareProperty.
43 * The provided key may actually start with the name of the store,
44 * separated by a "+": "MyStore+Obj". If no "+" is present
45 * the store named by @c storeName is used.
48 template <class OWNER, class K>
50 ReadHandleKey<T>::ReadHandleKey( OWNER* owner,
51 const std::string& name,
52 const K& key /* ={}*/,
53 const std::string& doc /*= ""*/)
54 : ReadHandleKey<T>( key )
56 owner->declareProperty(name, *this, doc);
61 * @brief Change the key of the object to which we're referring.
62 * @param sgkey The StoreGate key for the object.
64 * The provided key may actually start with the name of the store,
65 * separated by a "+": "MyStore+Obj". If no "+" is present,
66 * the store is not changed.
69 ReadHandleKey<T>& ReadHandleKey<T>::operator= (const std::string& sgkey)
71 VarHandleKey::operator= (sgkey);