[atlas] / offline / TestBeam / TBCnv / TBCnv / TBDataCnv.h Repository:
ViewVC logotype

View of /offline/TestBeam/TBCnv/TBCnv/TBDataCnv.h

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.5 - (download) (annotate)
Tue Feb 10 17:44:16 2009 UTC (4 years, 4 months ago) by pavol
Branch: MAIN
CVS Tags: TBCnv-00-03-13, TBCnv-00-03-14, HEAD
Changes since 1.4: +1 -1 lines
gcc43 warnings fix
//Dear emacs, this is -*- c++ -*-
#ifndef TESTBEAM_BYTESTREAM_DATA_CNV
#define TESTBEAM_BYTESTREAM_DATA_CNV


#include "TBCnv/TBByteStreamCnvTool.h"
#include "GaudiKernel/Converter.h"

// Abstract factory to create the converter
template <class TYPE> class CnvFactory;

// Externals 
extern unsigned char ByteStream_StorageType;

template< class DATATYPE > 
class TBDataCnv: public Converter {
  friend class CnvFactory<TBDataCnv>;

 protected:
  TBDataCnv(ISvcLocator* svcloc);


 public:

  virtual StatusCode initialize();
  virtual StatusCode createObj(IOpaqueAddress* pAddr, DataObject*& pObj); 
  virtual StatusCode createRep(DataObject* pObj, IOpaqueAddress*& pAddr);

  /// Storage type and class ID
  virtual long repSvcType() const { return ByteStream_StorageType; }
  static  long storageType()     { return ByteStream_StorageType; }
  static const CLID& classID();

 private:
  TBByteStreamCnvTool* m_tool;  //Tool that does the actual conversion

};

#include "TBCnv/TBDataCnv.icc"

#endif

CERN Central CVS service
ViewVC Help
Powered by ViewVC 1.0.9