The Gaudi Framework  v29r0 (ff2e7097)
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 {
13  void popCurrentDataObject();
14  void pushCurrentDataObject( DataObject** pobjAddr );
15 }
16 
17 namespace
18 {
19 
29  struct DataObjectPush {
31  DataObject* m_p;
33  DataObjectPush( DataObject* p ) : m_p( p ) { GaudiRoot::pushCurrentDataObject( &m_p ); }
35  ~DataObjectPush() { GaudiRoot::popCurrentDataObject(); }
36  };
37 }
38 
39 #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:29