SHORE API
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
qseq.hpp
Go to the documentation of this file.
1 
2 /*
3  * Copyright 2008,2009,2010,2011,2012 Stephan Ossowski, Korbinian Schneeberger,
4  * Felix Ott, Joerg Hagmann, Alf Scotland, Sebastian Bender
5  *
6  * This file is part of SHORE.
7  *
8  * SHORE is free software: you can redistribute it and/or modify
9  * it under the terms of the GNU General Public License as published by
10  * the Free Software Foundation, either version 3 of the License, or
11  * (at your option) any later version.
12  *
13  * SHORE is distributed in the hope that it will be useful,
14  * but WITHOUT ANY WARRANTY; without even the implied warranty of
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16  * GNU General Public License for more details.
17  *
18  * You should have received a copy of the GNU General Public License
19  * along with SHORE. If not, see <http://www.gnu.org/licenses/>.
20  */
21 
25 
26 #ifndef SHORE_IO_QSEQ_HPP__
27 #define SHORE_IO_QSEQ_HPP__
28 
29 #include <string>
30 
32 #include "shore/fmtio/text.hpp"
34 
35 namespace shore {
36 
39 {
40  private:
41 
42  static const std::string QSEQ_COLUMNS;
43 
44  shore::row_reader m_in;
45  std::string m_fn;
46 
47  bool m_rawreads;
48 
49  public:
50 
51  typedef shore::read current_type;
52 
53  basic_qseq_reader(const std::string &fn,const bool rawreads=true);
54 
55  bool next(shore::read & buf);
56 
57  const std::string &get_name() const;
58 };
59 
61  shore::read,shore::read::compare_type> qseq_reader;
62 
65 
66 } // namespace
67 
68 #endif // SHORE_IO_QSEQ_HPP__
69