Main Page   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   File Members  

H1DVarCnv.h

Go to the documentation of this file.
00001 // $Header: /nfs/slac/g/glast/ground/cvs/RootHistCnv/src/H1DVarCnv.h,v 1.1.1.1 2001/04/18 19:17:51 tlindner Exp $
00002 #ifndef ROOTHISTCNV_H1DVARCNV_H
00003 #define ROOTHISTCNV_H1DVARCNV_H 1
00004 
00005 
00006 // Include files
00007 #include "GaudiKernel/Converter.h"
00008 
00009 
00010 // Forward declarations
00011 class     ISvcLocator;
00012 class     IHistogram1D;
00013 template <class TYPE> class CnvFactory;
00014 
00015 
00016 
00017 //------------------------------------------------------------------------------
00018 //
00019 // ClassName:   RootHistCnv::H1DVarCnv
00020 //  
00021 // Description: Converter of 1-dimensional histogram with fixed binning
00022 //              into ROOT format
00023 //
00024 // Author:      Charles Leggett
00025 //
00026 //------------------------------------------------------------------------------
00027 
00028 
00029 namespace RootHistCnv {
00030 
00031   class H1DVarCnv : public Converter {
00032 
00033     friend class CnvFactory<H1DVarCnv>;
00034 
00035   public:
00037     virtual StatusCode createObj( IOpaqueAddress* /* pAddress   */ ,
00038                                   DataObject*&    /* refpObject */ )   {
00039       return StatusCode::FAILURE;
00040     }
00041 
00043     virtual StatusCode updateObj( IOpaqueAddress* /* pAddress   */,
00044                                   DataObject*     /* refpObject */ )  {
00045       return StatusCode::FAILURE;
00046     }
00047 
00049     virtual StatusCode createRep( DataObject*      pObject     ,
00050                                   IOpaqueAddress*& refpAddress );
00051 
00053     virtual StatusCode updateRep( IOpaqueAddress* /* pAddress   */ ,
00054                                   DataObject*     /* pObject    */ )   {
00055       return StatusCode::FAILURE;
00056     }
00057 
00059     static const CLID& classID()   {
00060       static CLID clid = CLID_H1DVar;
00061       return clid;
00062     }
00063 
00065     static const unsigned char storageType()  {
00066       return ROOT_StorageType;
00067     }
00068 
00069   protected:
00070 
00073     H1DVarCnv( ISvcLocator* svc )
00074     : Converter( storageType(), classID(), svc )  { 
00075     }
00076 
00078     virtual ~H1DVarCnv()  { 
00079     }
00080 
00082     StatusCode write( int hid, IHistogram1D* h, IOpaqueAddress*& refpAddress );
00083 
00084   };
00085 
00086 }    // namespace RootHistCnv
00087 
00088  
00089 #endif    // RootHistCnv_H1DVARCNV_H

Generated at Wed Nov 21 12:20:49 2001 by doxygen1.2.3 written by Dimitri van Heesch, © 1997-2000