PandA-2024.02
Public Member Functions | Private Member Functions | Private Attributes | Static Private Attributes
gzstreambuf Class Reference

The big change with respect to the original code is a refactoring for a header based library. More...

#include <gzstream.hpp>

Inheritance diagram for gzstreambuf:
Inheritance graph
[legend]
Collaboration diagram for gzstreambuf:
Collaboration graph
[legend]

Public Member Functions

 gzstreambuf ()
 
int is_open ()
 
gzstreambufopen (const char *name, std::ios_base::openmode open_mode)
 
gzstreambufclose ()
 
 ~gzstreambuf () override
 
int overflow (int c=EOF) override
 
int underflow () override
 
int sync () override
 

Private Member Functions

int flush_buffer ()
 

Private Attributes

gzFile file
 
char buffer [bufferSize]
 
char opened
 
std::ios_base::openmode mode
 

Static Private Attributes

static const int bufferSize = 47 + 256
 

Detailed Description

The big change with respect to the original code is a refactoring for a header based library.


Internal classes to implement gzstream. See below for user classes.

Definition at line 77 of file gzstream.hpp.

Constructor & Destructor Documentation

◆ gzstreambuf()

gzstreambuf::gzstreambuf ( )
inline

Definition at line 91 of file gzstream.hpp.

◆ ~gzstreambuf()

gzstreambuf::~gzstreambuf ( )
inlineoverride

Definition at line 105 of file gzstream.hpp.

References close(), overflow(), sync(), and underflow().

Here is the call graph for this function:

Member Function Documentation

◆ close()

gzstreambuf * gzstreambuf::close ( )
inline

Definition at line 215 of file gzstream.hpp.

References file, is_open(), opened, and sync().

Referenced by gzstreambase::gzstreambase(), is_open(), and ~gzstreambuf().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ flush_buffer()

int gzstreambuf::flush_buffer ( )
inlineprivate

Definition at line 264 of file gzstream.hpp.

References file.

Referenced by overflow(), and sync().

Here is the caller graph for this function:

◆ is_open()

int gzstreambuf::is_open ( )
inline

Definition at line 99 of file gzstream.hpp.

References close(), open(), and opened.

Referenced by close(), and open().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ open()

gzstreambuf * gzstreambuf::open ( const char *  name,
std::ios_base::openmode  open_mode 
)
inline

Definition at line 182 of file gzstream.hpp.

References file, is_open(), mode, and opened.

Referenced by gzstreambase::gzstreambase(), and is_open().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ overflow()

int gzstreambuf::overflow ( int  c = EOF)
inlineoverride

Definition at line 277 of file gzstream.hpp.

References flush_buffer(), mode, and opened.

Referenced by ~gzstreambuf().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ sync()

int gzstreambuf::sync ( )
inlineoverride

Definition at line 295 of file gzstream.hpp.

References flush_buffer().

Referenced by close(), and ~gzstreambuf().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ underflow()

int gzstreambuf::underflow ( )
inlineoverride

Definition at line 229 of file gzstream.hpp.

References buffer, bufferSize, file, mode, and opened.

Referenced by ~gzstreambuf().

Here is the caller graph for this function:

Field Documentation

◆ buffer

char gzstreambuf::buffer[bufferSize]
private

Definition at line 84 of file gzstream.hpp.

Referenced by underflow().

◆ bufferSize

const int gzstreambuf::bufferSize = 47 + 256
staticprivate

Definition at line 80 of file gzstream.hpp.

Referenced by underflow().

◆ file

gzFile gzstreambuf::file
private

Definition at line 83 of file gzstream.hpp.

Referenced by close(), flush_buffer(), open(), and underflow().

◆ mode

std::ios_base::openmode gzstreambuf::mode
private

Definition at line 86 of file gzstream.hpp.

Referenced by open(), overflow(), and underflow().

◆ opened

char gzstreambuf::opened
private

Definition at line 85 of file gzstream.hpp.

Referenced by close(), is_open(), open(), overflow(), and underflow().


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

Generated on Mon Feb 12 2024 13:03:54 for PandA-2024.02 by doxygen 1.8.13