include/bio/detail/writer_base.hpp
writer_base(std::ostream & str, format_type const & fmt, options_t const & opt = options_t{}) :
      options{opt}, stream{str, opt.stream_options}, format{fmt}
    {
        init();
    }
/*!\brief Construct from an existing stream and with specified format.
     * \param[in,out] str The stream to operate on.
     * \param[in] fmt     The file format given as e.g. `format_fasta{}`.
     * \param[in] opt     Writer options (exact type depends on specialisation). [optional]
     *
     * \details
     *
     * ### Decompression
     *
     * This constructor transparently applies a compression stream on top of the file stream in case
     * the extension indicates that you want compression.
     * See the section on compression and decompression for more information.
     */
\brief Construct from an existing stream and with specified format.
\param[in,out] str The stream to operate on.
\param[in] fmt     The file format given as e.g.

\details

Decompression

This constructor transparently applies a compression stream on top of the file stream in case
the extension indicates that you want compression.
See the section on compression and decompression for more information.
\ brief Construct from an existing stream and with specified format . \ param [ in out ] str The stream to operate on . \ param [ in ] fmt The file format given as e . g . \ details Decompression This constructor transparently applies a compression stream on top of the file stream in case the extension indicates that you want compression . See the section on compression and decompression for more information .
writer_base(std::ostream & str, format_type const & fmt, options_t const & opt = options_t{}) :
      options{opt}, stream{str, opt.stream_options}, format{fmt}
    {
        init();
    }
writer_base ( std :: ostream & str , format_type const & fmt , options_t const & opt = options_t { } ) : options { opt } , stream { str , opt . stream_options } , format { fmt } { init ( ) ; }
\brief Construct from an existing stream and with specified format.
\ brief Construct from an existing stream and with specified format .