Geant4.10
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions
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

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  }
cheprep::ZipOutputStream::~ZipOutputStream ( )
virtual

Definition at line 39 of file ZipOutputStream.cc.

References close().

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

Member Function Documentation

void cheprep::ZipOutputStream::close ( )

Definition at line 27 of file ZipOutputStream.cc.

References cheprep::ZipOutputStreamBuffer::close().

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

27  {
28  buffer->close();
29  }
void cheprep::ZipOutputStream::closeEntry ( )
void cheprep::ZipOutputStream::putNextEntry ( const std::string &  name,
bool  compress 
)

Definition at line 31 of file ZipOutputStream.cc.

References cheprep::ZipOutputStreamBuffer::putNextEntry().

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

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

Definition at line 35 of file ZipOutputStream.cc.

References cheprep::ZipOutputStreamBuffer::setComment().

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

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