ATLAS Offline Software
Loading...
Searching...
No Matches
MetaHandleKey.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
3*/
4
5#ifndef STOREGATE_METAHANDLEKEY_H
6#define STOREGATE_METAHANDLEKEY_H
7
12#include "GaudiKernel/ServiceHandle.h"
13#include "GaudiKernel/MsgStream.h"
14#include "GaudiKernel/IClassIDSvc.h"
15
16namespace SG {
17
18 template <class T>
19 class MetaHandleKey : public VarHandleKey {
20
21 public:
22 MetaHandleKey( const std::string& key,
23 const std::string& dbKey,
24 Gaudi::DataHandle::Mode a );
25
26 StatusCode initialize();
27
28 const MetaContBase::SourceID& dbKey() const { return m_dbKey; }
30
31 protected:
32 bool isInit() const { return m_isInit; }
33
34 MetaCont<T>* getContainer ATLAS_NOT_CONST_THREAD_SAFE () const { return m_cont; }
35
37
38 private:
39
42
44
45 bool m_isInit {false};
46
47 };
48
49
50}
51
53
54#endif
static Double_t a
A property holding a SG store/key/clid from which a VarHandle is made.
Define macros for attributes used to control the static checker.
SG::SourceID SourceID
Definition MetaCont.h:26
bool isInit() const
void setDbKey(const MetaContBase::SourceID &dbKey)
MetaCont< T > *getContainer ATLAS_NOT_CONST_THREAD_SAFE() const
ServiceHandle< StoreGateSvc > m_store
StatusCode initialize()
const MetaContBase::SourceID & dbKey() const
MetaContBase::SourceID m_dbKey
MetaHandleKey(const std::string &key, const std::string &dbKey, Gaudi::DataHandle::Mode a)
MetaCont< T > * m_cont
StoreGateSvc * getStore() const
const std::string & key() const
Return the StoreGate ID for the referenced object.
VarHandleKey(CLID clid, const std::string &sgkey, Gaudi::DataHandle::Mode a, const std::string &storeName=StoreID::storeName(StoreID::EVENT_STORE), bool isCond=false)
Constructor.
The Athena Transient Store API.
Forward declaration.