A library for working with phylogenetic and population genetic data.
v0.27.0
output_target.hpp File Reference

Go to the source code of this file.

Namespaces

 genesis
 Container namespace for all symbols of genesis in order to keep them separate when used as a library.
 
 genesis::utils
 

Functions

std::shared_ptr< BaseOutputTarget > to_file (std::string const &file_name, GzipCompressionLevel compression_level, bool auto_adjust_filename=true)
 Obtain an output target for writing to a file. More...
 
std::shared_ptr< BaseOutputTarget > to_file (std::string const &file_name, std::ios_base::openmode mode=std::ios_base::out)
 Obtain an output target for writing to a file, using a specific output mode. More...
 
std::shared_ptr< BaseOutputTarget > to_gzip_block_file (std::string const &file_name, std::size_t block_size=GzipBlockOStream::GZIP_DEFAULT_BLOCK_SIZE, GzipCompressionLevel compression_level=GzipCompressionLevel::kDefaultCompression, std::size_t num_threads=0, bool auto_adjust_filename=true)
 Obtain an output target for writing gzip block compressed data to a file. More...
 
std::shared_ptr< BaseOutputTarget > to_stream (std::ostream &target_stream, GzipCompressionLevel compression_level=GzipCompressionLevel::kNoCompression)
 Obtain an output target for writing to a stream. More...
 
std::shared_ptr< BaseOutputTarget > to_string (std::string &target_string)
 Obtain an output target for writing to a string. More...