| # Gaudi Framework, version v20r3
Generated: 24 Nov 2008

# H1DCnv.h

Go to the documentation of this file.

    00001 // $Header: /local/reps/Gaudi/HbookCnv/src/H1DCnv.h,v 1.8 2006/11/30 14:59:27 mato Exp $
    00002 #ifndef HBOOKCNV_H1DCNV_H
    00003 #define HBOOKCNV_H1DCNV_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::H1DCnv
    00019 //
    00020 // Description: Converter of 1-dimensional histogram
    00021 //              (with fixed or variable binning)
    00022 //              into HBOOK format and back
    00023 //
    00024 // Author:      Pavel Binko
    00025 // Author:      Grigori Rybkine
    00026 //
    00027 //------------------------------------------------------------------------------
    00028 namespace HbookCnv {
    00029
    00030   class H1DCnv : public HConverter {
    00031     friend class CnvFactory<H1DCnv>;
    00032   public:
    00034     static const CLID& classID()     {
    00035       return CLID_H1D;
    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);
    00043
    00045     H1DCnv( ISvcLocator* svc ) : HConverter( classID(), svc )  {
    00046       m_prefix = "/stat";
    00047       m_deleteAfterSave = true;
    00048     }
    00050     H1DCnv( const CLID& clid, ISvcLocator* svc ) : HConverter( clid, svc )  {
    00051       m_prefix = "/stat";
    00052       m_deleteAfterSave = true;
    00053     }
    00055     virtual ~H1DCnv()  {
    00056     }
    00057   protected:
    00059     virtual StatusCode book(IOpaqueAddress* pAddr, DataObject* pObj);
    00060   };
    00061 }    // namespace HbookCnv
    00062 #endif    // HBOOKCNV_H1DCNV_H