- 博客(3)
- 收藏
- 关注
a compete demo of iostream filter chain
#include <sys/stat.h>#include <fcntl.h>#include <sstream>#include <string>#include <list>#include <boost/iostreams/concepts.hpp>#include <boost/files...
2009-09-18 04:28:13 87
iostream filter chain
FILE* pf = popen("/bin/tar xf - ", "w"); if (pf != NULL) { ifstream file(src_file, ios_base::in | ios_base::binary); io::filtering_streambuf<input> in; i...
2009-09-18 04:23:20 80
Use boost::iostreams::pipe
Following code implements the same function as "tar cf - workspace |gzip -9 -c >1.tar.gz"performance is also good.#include <boost/iostreams/device/file.hpp>#include <iostream>#i...
2009-04-25 15:05:48 325
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人