![]() |
ATLAS Offline Software
|
Helper class for finding the active TStore object. More...
#include <TActiveStore.h>
Static Public Member Functions | |
static TStore * | store () |
Access the currently active TStore object. More... | |
Static Private Member Functions | |
static void | setStore (TStore *ptr) |
Set the active store pointer. More... | |
Friends | |
class | TStore |
Allow the TStore class to register itself at the right time. More... | |
Helper class for finding the active TStore object.
The idea here is very similar to the one in Athena. Some code needs to access the currently "active" store, without receiving a pointer/reference to the store directly. This code always makes sure that the currently active TStore object is returned to the user. (In case multiple TStore objects are being used to read multiple input files at the same time.)
Definition at line 24 of file TActiveStore.h.
|
staticprivate |
Set the active store pointer.
Definition at line 21 of file TActiveStore.cxx.
|
static |
Access the currently active TStore object.
Definition at line 16 of file TActiveStore.cxx.
|
friend |
Allow the TStore class to register itself at the right time.
Definition at line 27 of file TActiveStore.h.