Loading [MathJax]/extensions/tex2jax.js
The Gaudi Framework  v31r0 (aeb156f0)
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
RootUtils.h
Go to the documentation of this file.
1 #ifndef GAUDIROOTCNV_ROOTUTILS_H
2 #define GAUDIROOTCNV_ROOTUTILS_H
3 
4 // Framework include files
5 //#include "GaudiKernel/DataObject.h"
6 
7 // Forward declarations
8 class DataObject;
9 
10 // Functions imported from GaudiKernel
11 namespace GaudiRoot {
12  void popCurrentDataObject();
13  void pushCurrentDataObject( DataObject** pobjAddr );
14 } // namespace GaudiRoot
15 
16 namespace {
17 
27  struct DataObjectPush {
29  DataObject* m_p;
31  DataObjectPush( DataObject* p ) : m_p( p ) { GaudiRoot::pushCurrentDataObject( &m_p ); }
33  ~DataObjectPush() { GaudiRoot::popCurrentDataObject(); }
34  };
35 } // namespace
36 
37 #endif // GAUDIROOTCNV_ROOTUTILS_H
void popCurrentDataObject()
void pushCurrentDataObject(DataObject **pobjAddr)
A DataObject is the base class of any identifiable object on any data store.
Definition: DataObject.h:30