7 #ifndef FILE_STREAM_HPP_ 8 #define FILE_STREAM_HPP_ 11 #include "boost/iostreams/filtering_streambuf.hpp" 12 #include "boost/scoped_ptr.hpp" 13 #include "boost/utility/string_ref.hpp" 25 typedef boost::scoped_ptr<std::ofstream> ofs_ptr;
26 typedef boost::scoped_ptr<std::ostream> os_ptr;
27 typedef boost::iostreams::filtering_ostreambuf fosb_t;
28 typedef boost::scoped_ptr<fosb_t> fosb_ptr;
30 static fosb_t* make_fosb(
35 static std::ios_base::openmode guess_mode(
36 const std::ios_base::openmode mode,
47 const std::ios_base::openmode mode = (std::ios_base::openmode)0
50 std::ostream& ostream() {
return os_;}
53 std::string
const& descr,
54 Seq_record::sequence
const& seq
58 std::string
const& descr,
59 const boost::string_ref seq
63 std::string
const& descr,
68 std::string
const& descr,
69 Seq_record::sequence
const& seq,
83 typedef boost::scoped_ptr<std::istream> is_ptr;
84 typedef boost::scoped_ptr<std::ifstream> ifs_ptr;
85 typedef boost::iostreams::filtering_istreambuf fisb_t;
86 typedef boost::scoped_ptr<fisb_t> fisb_ptr;
88 static fisb_t* make_fisb(
102 std::istream& istream() {
return is_;}
103 bool good()
const {
return is_;}
Format
File format types.
Definition: file_properties.hpp:42
Definition: file_stream.hpp:82
Definition: sequence_record.hpp:35
Definition: file_stream.hpp:94
Compression
File compression types.
Definition: file_properties.hpp:19
Main namespace of vdj_pipe library.
Definition: sequence_file.hpp:14
Definition: file_stream.hpp:41
Definition: exception.hpp:23
Definition: file_stream.hpp:24
File target is created if needed at construction time.
Definition: file.hpp:105