Geant4  v4-10.4-release
 모두 클래스 네임스페이스들 파일들 함수 변수 타입정의 열거형 타입 열거형 멤버 Friends 매크로 그룹들 페이지들
ZipOutputStreamBuffer.h
이 파일의 문서화 페이지로 가기
1 // Copyright FreeHEP, 2005.
2 #ifndef CHEPREP_ZIPOUTPUTSTREAMBUFFER_H
3 #define CHEPREP_ZIPOUTPUTSTREAMBUFFER_H
4 
5 #include <string>
6 #include <iostream>
7 #include <vector>
8 
10 
15 namespace cheprep {
16 
17  class ZipEntry;
18 
20 
21  public:
22 
23  ZipOutputStreamBuffer(std::streambuf* buffer);
24 
25  int overflow(int c);
26 
27  void closeEntry();
28 
29  void close();
30 
31  void putNextEntry(const std::string& name, bool compress);
32 
33  void setMethod(int method);
34 
35  void setComment(const std::string& comment);
36 
37  virtual ~ZipOutputStreamBuffer();
38 
39  private:
40  std::string comment;
41 
42  bool closed;
44  std::vector<ZipEntry*>* entries;
45 
46  static const unsigned int LOCSIG = 0x04034b50;
47  static const unsigned int EXTSIG = 0x08074b50;
48  static const unsigned int CENSIG = 0x02014b50;
49  static const unsigned int ENDSIG = 0x06054b50;
50 
51  static const unsigned int VERSIONMADE = 0x0014;
52  static const unsigned int VERSIONEXTRACT = 0x0014;
53  static const unsigned int GENFLAG = 0x0008;
54  };
55 
56 } // cheprep
57 
58 #endif // CHEPREP_ZIPOUTPUTSTREAMBUFFER_H
const XML_Char * name
Definition: expat.h:151
static const unsigned int VERSIONMADE
ZipOutputStreamBuffer(std::streambuf *buffer)
static const unsigned int VERSIONEXTRACT
static const unsigned int CENSIG
static const unsigned int LOCSIG
static const unsigned int ENDSIG
void setComment(const std::string &comment)
void putNextEntry(const std::string &name, bool compress)
std::vector< ZipEntry * > * entries
static const unsigned int GENFLAG
static const unsigned int EXTSIG