Output: Include gzstream package to allow automatically-gzipped output
authorClint Smullen <cws3k@cs.virginia.edu>
Sun, 16 Nov 2008 04:42:11 +0000 (23:42 -0500)
committerClint Smullen <cws3k@cs.virginia.edu>
Sun, 16 Nov 2008 04:42:11 +0000 (23:42 -0500)
commit3087be945d84031d7d6a9cd45bd90d5767d1b7cc
treed31827399f743c8ab629e4e49125d9522b90282c
parent4514f565e3dfe1de41bbaec05f3f0074e5299bac
Output: Include gzstream package to allow automatically-gzipped output
The gzstream package provides an ostream-interface for writing gzipped files.
The package comes from:
    http://www.cs.unc.edu/Research/compgeom/gzstream/
And is distributed under the LGPL license. Both the license and version
information has been preservered, though all other files in the package have
been purged. Minor modifications to the code have been made. The output module
detects when a filename ends in .gz and constructs an ogzstream object instead
of an ofstream object. This works for both the create(...) and find(...)
commands. Additionally, since gzstream objects needs to be closed to ensure
proper file termination, I have the output deconstructor deleting all ostream's
that it manages on behalf of find(...). At the moment, the only output file
that I know this functionality works for is stats, i.e. by specifying
"--stats-file=m5stats.txt.gz" on the command line.
SConstruct
ext/gzstream/LICENSE [new file with mode: 0644]
ext/gzstream/SConscript [new file with mode: 0644]
ext/gzstream/VERSION [new file with mode: 0644]
ext/gzstream/gzstream.cc [new file with mode: 0644]
ext/gzstream/gzstream.hh [new file with mode: 0644]
src/base/output.cc
src/base/output.hh