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;
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
53 std::string
const& descr,
58 std::string
const& descr,
59 const boost::string_ref seq
63 std::string
const& descr,
68 std::string
const& descr,
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;
88 static fisb_t* make_fisb(
103 bool good()
const {
return is_;}
boost::scoped_ptr< std::ostream > os_ptr
Definition: file_stream.hpp:26
ofs_ptr ofs_
Definition: file_stream.hpp:74
Definition: file_stream.hpp:82
Definition: sequence_record.hpp:35
Definition: file_stream.hpp:94
boost::scoped_ptr< std::istream > is_ptr
Definition: file_stream.hpp:83
fosb_ptr fosb_
Definition: file_stream.hpp:75
boost::scoped_ptr< std::ofstream > ofs_ptr
Definition: file_stream.hpp:25
Compression
File compression types.
Definition: file_properties.hpp:19
boost::scoped_ptr< fisb_t > fisb_ptr
Definition: file_stream.hpp:86
Main namespace of vdj_pipe library.
Definition: keywords_variable.hpp:11
Qual_record::quality qual
Definition: match_element_run.cpp:26
std::ostream & ostream()
Definition: file_stream.hpp:50
Definition: file_stream.hpp:41
#define VDJ_PIPE_DECL
Definition: config.hpp:23
std::ostream & os_
Definition: file_stream.hpp:77
is_ptr fisb_is_
Definition: file_stream.hpp:108
std::istream & is_
Definition: file_stream.hpp:109
fisb_ptr fisb_
Definition: file_stream.hpp:107
bool good() const
Definition: file_stream.hpp:103
boost::scoped_ptr< fosb_t > fosb_ptr
Definition: file_stream.hpp:28
std::string sequence
Definition: sequence_record.hpp:29
Definition: exception.hpp:23
boost::iostreams::filtering_istreambuf fisb_t
Definition: file_stream.hpp:85
Definition: file_stream.hpp:24
std::istream & istream()
Definition: file_stream.hpp:102
boost::scoped_ptr< std::ifstream > ifs_ptr
Definition: file_stream.hpp:84
os_ptr fosb_os_
Definition: file_stream.hpp:76
Definition: file_properties.hpp:20
File target is created if needed at construction time.
Definition: file.hpp:105
ifs_ptr ifs_
Definition: file_stream.hpp:106
boost::iostreams::filtering_ostreambuf fosb_t
Definition: file_stream.hpp:27