00001
00002
00003
00004
00005 #ifndef __UG_STREAM_HH
00006 #define __UG_STREAM_HH
00007 #include <boost/iostreams/device/file.hpp>
00008 #include <boost/iostreams/categories.hpp>
00009 #include <boost/iostreams/operations.hpp>
00010 #include <boost/iostreams/copy.hpp>
00011 #include <boost/iostreams/filtering_stream.hpp>
00012 #include <boost/iostreams/filter/bzip2.hpp>
00013 #include <boost/iostreams/filter/gzip.hpp>
00014
00015 #include <iostream>
00016 #include <fstream>
00017 #include <string>
00018
00019 namespace ugdiss
00020 {
00021
00026 boost::iostreams::filtering_istream*
00027 open_input_stream(std::string fname);
00028
00029 void open_input_stream(std::string fname,
00030 boost::iostreams::filtering_istream& in);
00031
00032 boost::iostreams::filtering_ostream*
00033 open_output_stream(std::string fname);
00034
00035 void open_output_stream(std::string fname,
00036 boost::iostreams::filtering_ostream& in);
00037
00038 }
00039 #endif