Geant4 9.6.0
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
cheprep::GZIPOutputStream Class Reference

#include <GZIPOutputStream.h>

+ Inheritance diagram for cheprep::GZIPOutputStream:

Public Member Functions

 GZIPOutputStream (std::ostream &os)
 
void setFilename (const std::string &filename)
 
void setComment (const std::string &comment)
 
void close ()
 
virtual ~GZIPOutputStream ()
 

Detailed Description

Definition at line 15 of file GZIPOutputStream.h.

Constructor & Destructor Documentation

◆ GZIPOutputStream()

cheprep::GZIPOutputStream::GZIPOutputStream ( std::ostream &  os)

Definition at line 14 of file gzipoutputstream.cc.

15 : std::ostream(NULL) {
16
17 buffer = new GZIPOutputStreamBuffer(os.rdbuf());
18 init(buffer);
19 }

◆ ~GZIPOutputStream()

cheprep::GZIPOutputStream::~GZIPOutputStream ( )
virtual

Definition at line 35 of file gzipoutputstream.cc.

35 {
36 delete buffer;
37 }

Member Function Documentation

◆ close()

void cheprep::GZIPOutputStream::close ( )

Definition at line 30 of file gzipoutputstream.cc.

30 {
31 buffer->close();
32 }

Referenced by cheprep::XMLHepRepWriter::close().

◆ setComment()

void cheprep::GZIPOutputStream::setComment ( const std::string &  comment)

Definition at line 26 of file gzipoutputstream.cc.

26 {
27 buffer->setComment(comment);
28 }
void setComment(const std::string &comment)

◆ setFilename()

void cheprep::GZIPOutputStream::setFilename ( const std::string &  filename)

Definition at line 22 of file gzipoutputstream.cc.

22 {
23 buffer->setFilename(filename);
24 }
void setFilename(const std::string &filename)

The documentation for this class was generated from the following files: