8
8
9
9
/* !\file
10
10
* \brief Provides bio::map_io::reader.
11
- * \author Hannes Hauswedell <hannes.hauswedell AT decode.is >
11
+ * \author Svenja Mehringer <svenja.mehringer AT fu-berlin.de >
12
12
*/
13
13
14
14
#pragma once
15
15
16
16
#include < filesystem>
17
17
18
18
#include < bio/detail/reader_base.hpp>
19
- // #include <bio/format/bcf_input_handler.hpp>
20
- // #include <bio/format/vcf_input_handler.hpp>
19
+ #include < bio/format/sam_input_handler.hpp>
21
20
#include < bio/map_io/header.hpp>
22
21
#include < bio/map_io/reader_options.hpp>
23
22
@@ -28,13 +27,15 @@ namespace bio::map_io
28
27
// reader
29
28
// ----------------------------------------------------------------------------
30
29
31
- /* !\brief A class for reading sam files, namely SAM, BAM.
30
+ /* !\brief A class for reading sam files, SAM, BAM.
32
31
* \tparam options_t A specialisation of bio::map_io::reader_options.
33
32
* \ingroup map_io
34
33
*
35
34
* \details
36
35
*
37
36
* TODO
37
+ *
38
+ * For more advanced options, see bio::map_io::reader_options.
38
39
*/
39
40
template <typename ... option_args_t >
40
41
class reader : public reader_base <reader_options<option_args_t ...>>
@@ -73,21 +74,21 @@ class reader : public reader_base<reader_options<option_args_t...>>
73
74
// clang-format off
74
75
// !\copydoc bio::reader_base::reader_base(std::istream & str, format_type const & fmt, options_t const & opt = options_t{})
75
76
// clang-format on
76
- reader (std::istream & stream ,
77
+ reader (std::istream & str ,
77
78
format_type const & fmt,
78
79
reader_options<option_args_t ...> const & opt = reader_options<option_args_t ...>{}) :
79
- base_t {stream , fmt, opt}
80
+ base_t {str , fmt, opt}
80
81
{}
81
82
82
83
// !\overload
83
84
template <movable_istream temporary_stream_t >
84
85
// !\cond REQ
85
86
requires (!std::is_lvalue_reference_v<temporary_stream_t >)
86
87
// !\endcond
87
- reader (temporary_stream_t && stream ,
88
+ reader (temporary_stream_t && str ,
88
89
format_type const & fmt,
89
90
reader_options<option_args_t ...> const & opt = reader_options<option_args_t ...>{}) :
90
- base_t {std::move (stream ), fmt, opt}
91
+ base_t {std::move (str ), fmt, opt}
91
92
{}
92
93
93
94
// !\brief Access the header.
0 commit comments