OFstreamAllocator Class Reference

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

Inheritance diagram for OFstreamAllocator:
[legend]

Protected Member Functions

 OFstreamAllocator (const fileName &pathname, IOstream::compressionType comp=IOstream::UNCOMPRESSED, const bool append=false)
 Construct from pathname. More...
 

Protected Attributes

std::unique_ptr< std::ostream > allocatedPtr_
 The allocated stream pointer (ofstream or ogzstream). More...
 

Detailed Description

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

Definition at line 59 of file OFstream.H.

Constructor & Destructor Documentation

◆ OFstreamAllocator()

OFstreamAllocator ( const fileName pathname,
IOstream::compressionType  comp = IOstream::UNCOMPRESSED,
const bool  append = false 
)
protected

Construct from pathname.

Definition at line 44 of file OFstream.C.

References append(), Foam::expressions::patchExpr::debug, Foam::endl(), InfoInFunction, Foam::mode(), Foam::rm(), and Foam::type().

Here is the call graph for this function:

Member Data Documentation

◆ allocatedPtr_

std::unique_ptr<std::ostream> allocatedPtr_
protected

The allocated stream pointer (ofstream or ogzstream).

Definition at line 66 of file OFstream.H.

Referenced by OFstream::stdStream().


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