| // -*- c++ -*- | |
| // (c) 2006,2007,2008 Ulrich Germann | |
| // makes opening files a little more convenient | |
| namespace ugdiss | |
| { | |
| /** open input file that is possibly compressed | |
| * decompression filters are automatically added based on the file name | |
| * gzip for .gz; bzip2 for bz2. | |
| */ | |
| boost::iostreams::filtering_istream* | |
| open_input_stream(std::string fname); | |
| void open_input_stream(std::string fname, | |
| boost::iostreams::filtering_istream& in); | |
| boost::iostreams::filtering_ostream* | |
| open_output_stream(std::string fname); | |
| void open_output_stream(std::string fname, | |
| boost::iostreams::filtering_ostream& in); | |
| } | |