| # Gaudi Framework, version v21r7 |

Home |  | Generated: 22 Jan 2010

# RFileCnv.h

Go to the documentation of this file.

    00001 // $Id: RFileCnv.h,v 1.7 2006/11/30 20:51:35 mato Exp $
    00002 #ifndef ROOTHISTCNV_RFILECNV_H
    00003 #define ROOTHISTCNV_RFILECNV_H 1
    00004
    00005 // Include files
    00006 #include "GaudiKernel/NTuple.h"
    00007 #include "RDirectoryCnv.h"
    00008
    00009 class     TFile;
    00010
    00011 namespace RootHistCnv {
    00012
    00023   class RFileCnv : public RDirectoryCnv   {
    00024   public:
    00026     virtual StatusCode createObj  ( IOpaqueAddress* pAddress, DataObject*& refpObject );
    00028     virtual StatusCode createRep( DataObject* pObject, IOpaqueAddress*& refpAddress );
    00030     virtual StatusCode updateRep(IOpaqueAddress* pAddress, DataObject* pObject);
    00032     static const CLID& classID()    {
    00033       return CLID_NTupleFile;
    00034     }
    00035
    00037     RFileCnv( ISvcLocator* svc ) : RDirectoryCnv(svc, classID())    {
    00038     }
    00040     virtual ~RFileCnv();
    00041   protected:
    00042
    00043     TFile *rfile;
    00044
    00045   };
    00046 }    // namespace RootHistCnv
    00047 #endif    // RootHistCnv_RFileCNV_H