00001 /* 00002 * DaqFileWriter.cc 00003 * DaqFormatModules 00004 * 00005 * Created by Simon Patton on 8/8/10. 00006 * Copyright 2010 DayaBay Collaboration. All rights reserved. 00007 * 00008 */ 00009 #include "DaqFileWriter.h" 00010 00011 #include "DaqReadoutSvc/IDaqReadoutSvc.h" 00012 #include "FileReadoutFormat/DaqToFStream.h" 00013 00014 using DybDaq::DaqFormatWriter; 00015 using DybDaq::DaqFileWriter; 00016 using DybDaq::DaqToOStream; 00017 using DybDaq::DaqToFStream; 00018 00019 DaqFileWriter::DaqFileWriter(const std::string& name, 00020 ISvcLocator* svc) : 00021 DaqFormatWriter(name, 00022 svc) { 00023 declareProperty("OutputDir", 00024 m_outputDir, 00025 "The directory into which to write the output files"); 00026 } 00027 00028 DaqFileWriter::~DaqFileWriter() { 00029 } 00030 00031 DaqToOStream* DaqFileWriter::createDaqToOStream(const FileTraits& traits) { 00032 return new DaqToFStream(traits, 00033 m_outputDir); 00034 } 00035 00036 void DaqFileWriter::wroteFileHead() { 00037 } 00038 00039 void DaqFileWriter::wroteData() { 00040 } 00041 00042 void DaqFileWriter::wroteFileFoot() { 00043 }