source: trunk/source/visualization/HepRep/include/cheprep/GZIPOutputStreamBuffer.h @ 1337

Last change on this file since 1337 was 834, checked in by garnier, 16 years ago

import all except CVS

  • Property svn:executable set to *
File size: 969 bytes
Line 
1// Copyright FreeHEP, 2005.
2#ifndef CHEPREP_GZIPOUTPUTSTREAMBUF_H
3#define CHEPREP_GZIPOUTPUTSTREAMBUF_H
4
5#include <string>
6
7#include "cheprep/DeflateOutputStreamBuffer.h"
8
9/**
10 * @author Mark Donszelmann
11 * @version $Id: GZIPOutputStreamBuffer.h,v 1.4 2005/06/02 21:28:45 duns Exp $
12 */
13namespace cheprep {
14
15    class GZIPOutputStreamBuffer : public DeflateOutputStreamBuffer {
16
17        public:
18
19            GZIPOutputStreamBuffer( std::streambuf *outbuf );
20
21            int overflow(int);
22
23            void setFilename( const std::string &filename );
24            void setComment( const std::string &comment );
25
26            void close() ;
27
28            virtual ~GZIPOutputStreamBuffer() ;
29
30        private:
31            void writeHeader();
32            void writeTrailer();
33 
34            std::string filename;
35            std::string comment;
36            bool open;
37    };
38
39
40} // cheprep
41
42#endif // CHEPREP_GZIPOUTPUTSTREAMBUF_H
Note: See TracBrowser for help on using the repository browser.