vdj_pipe
pipeline for processing DNA sequence data
Classes | Public Member Functions | Private Types | Static Private Member Functions | Private Attributes | List of all members
vdj_pipe::File_ostream Class Reference

#include <file_stream.hpp>

Inheritance diagram for vdj_pipe::File_ostream:
Inheritance graph
[legend]
Collaboration diagram for vdj_pipe::File_ostream:
Collaboration graph
[legend]

Classes

struct  Err
 

Public Member Functions

 File_ostream (const format::Format fmt)
 
 File_ostream (File_output const &fout, const std::ios_base::openmode mode=(std::ios_base::openmode) 0)
 
std::ostream & ostream ()
 
void write (std::string const &descr, Seq_record::sequence const &seq)
 
void write (std::string const &descr, const boost::string_ref seq)
 
void write (std::string const &descr, Qual_record::quality const &qual)
 
void write (std::string const &descr, Seq_record::sequence const &seq, Qual_record::quality const &qual)
 
- Public Member Functions inherited from vdj_pipe::File_output
 File_output (const format::Format fmt)
 
 File_output (std::string const &path, const compression::Compression compr=compression::unknown, const format::Format fmt=format::unknown)
 
- Public Member Functions inherited from vdj_pipe::File
 File (std::string const &path, const compression::Compression compr=compression::unknown, const format::Format fmt=format::unknown)
 
std::string const & path () const
 
format::Format format () const
 
compression::Compression compression () const
 
bool operator== (File const &f2) const
 
bool operator< (File const &f2) const
 

Private Types

typedef boost::scoped_ptr< std::ofstream > ofs_ptr
 
typedef boost::scoped_ptr< std::ostream > os_ptr
 
typedef boost::iostreams::filtering_ostreambuf fosb_t
 
typedef boost::scoped_ptr< fosb_tfosb_ptr
 

Static Private Member Functions

static fosb_tmake_fosb (std::ostream &os, const compression::Compression compr)
 
static std::ios_base::openmode guess_mode (const std::ios_base::openmode mode, const compression::Compression compr)
 

Private Attributes

ofs_ptr ofs_
 
fosb_ptr fosb_
 
os_ptr fosb_os_
 
std::ostream & os_
 

Additional Inherited Members

- Protected Attributes inherited from vdj_pipe::File
std::string path_
 
compression::Compression compr_
 
format::Format fmt_
 

Member Typedef Documentation

typedef boost::scoped_ptr<fosb_t> vdj_pipe::File_ostream::fosb_ptr
private
typedef boost::iostreams::filtering_ostreambuf vdj_pipe::File_ostream::fosb_t
private
typedef boost::scoped_ptr<std::ofstream> vdj_pipe::File_ostream::ofs_ptr
private
typedef boost::scoped_ptr<std::ostream> vdj_pipe::File_ostream::os_ptr
private

Constructor & Destructor Documentation

vdj_pipe::File_ostream::File_ostream ( const format::Format  fmt)
vdj_pipe::File_ostream::File_ostream ( File_output const &  fout,
const std::ios_base::openmode  mode = (std::ios_base::openmode)0 
)
explicit

Member Function Documentation

std::ios_base::openmode vdj_pipe::File_ostream::guess_mode ( const std::ios_base::openmode  mode,
const compression::Compression  compr 
)
staticprivate
File_ostream::fosb_t * vdj_pipe::File_ostream::make_fosb ( std::ostream &  os,
const compression::Compression  compr 
)
staticprivate
std::ostream& vdj_pipe::File_ostream::ostream ( )
inline
void vdj_pipe::File_ostream::write ( std::string const &  descr,
Seq_record::sequence const &  seq 
)
void vdj_pipe::File_ostream::write ( std::string const &  descr,
const boost::string_ref  seq 
)
void vdj_pipe::File_ostream::write ( std::string const &  descr,
Qual_record::quality const &  qual 
)
void vdj_pipe::File_ostream::write ( std::string const &  descr,
Seq_record::sequence const &  seq,
Qual_record::quality const &  qual 
)

Member Data Documentation

fosb_ptr vdj_pipe::File_ostream::fosb_
private
os_ptr vdj_pipe::File_ostream::fosb_os_
private
ofs_ptr vdj_pipe::File_ostream::ofs_
private
std::ostream& vdj_pipe::File_ostream::os_
private

The documentation for this class was generated from the following files: