/** ** Copyright (c) 2007-2009 Illumina, Inc. ** ** This software is covered by the "Illumina Genome Analyzer Software ** License Agreement" and the "Illumina Source Code License Agreement", ** and certain third party copyright/licenses, and any user of this ** source file is bound by the terms therein (see accompanying files ** Illumina_Genome_Analyzer_Software_License_Agreement.pdf and ** Illumina_Source_Code_License_Agreement.pdf and third party ** copyright/license notices). ** ** This file is part of the Consensus Assessment of Sequence And VAriation ** (CASAVA) software package. ** ** \file AlignStatsXmlWriter.hh ** ** \brief Writes BCL files and other associated files (filter, position). ** ** \author Roman Petrovski **/ #ifndef CASAVA_STATISTICS_ALIGN_STATS_XML_WRITER_H #define CASAVA_STATISTICS_ALIGN_STATS_XML_WRITER_H #include #include #include #include #include "Stats_Set.h" namespace casava { namespace statistics{ namespace fs=boost::filesystem; class AlignStatsXmlWriter : public boost::noncopyable { fs::path statsFilePath_; std::ofstream os_; boost::property_tree::ptree tree_; public: AlignStatsXmlWriter(const fs::path &statsFilePath); void addTile(const std::string &sampleName, const std::string &barcode, const unsigned int lane, const unsigned int read, const unsigned int tile, const Stats_Set& tileStats); void close(); }; } //namespace statistics } //namespace casava #endif //CASAVA_STATISTICS_ALIGN_STATS_XML_WRITER_H