88
99/* !\file
1010 * \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 >
1212 */
1313
1414#pragma once
1515
1616#include < filesystem>
1717
1818#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>
2120#include < bio/map_io/header.hpp>
2221#include < bio/map_io/reader_options.hpp>
2322
@@ -28,13 +27,15 @@ namespace bio::map_io
2827// reader
2928// ----------------------------------------------------------------------------
3029
31- /* !\brief A class for reading sam files, namely SAM, BAM.
30+ /* !\brief A class for reading sam files, SAM, BAM.
3231 * \tparam options_t A specialisation of bio::map_io::reader_options.
3332 * \ingroup map_io
3433 *
3534 * \details
3635 *
3736 * TODO
37+ *
38+ * For more advanced options, see bio::map_io::reader_options.
3839 */
3940template <typename ... option_args_t >
4041class reader : public reader_base <reader_options<option_args_t ...>>
@@ -73,21 +74,21 @@ class reader : public reader_base<reader_options<option_args_t...>>
7374 // clang-format off
7475 // !\copydoc bio::reader_base::reader_base(std::istream & str, format_type const & fmt, options_t const & opt = options_t{})
7576 // clang-format on
76- reader (std::istream & stream ,
77+ reader (std::istream & str ,
7778 format_type const & fmt,
7879 reader_options<option_args_t ...> const & opt = reader_options<option_args_t ...>{}) :
79- base_t {stream , fmt, opt}
80+ base_t {str , fmt, opt}
8081 {}
8182
8283 // !\overload
8384 template <movable_istream temporary_stream_t >
8485 // !\cond REQ
8586 requires (!std::is_lvalue_reference_v<temporary_stream_t >)
8687 // !\endcond
87- reader (temporary_stream_t && stream ,
88+ reader (temporary_stream_t && str ,
8889 format_type const & fmt,
8990 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}
9192 {}
9293
9394 // !\brief Access the header.
0 commit comments