ATLAS Offline Software
Loading...
Searching...
No Matches
SGTools/SGTools/CurrentEventStore.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-2017 CERN for the benefit of the ATLAS collaboration
5*/
6
7// $Id$
14
15
16#ifndef SGTOOLS_CURRENTEVENTSTORE_H
17#define SGTOOLS_CURRENTEVENTSTORE_H
18
19class IProxyDict;
20
21
22namespace SG {
23
24
25
37{
38public:
40 static IProxyDict* store();
41
42
44 static IProxyDict* storeOol();
45
46
50
51
57 class Push
58 {
59 public:
62
63 private:
65 };
66
67
68private:
70 static thread_local IProxyDict* m_curStore;
71};
72
73
74} // namespace SG
75
76
78
79
80#endif // not SGTOOLS_CURRENTEVENTSTORE_H
Push(IProxyDict *store)
Hold a pointer to the current event store.
static IProxyDict * store()
Fetch the current store.
static IProxyDict * setStore(IProxyDict *store)
Set the current store.
static IProxyDict * storeOol()
Fetch the current store (out-of-line version).
static thread_local IProxyDict * m_curStore
The current event store.
Forward declaration.