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

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_ostreamostream ()
 
File_ostreamostream (Value_map const &vm)
 
File_ostreamostream (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 ()
 

Detailed Description

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.

Constructor & Destructor Documentation

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 
)
Parameters
pathpath 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

Member Function Documentation

std::size_t vdj_pipe::File_ostream_variant::size ( ) const
Returns
number of files
static std::string const& vdj_pipe::File_ostream_variant::skip_empty ( )
inlinestatic
Returns
string that cannot be part of filesystem path

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