Geant4  10.03.p03
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
ZipOutputStream.h
Go to the documentation of this file.
1 // Copyright FreeHEP, 2005.
2 #ifndef CHEPREP_ZIPOUTPUTSTREAM_H
3 #define CHEPREP_ZIPOUTPUTSTREAM_H
4 
5 #include <string>
6 #include <iostream>
7 #include <vector>
8 
9 
14 namespace cheprep {
15 
16  class ZipOutputStreamBuffer;
17 
18  class ZipOutputStream : public std::ostream {
19 
20  public:
21 
22  ZipOutputStream(std::ostream& os);
23 
24  void closeEntry();
25 
26  void close();
27 
28  void putNextEntry(const std::string& name, bool compress);
29 
30  void setComment(const std::string& comment);
31 
32  virtual ~ZipOutputStream();
33 
34  private:
35  ZipOutputStreamBuffer* buffer;
36  };
37 
38 } // cheprep
39 
40 #endif // CHEPREP_ZIPOUTPUTSTREAM_H
const XML_Char * name
Definition: expat.h:151
void putNextEntry(const std::string &name, bool compress)
void setComment(const std::string &comment)
ZipOutputStream(std::ostream &os)
int ZEXPORT compress(Bytef *dest, uLongf *destLen, const Bytef *source, uLong sourceLen)
Definition: compress.cc:57