2 #include <boost/regex.hpp> 3 #include <boost/iostreams/filter/gzip.hpp> 16 if(boost::regex_search(Fname, boost::regex(
"\\.gz$")))
17 sb.push(boost::iostreams::gzip_compressor());
33 if(boost::regex_search(Fname, boost::regex(
"\\.gz$")))
34 sb.push(boost::iostreams::gzip_decompressor());
OstreamCompress(const std::string &Fname)
This opens a file for writing, possibly with automatic compression.
boost::iostreams::filtering_istreambuf sb
Filtering streambuf.
std::ifstream f
Underlying ifstream.
boost::iostreams::filtering_ostreambuf sb
Filtering streambuf.
This allows filtering stream to created on top of an underlying ifstream.
This allows filtering stream to created on top of an underlying ofstream.
Contains classes to abstract away details in various Spurr Radiative Transfer software.
IstreamCompress(const std::string &Fname)
This opens a file for reading, possibly with automatic decompression.
std::ofstream f
Underlying ofstream.