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

#include <ZipOutputStream.h>

+ Inheritance diagram for cheprep::ZipOutputStream:

Public Member Functions

 ZipOutputStream (std::ostream &os)
 
void closeEntry ()
 
void close ()
 
void putNextEntry (const std::string &name, bool compress)
 
void setComment (const std::string &comment)
 
virtual ~ZipOutputStream ()
 

Detailed Description

Definition at line 18 of file ZipOutputStream.h.

Constructor & Destructor Documentation

◆ ZipOutputStream()

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

Definition at line 16 of file zipoutputstream.cc.

16 : std::ostream(0) {
17 buffer = new ZipOutputStreamBuffer(os.rdbuf());
18
19 init(buffer);
20 }

◆ ~ZipOutputStream()

cheprep::ZipOutputStream::~ZipOutputStream ( )
virtual

Definition at line 39 of file zipoutputstream.cc.

39 {
40 close();
41 delete buffer;
42 }

Member Function Documentation

◆ close()

void cheprep::ZipOutputStream::close ( )

Definition at line 27 of file zipoutputstream.cc.

27 {
28 buffer->close();
29 }

Referenced by cheprep::XMLHepRepWriter::close(), and ~ZipOutputStream().

◆ closeEntry()

void cheprep::ZipOutputStream::closeEntry ( )

◆ putNextEntry()

void cheprep::ZipOutputStream::putNextEntry ( const std::string &  name,
bool  compress 
)

Definition at line 31 of file zipoutputstream.cc.

31 {
32 buffer->putNextEntry(name, compress);
33 }
void putNextEntry(const std::string &name, bool compress)
int ZEXPORT compress(Bytef *dest, uLongf *destLen, const Bytef *source, uLong sourceLen)
Definition: compress.cc:57

Referenced by cheprep::XMLHepRepWriter::close(), and cheprep::XMLHepRepWriter::write().

◆ setComment()

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

Definition at line 35 of file zipoutputstream.cc.

35 {
36 buffer->setComment(comment);
37 }
void setComment(const std::string &comment)

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