A library for working with phylogenetic and population genetic data.
v0.27.0
strict_fstream.cpp File Reference
#include "genesis/utils/io/strict_fstream.hpp"
#include "genesis/utils/core/exception.hpp"
#include <cassert>
#include <cstring>
#include <fstream>
#include <stdexcept>
#include <string>

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

static void check_mode_ (std::string const &filename, std::ios_base::openmode mode)
 
static void check_open_ (std::ios *s_p, std::string const &filename, std::ios_base::openmode mode)
 
static void check_peek_ (std::istream *is_p, std::string const &filename, std::ios_base::openmode mode)
 
static std::string mode_to_string_ (std::ios_base::openmode mode)
 
static std::string strerror_ ()
 Overload of error-reporting function, to enable use with VS. More...