JayBeams  0.1
Another project to have fun coding.
fileio.hpp
Go to the documentation of this file.
1 #ifndef jb_fileio_hpp
2 #define jb_fileio_hpp
3 
4 #include <boost/iostreams/filtering_stream.hpp>
5 
6 #include <string>
7 
8 namespace jb {
9 
10 /**
11  * Open a file for writing.
12  */
13 void open_output_file(
14  boost::iostreams::filtering_ostream& out, std::string const& filename);
15 
16 /**
17  * Open a file for reading.
18  */
19 void open_input_file(
20  boost::iostreams::filtering_istream& in, std::string const& filename);
21 
22 } // namespace jb
23 
24 #endif // jb_fileio_hpp
void open_output_file(boost::iostreams::filtering_ostream &out, std::string const &filename)
Open a file for writing.
Definition: fileio.cpp:12
void open_input_file(boost::iostreams::filtering_istream &in, std::string const &filename)
Open a file for reading.
Definition: fileio.cpp:27
The top-level namespace for the JayBeams library.
Definition: as_hhmmss.hpp:7