SHORE API
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
read_processing.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_READ_PROCESSING_HPP__
27 #define SHORE_READ_PROCESSING_HPP__
28 
30 
31 namespace shore {
32 
34 class color2seq
35 {
36  private:
37 
38  shore::read m_current;
39  bool m_hasdata;
40  char m_lut[256];
41 
42  public:
43 
44  typedef shore::read append_type;
45  typedef shore::read current_type;
46 
47 
48  color2seq();
49 
50  const shore::read &current();
51  bool has_data() const;
52  void next();
53  void append(const shore::read &r);
54  void flush();
55 };
56 
58 class pefilter
59 {
60  private:
61 
62  shore::read m_current;
63  bool m_hasdata;
64  const int m_pe;
65 
66  public:
67 
68  typedef shore::read append_type;
69  typedef shore::read current_type;
70 
71 
72  pefilter(const int pe);
73 
74  const shore::read &current();
75  bool has_data() const;
76  void next();
77  void append(const shore::read &r);
78  void flush();
79 };
80 
81 } // namespace
82 
83 #endif // SHORE_READ_PROCESSING_HPP__
84