Geant4 10.7.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 17 of file ZipOutputStream.h.

Constructor & Destructor Documentation

◆ ZipOutputStream()

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

Definition at line 15 of file ZipOutputStream.cc.

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

◆ ~ZipOutputStream()

cheprep::ZipOutputStream::~ZipOutputStream ( )
virtual

Definition at line 38 of file ZipOutputStream.cc.

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

Member Function Documentation

◆ close()

void cheprep::ZipOutputStream::close ( )

Definition at line 26 of file ZipOutputStream.cc.

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

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 30 of file ZipOutputStream.cc.

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

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

◆ setComment()

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

Definition at line 34 of file ZipOutputStream.cc.

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

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