7 #ifndef FILE_OSTREAM_QUEUE_HPP_ 8 #define FILE_OSTREAM_QUEUE_HPP_ 10 #include "boost/multi_index_container.hpp" 11 #include "boost/multi_index/hashed_index.hpp" 12 #include "boost/multi_index/member.hpp" 13 #include "boost/multi_index/sequenced_index.hpp" 14 #include "boost/range.hpp" 15 #include "boost/shared_ptr.hpp" 26 typedef detail::Queable_ofstream_types::value_type value_type;
27 typedef detail::Queable_ofstream_types::val_vector val_vector;
28 typedef detail::Queable_ofstream_types::val_ref_vector val_ref_vector;
29 typedef detail::Queable_ofstream_types::path_template path_template;
33 static std::string make_path(
34 path_template
const& templ,
35 val_ref_vector
const& vals,
36 std::string
const& header
40 path_template
const& templ,
41 val_ref_vector
const& vals,
43 std::string
const& header
54 typedef detail::Queable_ofstream_types::val_vector val_vector;
55 typedef detail::Queable_ofstream_types::path_template path_template;
57 typedef boost::multi_index_container<
59 boost::multi_index::indexed_by<
60 boost::multi_index::sequenced<>,
61 boost::multi_index::hashed_unique<
62 boost::multi_index::member<
63 Queable_ofstream, val_vector, &Queable_ofstream::sv_
68 typedef map_t::iterator seq_iterator;
69 typedef map_t::nth_index<1>::type index;
70 typedef index::iterator hash_iterator;
71 typedef index::const_iterator hash_citerator;
74 typedef detail::Queable_ofstream_types::val_ref_vector val_ref_vector;
75 typedef detail::Queable_ofstream_types::value_type value_type;
81 std::string
const& header =
"",
83 const std::size_t sz = 100
85 : pt_(boost::begin(r), boost::end(r)),
89 fmt == format::unknown ?
97 std::size_t size()
const {
return vm_.size();}
Format
File format types.
Definition: file_properties.hpp:42
Definition: file_ostream_queue.hpp:31
Main namespace of vdj_pipe library.
Definition: sequence_file.hpp:14
VDJ_PIPE_DECL std::pair< compression::Compression, format::Format > guess_compression_format(std::string const &path)
Definition: file_ostream_queue.hpp:25
Definition: file_ostream_queue.hpp:77
stack of recently used output file streams
Definition: file_ostream_queue.hpp:53
Definition: exception.hpp:23
Definition: file_stream.hpp:24