vdj_pipe
pipeline for processing DNA sequence data
|
Select output file based on variables in value map. More...
#include <file_ostream_variant.hpp>
Classes | |
struct | Err |
Public Member Functions | |
File_ostream_variant (const format::Format fmt) | |
File_ostream_variant (std::string const &path, std::string const &unset_element, Value_map const &vm, std::string const &header="", const compression::Compression compr=compression::unknown, format::Format fmt=format::unknown, const std::size_t queue_size=500) | |
File_ostream_variant (std::vector< Val_id > const &var_ids, path_template const &pt, std::string const &unset_element, std::string const &header="", const compression::Compression compr=compression::unknown, format::Format fmt=format::unknown, const std::size_t queue_size=500) | |
File_ostream & | ostream () |
File_ostream & | ostream (Value_map const &vm) |
File_ostream & | ostream (val_vector const &vv) |
std::size_t | size () const |
std::vector< Val_id > const & | variable_ids () const |
Static Public Member Functions | |
static std::string const & | skip_empty () |
Private Member Functions | |
void | init_single (std::string const &path, std::string const &header, const compression::Compression compr, format::Format fmt) |
void | init_queue (std::string const &path, Value_map const &vm, std::string const &header, format::Format fmt, const std::size_t queue_size) |
void | init_queue (path_template const &pt, std::string const &header, format::Format fmt, const std::size_t queue_size) |
Private Attributes | |
value_type | unset_element_ |
bool | skip_empty_ |
std::vector< Val_id > | idv_ |
boost::shared_ptr< File_ostream > | fos_ |
boost::shared_ptr< File_ostream_queue > | fosq_ |
Select output file based on variables in value map.
File_ostream_variant is constructed from a path string that may contain {var } elements, where var is a variable name available from vm value map.
|
private |
|
private |
|
private |
|
private |
vdj_pipe::File_ostream_variant::File_ostream_variant | ( | const format::Format | fmt | ) |
vdj_pipe::File_ostream_variant::File_ostream_variant | ( | std::string const & | path, |
std::string const & | unset_element, | ||
Value_map const & | vm, | ||
std::string const & | header = "" , |
||
const compression::Compression | compr = compression::unknown , |
||
format::Format | fmt = format::unknown , |
||
const std::size_t | queue_size = 500 |
||
) |
path | path string that may contain {var } elements, where var is a variable name available from vm value map |
unset_element | |
vm | |
header | |
compr | |
fmt | |
queue_size |
vdj_pipe::File_ostream_variant::File_ostream_variant | ( | std::vector< Val_id > const & | var_ids, |
path_template const & | pt, | ||
std::string const & | unset_element, | ||
std::string const & | header = "" , |
||
const compression::Compression | compr = compression::unknown , |
||
format::Format | fmt = format::unknown , |
||
const std::size_t | queue_size = 500 |
||
) |
|
private |
|
private |
|
private |
|
inline |
File_ostream & vdj_pipe::File_ostream_variant::ostream | ( | Value_map const & | vm | ) |
File_ostream & vdj_pipe::File_ostream_variant::ostream | ( | val_vector const & | vv | ) |
std::size_t vdj_pipe::File_ostream_variant::size | ( | ) | const |
|
inlinestatic |
|
inline |
|
private |
|
private |
|
private |
|
private |
|
private |