The Gaudi Framework  master (b9786168)
Loading...
Searching...
No Matches
RootUtils.h
Go to the documentation of this file.
1/***********************************************************************************\
2* (c) Copyright 1998-2025 CERN for the benefit of the LHCb and ATLAS collaborations *
3* *
4* This software is distributed under the terms of the Apache version 2 licence, *
5* copied verbatim in the file "LICENSE". *
6* *
7* In applying this licence, CERN does not waive the privileges and immunities *
8* granted to it by virtue of its status as an Intergovernmental Organization *
9* or submit itself to any jurisdiction. *
10\***********************************************************************************/
11#pragma once
12
13// Framework include files
14// #include "GaudiKernel/DataObject.h"
15
16// Forward declarations
17class DataObject;
18
19// Functions imported from GaudiKernel
20namespace GaudiRoot {
22 void pushCurrentDataObject( DataObject** pobjAddr );
23} // namespace GaudiRoot
24
25namespace {
26
36 struct DataObjectPush {
38 DataObject* m_p;
40 DataObjectPush( DataObject* p ) : m_p( p ) { GaudiRoot::pushCurrentDataObject( &m_p ); }
42 ~DataObjectPush() { GaudiRoot::popCurrentDataObject(); }
43 };
44} // namespace
A DataObject is the base class of any identifiable object on any data store.
Definition DataObject.h:37
void popCurrentDataObject()
void pushCurrentDataObject(DataObject **pobjAddr)