35 lines
763 B
C++
Executable File
35 lines
763 B
C++
Executable File
// Copyright FreeHEP, 2005.
|
|
#ifndef CHEPREP_GZIPOUTPUTSTREAM_H
|
|
#define CHEPREP_GZIPOUTPUTSTREAM_H
|
|
|
|
#include <string>
|
|
|
|
#include "cheprep/GZIPOutputStreamBuffer.h"
|
|
|
|
/**
|
|
* @author Mark Donszelmann
|
|
* @version $Id: GZIPOutputStream.h,v 1.3 2005/06/02 21:28:45 duns Exp $
|
|
*/
|
|
namespace cheprep {
|
|
|
|
class GZIPOutputStream : public std::ostream {
|
|
|
|
public:
|
|
|
|
GZIPOutputStream(std::ostream &os);
|
|
|
|
void setFilename(const std::string &filename);
|
|
void setComment(const std::string &comment);
|
|
|
|
void close();
|
|
|
|
virtual ~GZIPOutputStream();
|
|
|
|
private:
|
|
GZIPOutputStreamBuffer *buffer;
|
|
};
|
|
|
|
} // cheprep.
|
|
|
|
#endif // CHEPREP_GZIPOUTPUTSTREAM_H
|