IFstreamAllocator Class Reference

A std::istream with the ability to handle compressed files. More...

Inheritance diagram for IFstreamAllocator:
[legend]

Protected Member Functions

 IFstreamAllocator (const fileName &pathname)
 Construct from pathname. More...
 

Protected Attributes

std::unique_ptr< std::istream > allocatedPtr_
 The allocated stream pointer (ifstream or igzstream). More...
 
IOstream::compressionType detectedCompression_
 The detected compression type. More...
 

Detailed Description

A std::istream with the ability to handle compressed files.

Definition at line 59 of file IFstream.H.

Constructor & Destructor Documentation

◆ IFstreamAllocator()

IFstreamAllocator ( const fileName pathname)
protected

Construct from pathname.

Definition at line 43 of file IFstream.C.

References IFstreamAllocator::allocatedPtr_, IOstreamOption::COMPRESSED, Foam::expressions::patchExpr::debug, IFstreamAllocator::detectedCompression_, Foam::endl(), InfoInFunction, Foam::isFile(), and Foam::mode().

Here is the call graph for this function:

Member Data Documentation

◆ allocatedPtr_

std::unique_ptr<std::istream> allocatedPtr_
protected

The allocated stream pointer (ifstream or igzstream).

Definition at line 66 of file IFstream.H.

Referenced by IFstreamAllocator::IFstreamAllocator().

◆ detectedCompression_

IOstream::compressionType detectedCompression_
protected

The detected compression type.

Definition at line 69 of file IFstream.H.

Referenced by IFstream::IFstream(), and IFstreamAllocator::IFstreamAllocator().


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