Geant4 10.7.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 14 of file GZIPOutputStream.h.

Constructor & Destructor Documentation

◆ GZIPOutputStream()

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

Definition at line 13 of file GZIPOutputStream.cc.

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

◆ ~GZIPOutputStream()

cheprep::GZIPOutputStream::~GZIPOutputStream ( )
virtual

Definition at line 34 of file GZIPOutputStream.cc.

34 {
35 delete buffer;
36 }

Member Function Documentation

◆ close()

void cheprep::GZIPOutputStream::close ( )

Definition at line 29 of file GZIPOutputStream.cc.

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

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

◆ setComment()

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

Definition at line 25 of file GZIPOutputStream.cc.

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

◆ setFilename()

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

Definition at line 21 of file GZIPOutputStream.cc.

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

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