2 #include <boost/iostreams/filter/gzip.hpp> 3 #include <boost/iostreams/filter/regex.hpp> 16 sb.push(boost::iostreams::regex_filter(
17 boost::regex(Comment_char +
".*"),
"",
18 boost::match_not_dot_newline));
19 if(boost::regex_search(Fname, boost::regex(
"\\.gz$")))
20 sb.push(boost::iostreams::gzip_decompressor());
boost::iostreams::filtering_istreambuf sb
Filtering streambuf.
std::ifstream f
Underlying ifstream.
IfstreamCs(const std::string &Fname, const std::string &Comment_start="#")
Open file to read, decompressing if necessary and filtering comments.
This allows filtering stream to created on top of an underlying ifstream.
Contains classes to abstract away details in various Spurr Radiative Transfer software.