ATLAS Offline Software
CurrentEventStore.cxx
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 // $Id$
15 
16 
17 namespace SG {
18 
19 
20 thread_local IProxyDict* CurrentEventStore::m_curStore = nullptr;
21 
22 
27 {
28  return m_curStore;
29 }
30 
31 
37 {
38  IProxyDict* oldstore = m_curStore;
39  m_curStore = store;
40  return oldstore;
41 }
42 
43 
44 } // namespace SG
SGTest::store
TestStore store
Definition: TestStore.cxx:23
CurrentEventStore.h
Hold a pointer to the current event store.
SG
Forward declaration.
Definition: CaloCellPacker_400_500.h:32
SG::CurrentEventStore::setStore
static IProxyDict * setStore(IProxyDict *store)
Set the current store.
Definition: CurrentEventStore.cxx:36
SG::CurrentEventStore::store
static IProxyDict * store()
Fetch the current store.
IProxyDict
A proxy dictionary.
Definition: AthenaKernel/AthenaKernel/IProxyDict.h:47
SG::CurrentEventStore::m_curStore
static thread_local IProxyDict * m_curStore
The current event store.
Definition: SGTools/SGTools/CurrentEventStore.h:70
SG::CurrentEventStore::storeOol
static IProxyDict * storeOol()
Fetch the current store (out-of-line version).
Definition: CurrentEventStore.cxx:26