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

H2DCnv.h

Go to the documentation of this file.
00001 
00002 #ifndef ROOTHISTCNV_H2DCNV_H
00003 #define ROOTHISTCNV_H2DCNV_H 1
00004 
00005 
00006 // Include files
00007 #include "GaudiKernel/Converter.h"
00008 
00009 #include <string>
00010 
00011 // Forward declarations
00012 class     ISvcLocator;
00013 class     IHistogram2D;
00014 template <class TYPE> class CnvFactory;
00015 
00016 
00017 //------------------------------------------------------------------------------
00018 //
00019 // ClassName:   RootHistCnv::H2DCnv
00020 //  
00021 // Description: Converter of 2-dimensional histogram with fixed binning
00022 //              into ROOT format
00023 //
00024 // Author:      Charles Leggett
00025 //
00026 //------------------------------------------------------------------------------
00027 
00028 
00029 namespace RootHistCnv {
00030   
00031   class H2DCnv : public Converter {
00032 
00033     friend class CnvFactory<H2DCnv>;
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_H2D;
00061       return clid;
00062     }
00063 
00065     static const unsigned char storageType()    {
00066       return ROOT_StorageType;
00067     }
00068 
00069   protected:
00070 
00073     H2DCnv( ISvcLocator* svc )
00074       : Converter( storageType(), classID(), svc )   { 
00075     }
00076 
00078     virtual ~H2DCnv()    { 
00079     }
00080 
00082     StatusCode write( std::string hid, IHistogram2D* h, IOpaqueAddress*& refpAddress );
00083   };
00084 
00085 }    // namespace RootHistCnv
00086 
00087 #endif    // ROOTHISTCNV_H2DCNV_H

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