ReFRACtor
FullPhysics::OstreamCompress Class Reference

/ This opens a file for writing, possibly with automatic / compression. More...

#include <fstream_compress.h>

+ Inheritance diagram for FullPhysics::OstreamCompress:
+ Collaboration diagram for FullPhysics::OstreamCompress:

Public Member Functions

 OstreamCompress (const std::string &Fname)
 This opens a file for writing, possibly with automatic compression. More...
 
virtual ~OstreamCompress ()
 

Protected Attributes

std::ofstream f
 Underlying ofstream. More...
 
boost::iostreams::filtering_ostreambuf sb
 Filtering streambuf. More...
 

Detailed Description

/ This opens a file for writing, possibly with automatic / compression.

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

Definition at line 12 of file fstream_compress.h.

Constructor & Destructor Documentation

◆ OstreamCompress()

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

This opens a file for writing, possibly with automatic compression.

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

Definition at line 13 of file fstream_compress.cc.

◆ ~OstreamCompress()

virtual FullPhysics::OstreamCompress::~OstreamCompress ( )
inlinevirtual

Definition at line 15 of file fstream_compress.h.

Member Data Documentation

◆ f

std::ofstream FullPhysics::FilteringOstream::f
protectedinherited

Underlying ofstream.

Definition at line 32 of file filtering_fstream.h.

◆ sb

boost::iostreams::filtering_ostreambuf FullPhysics::FilteringOstream::sb
protectedinherited

Filtering streambuf.

Definition at line 38 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:13