ReFRACtor
FullPhysics::IstreamCompress Class Reference

/ This opens a file for reading, possibly with automatic / decompression. More...

#include <fstream_compress.h>

+ Inheritance diagram for FullPhysics::IstreamCompress:
+ Collaboration diagram for FullPhysics::IstreamCompress:

Public Member Functions

 IstreamCompress (const std::string &Fname)
 This opens a file for reading, possibly with automatic decompression. More...
 
virtual ~IstreamCompress ()
 

Protected Attributes

std::ifstream f
 Underlying ifstream. More...
 
boost::iostreams::filtering_istreambuf sb
 Filtering streambuf. More...
 

Detailed Description

/ This opens a file for reading, possibly with automatic / decompression.

We look at the File name, and if ends if ".gz" then / we automatically gunzip the file. / / See all also IfstreamCs which both handles decompression and / stripping out comments.

Definition at line 27 of file fstream_compress.h.

Constructor & Destructor Documentation

◆ IstreamCompress()

IstreamCompress::IstreamCompress ( const std::string &  Fname)

This opens a file for reading, possibly with automatic decompression.

We look at the File name, and if ends if ".gz" then we automatically gunzip the file.

See all also IfstreamCs which both handles decompression and stripping out comments.

Definition at line 30 of file fstream_compress.cc.

◆ ~IstreamCompress()

virtual FullPhysics::IstreamCompress::~IstreamCompress ( )
inlinevirtual

Definition at line 30 of file fstream_compress.h.

Member Data Documentation

◆ f

std::ifstream FullPhysics::FilteringIstream::f
protectedinherited

Underlying ifstream.

Definition at line 66 of file filtering_fstream.h.

◆ sb

boost::iostreams::filtering_istreambuf FullPhysics::FilteringIstream::sb
protectedinherited

Filtering streambuf.

Definition at line 72 of file filtering_fstream.h.


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

Copyright © 2017, California Institute of Technology.
ALL RIGHTS RESERVED.
U.S. Government Sponsorship acknowledged.
Generated Fri Aug 24 2018 15:44:12