an efficient C++ finite element environment
|
|
Go to the documentation of this file. 1 #ifndef _RHEOLEF_STREAM_H
2 #define _RHEOLEF_STREAM_H
159 #include "rheolef/compiler.h"
160 #include <boost/iostreams/filtering_stream.hpp>
174 class irheostream :
public boost::iostreams::filtering_stream<boost::iostreams::input> {
177 irheostream(
const std::string&
name,
const std::string& suffix = std::string());
179 void open (
const std::string&
name,
const std::string& suffix = std::string());
189 class orheostream :
public boost::iostreams::filtering_stream<boost::iostreams::output> {
192 orheostream(
const std::string&
name,
const std::string& suffix = std::string(),
195 void open (
const std::string&
name,
const std::string& suffix = std::string(),
222 bool scatch (std::istream& in,
const std::string& ch,
bool full_match =
true);
226 bool has_suffix (
const std::string&
name,
const std::string& suffix);
278 #endif // _RHEOLEF_STREAM_H
void open(const std::string &name, const std::string &suffix=std::string(), io::mode_type mode=io::out)
string delete_suffix(const string &name, const string &suffix)
delete_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 file_exists(const std::string &filename)
file_exists: 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
std::string get_tmpdir()
get_tmpdir: 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 delete_any_suffix(const string &name)
delete_any_suffix: see the rheostream page for the full documentation
string get_basename(const string &name)
get_basename: see the rheostream page for the full documentation
void _open_internal(io::mode_type mode)
void open(const std::string &name, const std::string &suffix=std::string())
void prepend_dir_to_rheo_path(const string &dir)
prepend_dir_to_rheo_path: 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
This file is part of Rheolef.
see the Float page for the full documentation
static const bool dont_gzip
bool has_suffix(const string &name, const string &suffix)
has_suffix: see the rheostream page for the full documentation
string ftos(const Float &x)
itof: see the rheostream page for the full documentation
Float to_float(const string &s)
to_float: see the rheostream page for the full documentation
field::size_type size_type
std::string itos(std::string::size_type i)
itos: see the rheostream page for the full documentation
const std::string & filename() const
bool has_any_suffix(const string &name)
has_any_suffix: see the rheostream page for the full documentation
string get_dirname(const string &name)
get_dirname: see the rheostream page for the full documentation