1#ifndef _RHEOLEF_STREAM_H
2#define _RHEOLEF_STREAM_H
159#include "rheolef/compiler.h"
161#pragma GCC diagnostic push
162#pragma GCC diagnostic ignored "-Weffc++"
163#pragma GCC diagnostic ignored "-Wparentheses"
164#include <boost/iostreams/filtering_stream.hpp>
165#pragma GCC diagnostic pop
179class irheostream :
public boost::iostreams::filtering_stream<boost::iostreams::input> {
182 irheostream(
const std::string& name,
const std::string& suffix = std::string());
184 void open (
const std::string& name,
const std::string& suffix = std::string());
194class orheostream :
public boost::iostreams::filtering_stream<boost::iostreams::output> {
197 orheostream(
const std::string& name,
const std::string& suffix = std::string(),
200 void open (
const std::string& name,
const std::string& suffix = std::string(),
223bool scatch (std::istream& in,
const std::string& ch,
bool full_match =
true);
227bool has_suffix (
const std::string& name,
const std::string& suffix);
231std::string
delete_suffix (
const std::string& name,
const std::string& suffix);
279inline std::string
itos (std::size_t i) {
return std::to_string(i); }
see the Float page for the full documentation
void open(const std::string &name, const std::string &suffix=std::string())
void _open_internal(io::mode_type mode)
const std::string & filename() const
void open(const std::string &name, const std::string &suffix=std::string(), io::mode_type mode=io::out)
static const bool dont_gzip
This file is part of Rheolef.
string get_dirname(const string &name)
get_dirname: see the rheostream page for the full documentation
string delete_suffix(const string &name, const string &suffix)
delete_suffix: see the rheostream page for the full documentation
void prepend_dir_to_rheo_path(const string &dir)
prepend_dir_to_rheo_path: see the rheostream page for the full documentation
std::string itos(std::size_t i)
Float to_float(const string &s)
to_float: see the rheostream page for the full documentation
bool scatch(std::istream &in, const std::string &ch, bool full_match=true)
scatch: see the rheostream page for the full documentation
string get_basename(const string &name)
get_basename: see the rheostream page for the full documentation
std::string get_tmpdir()
get_tmpdir: see the rheostream page for the full documentation
bool has_suffix(const string &name, const string &suffix)
has_suffix: see the rheostream page for the full documentation
void append_dir_to_rheo_path(const string &dir)
append_dir_to_rheo_path: see the rheostream page for the full documentation
string delete_any_suffix(const string &name)
delete_any_suffix: see the rheostream page for the full documentation
string get_full_name_from_rheo_path(const string &rootname, const string &suffix)
get_full_name_from_rheo_path: see the rheostream page for the full documentation
bool is_float(const string &s)
is_float: see the rheostream page for the full documentation
string ftos(const Float &x)
itof: see the rheostream page for the full documentation
bool file_exists(const std::string &filename)
file_exists: see the rheostream page for the full documentation
bool has_any_suffix(const string &name)
has_any_suffix: see the rheostream page for the full documentation