ReFRACtor
FullPhysics::FilteringOstream Class Reference

This allows filtering stream to created on top of an underlying ofstream. More...

#include <filtering_fstream.h>

+ Inheritance diagram for FullPhysics::FilteringOstream:
+ Collaboration diagram for FullPhysics::FilteringOstream:

Public Member Functions

virtual ~FilteringOstream ()
 

Protected Member Functions

 FilteringOstream (const std::string &Fname)
 Constructor. More...
 

Protected Attributes

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

Detailed Description

This allows filtering stream to created on top of an underlying ofstream.

See boost::iostream documentation for details on how to create these. This class is intended to be used as a base class for other classes that assemble the proper filters.

Definition at line 14 of file filtering_fstream.h.

Constructor & Destructor Documentation

◆ ~FilteringOstream()

virtual FullPhysics::FilteringOstream::~FilteringOstream ( )
inlinevirtual

Definition at line 16 of file filtering_fstream.h.

◆ FilteringOstream()

FullPhysics::FilteringOstream::FilteringOstream ( const std::string &  Fname)
inlineprotected

Constructor.

This opens the given file and sets up the stream buffer, but nothing is placed in the filter. The derived class should set up the streambuf.

Definition at line 25 of file filtering_fstream.h.

Member Data Documentation

◆ f

std::ofstream FullPhysics::FilteringOstream::f
protected

Underlying ofstream.

Definition at line 32 of file filtering_fstream.h.

◆ sb

boost::iostreams::filtering_ostreambuf FullPhysics::FilteringOstream::sb
protected

Filtering streambuf.

Definition at line 38 of file filtering_fstream.h.


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

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