| # Gaudi Framework, version v20r4
Generated: 8 Jan 2009

# H2DCnv.h

Go to the documentation of this file.

    00001 // $Header: /tmp/svngaudi/tmp.jEpFh25751/Gaudi/HbookCnv/src/H2DCnv.h,v 1.8 2006/11/30 14:59:27 mato Exp $
    00002 #ifndef HBOOKCNV_H2DCNV_H
    00003 #define HBOOKCNV_H2DCNV_H 1
    00004
    00005
    00006 // Include files
    00007 #include "HConverter.h"
    00008
    00009
    00010 // Forward declarations
    00011 class     ISvcLocator;
    00012 template <class TYPE> class CnvFactory;
    00013
    00014
    00015
    00016 //------------------------------------------------------------------------------
    00017 //
    00018 // ClassName:   HbookCnv::H2DCnv
    00019 //
    00020 // Description: Converter of 2-dimensional histogram with fixed binning
    00021 //              into HBOOK format and back
    00022 //
    00023 // Author:      Pavel Binko
    00024 //
    00025 //------------------------------------------------------------------------------
    00026
    00027
    00028 namespace HbookCnv {
    00029
    00030   class H2DCnv : public HConverter {
    00031     friend class CnvFactory<H2DCnv>;
    00032   public:
    00034     static const CLID& classID()   {
    00035       return CLID_H2D;
    00036     }
    00038     virtual StatusCode createObj(IOpaqueAddress* pAddr, DataObject*& pObj);
    00040     virtual StatusCode updateObj(IOpaqueAddress* pAddr, DataObject* pObj);
    00042     virtual StatusCode updateRep(IOpaqueAddress* pAddr, DataObject* pObj);
    00044     H2DCnv( ISvcLocator* svc ) : HConverter( classID(), svc )   {
    00045       m_prefix = "/stat";
    00046       m_deleteAfterSave = true;
    00047     }
    00049     virtual ~H2DCnv()    {
    00050     }
    00051   protected:
    00053     virtual StatusCode book(IOpaqueAddress* pAddr, DataObject* pObj);
    00054   };
    00055
    00056 }    // namespace HbookCnv
    00057
    00058 #endif    // HBOOKCNV_H2DCNV_H