Block-Structured AMR Software Framework
amrex::StreamRetry Class Reference

#include <AMReX_Utility.H>

Public Member Functions

 StreamRetry (std::ostream &os, std::string suffix, int maxtries)
 
 StreamRetry (std::string filename, bool abortonretryfailure, int maxtries)
 
bool TryOutput ()
 
bool TryFileOutput ()
 

Static Public Member Functions

static int NStreamErrors ()
 
static void ClearStreamErrors ()
 

Private Attributes

int tries
 
int maxTries
 
bool abortOnRetryFailure = true
 
std::string fileName
 
std::ostream * sros
 
std::ostream::pos_type spos
 
std::string suffix
 

Static Private Attributes

static int nStreamErrors = 0
 

Constructor & Destructor Documentation

◆ StreamRetry() [1/2]

amrex::StreamRetry::StreamRetry ( std::ostream &  os,
std::string  suffix,
int  maxtries 
)

◆ StreamRetry() [2/2]

amrex::StreamRetry::StreamRetry ( std::string  filename,
bool  abortonretryfailure,
int  maxtries 
)

Member Function Documentation

◆ ClearStreamErrors()

static void amrex::StreamRetry::ClearStreamErrors ( )
inlinestatic

◆ NStreamErrors()

static int amrex::StreamRetry::NStreamErrors ( )
inlinestatic

◆ TryFileOutput()

bool amrex::StreamRetry::TryFileOutput ( )

◆ TryOutput()

bool amrex::StreamRetry::TryOutput ( )

Member Data Documentation

◆ abortOnRetryFailure

bool amrex::StreamRetry::abortOnRetryFailure = true
private

◆ fileName

std::string amrex::StreamRetry::fileName
private

◆ maxTries

int amrex::StreamRetry::maxTries
private

◆ nStreamErrors

int amrex::StreamRetry::nStreamErrors = 0
staticprivate

◆ spos

std::ostream::pos_type amrex::StreamRetry::spos
private

◆ sros

std::ostream* amrex::StreamRetry::sros
private

◆ suffix

std::string amrex::StreamRetry::suffix
private

◆ tries

int amrex::StreamRetry::tries
private

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