A library for working with phylogenetic and population genetic data.
v0.27.0
input_source.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< BaseInputSource > from_file (std::string const &file_name, bool detect_compression=true)
 Obtain an input source for reading from a file. More...
 
template<typename InputIterator >
std::vector< std::shared_ptr< BaseInputSource > > from_files (InputIterator first, InputIterator last, bool detect_compression=true)
 Obtain a set of input sources for reading from files. More...
 
std::vector< std::shared_ptr< BaseInputSource > > from_files (std::vector< std::string > const &file_names, bool detect_compression=true)
 Obtain a set of input sources for reading from files. More...
 
std::shared_ptr< BaseInputSource > from_stream (std::istream &input_stream)
 Obtain an input source for reading from a stream. More...
 
std::shared_ptr< BaseInputSource > from_string (std::string const &input_string)
 Obtain an input source for reading from a string. More...
 
template<typename InputIterator >
std::vector< std::shared_ptr< BaseInputSource > > from_strings (InputIterator first, InputIterator last)
 Obtain a set of input sources for reading from strings. More...
 
std::vector< std::shared_ptr< BaseInputSource > > from_strings (std::vector< std::string > const &input_strings)
 Obtain a set of input sources for reading from strings. More...