README 1.5 KB

1234567891011121314151617181920212223242526272829303132333435
  1. These classes provide a C++ stream interface to the zlib library. It allows you
  2. to do things like:
  3. gzofstream outf("blah.gz");
  4. outf << "These go into the gzip file " << 123 << endl;
  5. It does this by deriving a specialized stream buffer for gzipped files, which is
  6. the way Stroustrup would have done it. :->
  7. The gzifstream and gzofstream classes were originally written by Kevin Ruland
  8. and made available in the zlib contrib/iostream directory. The older version still
  9. compiles under gcc 2.xx, but not under gcc 3.xx, which sparked the development of
  10. this version.
  11. The new classes are as standard-compliant as possible, closely following the
  12. approach of the standard library's fstream classes. It compiles under gcc versions
  13. 3.2 and 3.3, but not under gcc 2.xx. This is mainly due to changes in the standard
  14. library naming scheme. The new version of gzifstream/gzofstream/gzfilebuf differs
  15. from the previous one in the following respects:
  16. - added showmanyc
  17. - added setbuf, with support for unbuffered output via setbuf(0,0)
  18. - a few bug fixes of stream behavior
  19. - gzipped output file opened with default compression level instead of maximum level
  20. - setcompressionlevel()/strategy() members replaced by single setcompression()
  21. The code is provided "as is", with the permission to use, copy, modify, distribute
  22. and sell it for any purpose without fee.
  23. Ludwig Schwardt
  24. <schwardt@sun.ac.za>
  25. DSP Lab
  26. Electrical & Electronic Engineering Department
  27. University of Stellenbosch
  28. South Africa