Geant4  10.03.p01
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
cheprep::GZIPOutputStreamBuffer Class Reference

#include <GZIPOutputStreamBuffer.h>

Inheritance diagram for cheprep::GZIPOutputStreamBuffer:
Collaboration 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

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

Definition at line 13 of file GZIPOutputStreamBuffer.cc.

14  : DeflateOutputStreamBuffer(aBuffer),
15  open(false) {
16 
17  init(true);
18  }

Here is the call graph for this function:

cheprep::GZIPOutputStreamBuffer::~GZIPOutputStreamBuffer ( )
virtual

Definition at line 37 of file GZIPOutputStreamBuffer.cc.

37  {
38  close() ;
39  }

Here is the call graph for this function:

Member Function Documentation

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  }

Here is the call graph for this function:

Here is the caller graph for this function:

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  }

Here is the call graph for this function:

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

Definition at line 24 of file GZIPOutputStreamBuffer.cc.

24  {
25  comment = c ;
26  }

Here is the caller graph for this function:

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

Definition at line 20 of file GZIPOutputStreamBuffer.cc.

20  {
21  filename = name ;
22  }
const XML_Char * name
Definition: expat.h:151

Here is the caller graph for this function:


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