MFEM
v3.4
Finite element discretization library
|
#include <gzstream.hpp>
Public Member Functions | |
ifgzstream (char const *name, char const *mode="rb") | |
~ifgzstream () | |
Static Protected Member Functions | |
static bool | maybe_gz (const char *fn) |
Protected Attributes | |
std::streambuf * | buf |
Definition at line 632 of file gzstream.hpp.
mfem::ifgzstream::ifgzstream | ( | char const * | name, |
char const * | mode = "rb" |
||
) |
Simple replacement for class std::ifstream
that automatically detects compressed files in gzip format and transparently uncompresses them. Internally, the classes std::filebuf
or gzstreambuf are used to handle the file I/O. Reading compressed files requires the MFEM build-time option MFEM_USE_GZSTREAM.
std::ios_base::in
mode. Definition at line 202 of file gzstream.cpp.
|
inline |
Definition at line 645 of file gzstream.hpp.
|
staticprotected |
Definition at line 193 of file gzstream.cpp.
|
protected |
Definition at line 648 of file gzstream.hpp.