Geant4  v4-10.4-release
 모두 클래스 네임스페이스들 파일들 함수 변수 타입정의 열거형 타입 열거형 멤버 Friends 매크로 그룹들 페이지들
ZipOutputStream.cc
이 파일의 문서화 페이지로 가기
1 // Copyright FreeHEP, 2005.
2 
3 #include <iostream>
4 #include <ctime>
5 #include <vector>
6 
9 
14 namespace cheprep {
15 
16  ZipOutputStream::ZipOutputStream(std::ostream& os) : std::ostream(0) {
17  buffer = new ZipOutputStreamBuffer(os.rdbuf());
18 
19  init(buffer);
20  }
21 
23  buffer->closeEntry();
24  }
25 
26 
28  buffer->close();
29  }
30 
31  void ZipOutputStream::putNextEntry(const std::string& name, bool compress) {
32  buffer->putNextEntry(name, compress);
33  }
34 
35  void ZipOutputStream::setComment(const std::string& comment ) {
36  buffer->setComment(comment);
37  }
38 
40  close();
41  delete buffer;
42  }
43 
44 } // cheprep
void setComment(const std::string &comment)
const XML_Char * name
Definition: expat.h:151
ZipOutputStream(std::ostream &os)
ZipOutputStreamBuffer * buffer
void setComment(const std::string &comment)
void putNextEntry(const std::string &name, bool compress)
void putNextEntry(const std::string &name, bool compress)