Geant4 10.7.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 14 of file GZIPOutputStreamBuffer.h.

Constructor & Destructor Documentation

◆ GZIPOutputStreamBuffer()

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

Definition at line 12 of file GZIPOutputStreamBuffer.cc.

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

◆ ~GZIPOutputStreamBuffer()

cheprep::GZIPOutputStreamBuffer::~GZIPOutputStreamBuffer ( )
virtual

Definition at line 36 of file GZIPOutputStreamBuffer.cc.

Member Function Documentation

◆ close()

void cheprep::GZIPOutputStreamBuffer::close ( )

Definition at line 27 of file GZIPOutputStreamBuffer.cc.

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

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

◆ overflow()

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

Definition at line 40 of file GZIPOutputStreamBuffer.cc.

40 {
41 if (!open) {
42 writeHeader();
43 open = true;
44 }
46 }

◆ setComment()

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

Definition at line 23 of file GZIPOutputStreamBuffer.cc.

23 {
24 comment = c ;
25 }

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

◆ setFilename()

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

Definition at line 19 of file GZIPOutputStreamBuffer.cc.

19 {
20 filename = name ;
21 }
const char * name(G4int ptype)

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


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