// -*- c++ -*- /*****************************************************************************/ // Copyright (c) Illumina 2008 // Author: Richard Shaw // // 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). /*****************************************************************************/ #ifndef CUM_ERRS_H #define CUM_ERRS_H /*****************************************************************************/ #include #include /*****************************************************************************/ class Cum_Errs { friend std::ostream& operator<<(std::ostream& ostrm, const Cum_Errs&); public: Cum_Errs() :my_num_cycles(0), my_cycle_prefix_ch(0){ } ~Cum_Errs() { } enum { max_to_count = 5 }; void set_num_cycles(const unsigned int num_cycles); std::valarray& vals() { return my_cum_errs; } void set_cycle_prefix_ch(char cycle_prefix_ch) { my_cycle_prefix_ch = cycle_prefix_ch; } private: std::valarray my_cum_errs; unsigned int my_num_cycles; char my_cycle_prefix_ch; }; /*****************************************************************************/ std::ostream& operator<<(std::ostream& ostrm, const Cum_Errs& cum_errs); /*****************************************************************************/ #endif // ! CUM_ERRS_H /*****************************************************************************/