Geant4 9.6.0
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
cheprep::GZIPOutputStreamBuffer Class Reference

#include <GZIPOutputStreamBuffer.h>

+ Inheritance diagram for cheprep::GZIPOutputStreamBuffer:

Public Member Functions

 GZIPOutputStreamBuffer (std::streambuf *outbuf)
 
int overflow (int)
 
void setFilename (const std::string &filename)
 
void setComment (const std::string &comment)
 
void close ()
 
virtual ~GZIPOutputStreamBuffer ()
 
- Public Member Functions inherited from cheprep::DeflateOutputStreamBuffer
 DeflateOutputStreamBuffer (std::streambuf *buffer)
 
void init (bool compress)
 
void finish ()
 
virtual ~DeflateOutputStreamBuffer ()
 

Additional Inherited Members

- Protected Member Functions inherited from cheprep::DeflateOutputStreamBuffer
int overflow (int c=EOF)
 
bool flushOut ()
 
void putUI (unsigned int ui)
 
void putUS (unsigned short us)
 
void putUB (unsigned char ub)
 
void putS (const std::string s)
 
std::streampos pos ()
 
unsigned int getSize ()
 
unsigned int getCRC ()
 

Detailed Description

Definition at line 15 of file GZIPOutputStreamBuffer.h.

Constructor & Destructor Documentation

◆ GZIPOutputStreamBuffer()

cheprep::GZIPOutputStreamBuffer::GZIPOutputStreamBuffer ( std::streambuf *  outbuf)

Definition at line 13 of file GZIPOutputStreamBuffer.cc.

15 open(false) {
16
17 init(true);
18 }

◆ ~GZIPOutputStreamBuffer()

cheprep::GZIPOutputStreamBuffer::~GZIPOutputStreamBuffer ( )
virtual

Definition at line 37 of file GZIPOutputStreamBuffer.cc.

Member Function Documentation

◆ close()

void cheprep::GZIPOutputStreamBuffer::close ( )

Definition at line 28 of file GZIPOutputStreamBuffer.cc.

28 {
29 if (!open) return;
30
31 finish();
32 writeTrailer();
33
34 open = false ;
35 }

Referenced by cheprep::GZIPOutputStream::close(), and ~GZIPOutputStreamBuffer().

◆ overflow()

int cheprep::GZIPOutputStreamBuffer::overflow ( int  c)

Definition at line 41 of file GZIPOutputStreamBuffer.cc.

41 {
42 if (!open) {
43 writeHeader();
44 open = true;
45 }
47 }

◆ setComment()

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

Definition at line 24 of file GZIPOutputStreamBuffer.cc.

24 {
25 comment = c ;
26 }

Referenced by cheprep::GZIPOutputStream::setComment().

◆ setFilename()

void cheprep::GZIPOutputStreamBuffer::setFilename ( const std::string &  filename)

Definition at line 20 of file GZIPOutputStreamBuffer.cc.

20 {
21 filename = name ;
22 }

Referenced by cheprep::GZIPOutputStream::setFilename().


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