A wrapped std::ifstream
with possible compression handling (igzstream) that behaves much like a std::unique_ptr
.
More...
Public Member Functions | |
ifstreamPointer () noexcept=default | |
ifstreamPointer (const ifstreamPointer &)=delete | |
ifstreamPointer (ifstreamPointer &&)=default | |
void | operator= (const ifstreamPointer &)=delete |
ifstreamPointer & | operator= (ifstreamPointer &&)=default |
~ifstreamPointer ()=default | |
ifstreamPointer (const fileName &pathname) | |
std::istream * | get () noexcept |
const std::istream * | get () const noexcept |
IOstreamOption::compressionType | whichCompression () const |
std::istream * | release () noexcept |
void | reset (std::istream *ptr) noexcept |
std::istream & | operator* () |
const std::istream & | operator* () const |
std::istream * | operator-> () noexcept |
const std::istream * | operator-> () const noexcept |
Static Public Member Functions | |
static bool | supports_gz () |
Protected Member Functions | |
void | reopen_gz (const std::string &pathname_gz) |
A wrapped std::ifstream
with possible compression handling (igzstream) that behaves much like a std::unique_ptr
.
operator bool
to avoid inheritance ambiguity with std::ios::operator bool
.Definition at line 70 of file fstreamPointer.H.
|
defaultnoexcept |
|
delete |
|
default |
|
default |
|
explicit |
Definition at line 89 of file fstreamPointers.C.
References Foam::endl(), Foam::exit(), Foam::FatalError, Foam::isFile(), Foam::mode(), and Foam::nl.
|
protected |
Definition at line 187 of file fstreamPointers.C.
Referenced by IFstream::rewind().
|
delete |
|
default |
|
static |
Definition at line 66 of file fstreamPointers.C.
|
inlinenoexcept |
Definition at line 122 of file fstreamPointer.H.
Referenced by IFstream::rewind(), and IFstream::stdStream().
|
inlinenoexcept |
Definition at line 125 of file fstreamPointer.H.
Foam::IOstreamOption::compressionType whichCompression | ( | ) | const |
Definition at line 236 of file fstreamPointers.C.
Referenced by STLCore::detectBinaryHeader(), STLCore::readBinaryHeader(), and IFstream::rewind().
|
inlinenoexcept |
Definition at line 134 of file fstreamPointer.H.
Referenced by STLCore::readBinaryHeader().
|
inlinenoexcept |
Definition at line 137 of file fstreamPointer.H.
|
inline |
Definition at line 143 of file fstreamPointer.H.
|
inline |
Definition at line 146 of file fstreamPointer.H.
|
inlinenoexcept |
Definition at line 149 of file fstreamPointer.H.
|
inlinenoexcept |
Definition at line 152 of file fstreamPointer.H.
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.