| # Gaudi Framework, version v21r10p1 |

Home |  | Generated: 29 Jul 2010

# PoolDbNTupleCnv.h

Go to the documentation of this file.

    00001 // $Id: PoolDbNTupleCnv.h,v 1.2 2006/11/30 14:50:44 mato Exp $
    00002 //====================================================================
    00003 // NTuple converter class definition
    00004 //--------------------------------------------------------------------
    00005 //
    00006 //  Author     : M.Frank
    00007 //
    00008 //====================================================================
    00009 #ifndef POOLDB_POOLDBNTUPLECNV_H
    00010 #define POOLDB_POOLDBNTUPLECNV_H 1
    00011
    00012 // Include files
    00013 #include "GaudiPoolDb/PoolDbStatCnv.h"
    00014
    00015 // Forward declarations
    00016 class PoolDbTupleCallback;
    00017 class INTuple;
    00018
    00030 class GAUDI_API PoolDbNTupleCnv: public PoolDbStatCnv {
    00031 protected:
    00033
    00039   StatusCode bindRead(          INTuple*              pTuple,
    00040                                 PoolDbTupleCallback*  call);
    00041
    00043
    00049   StatusCode readData(          INTuple*              pTuple,
    00050                                 PoolDbTupleCallback*  call);
    00051
    00053
    00059   StatusCode bindWrite(         INTuple*              pTuple,
    00060                                 PoolDbTupleCallback*  call);
    00061
    00062 public:
    00064
    00071   PoolDbNTupleCnv(long typ, const CLID& clid, ISvcLocator* svc);
    00072
    00074   virtual ~PoolDbNTupleCnv();
    00075
    00085   virtual StatusCode createRep(   DataObject*       pObject,
    00086                                   IOpaqueAddress*&  refpAddress );
    00087
    00089
    00095   virtual StatusCode fillRepRefs( IOpaqueAddress*   pAddress,
    00096                                   DataObject*       pObject);
    00097
    00106   virtual StatusCode createObj(   IOpaqueAddress*   pAddress,
    00107                                   DataObject*&      refpObject);
    00108
    00117   virtual StatusCode fillObjRefs( IOpaqueAddress*  /* pAddress */,
    00118                                   DataObject*      /* pObject  */)
    00119   {  return StatusCode::SUCCESS;                                      }
    00120
    00128   virtual StatusCode updateObj(   IOpaqueAddress*   pAddress,
    00129                                   DataObject*       pObject);
    00130
    00139   virtual StatusCode updateObjRefs( IOpaqueAddress* /* pAddress */,
    00140                                     DataObject*     /* pObject  */ )
    00141   {  return StatusCode::SUCCESS;                                      }
    00142
    00151   virtual StatusCode updateRep(     IOpaqueAddress* /* pAddress */,
    00152                                     DataObject*     /* pObject  */)
    00153   {  return StatusCode::SUCCESS;                                      }
    00154
    00163   virtual StatusCode updateRepRefs( IOpaqueAddress* /* pAddress */,
    00164                                     DataObject*     /* pObject  */ )
    00165   {  return StatusCode::SUCCESS;                                      }
    00166 };
    00167
    00168 #endif    // POOLDB_POOLDBNTUPLECNV_H