00001 #ifndef DAQFORMATMODULES_DAQFORMATCONVERSIONSVC_H 00002 #define DAQFORMATMODULES_DAQFORMATCONVERSIONSVC_H 00003 00004 /* 00005 * DaqFormatConversionSvc.h 00006 * DaqFormatModules 00007 * 00008 * Created by Simon Patton on 8/5/10. 00009 * Copyright 2010 DayaBay Collaboration. All rights reserved. 00010 * 00011 */ 00012 00013 #include "GaudiKernel/ConversionSvc.h" 00014 00015 namespace DybDaq { 00016 class DaqFormatSelector; 00017 } 00018 00019 namespace DybDaq { 00020 00021 class DaqFormatConversionSvc : public ConversionSvc { 00022 00023 public: 00024 00028 static const long DAQ_FORMAT_DATA = 99; 00029 00033 DaqFormatConversionSvc(const std::string& name, 00034 ISvcLocator* svc); 00035 00039 ~DaqFormatConversionSvc(); 00040 00044 virtual IConverter* createConverter(long svcType, 00045 const CLID& clID, 00046 const ICnvFactory*); 00047 00048 // The following is to be compatible with the generic PersistencySvc properties. 00049 void svcNamesHandler( Property& p ); 00050 00051 private: 00052 00056 DaqFormatConversionSvc(); 00057 00061 DaqFormatConversionSvc(const DaqFormatConversionSvc& rhs); 00062 00066 DaqFormatConversionSvc& operator=(const DaqFormatConversionSvc& rhs); 00067 00068 // The following is to be compatible with the generic PersistencySvc properties. 00069 StringArrayProperty m_svcNames; 00070 00071 }; 00072 00073 } 00074 00075 #endif // DAQFORMATMODULES_DAQFORMATCONVERSIONSVC_H