MFEM v4.7.0
Finite element discretization library
Loading...
Searching...
No Matches
strict_fstream Namespace Reference

Namespaces

namespace  detail
 

Classes

class  Exception
 Exception class thrown by failed operations. More...
 
class  fstream
 
class  ifstream
 
class  ofstream
 

Functions

char * check_strerror_r (int r, char *buff, size_t buff_size)
 
char * check_strerror_r (char *r, char *, int)
 

Detailed Description

This namespace defines wrappers for std::ifstream, std::ofstream, and std::fstream objects. The wrappers perform the following steps:

  • check the open modes make sense
  • check that the call to open() is successful
  • (for input streams) check that the opened file is peek-able
  • turn on the badbit in the exception mask

Function Documentation

◆ check_strerror_r() [1/2]

char * strict_fstream::check_strerror_r ( char * r,
char * ,
int  )
inline

Definition at line 71 of file zstr.hpp.

◆ check_strerror_r() [2/2]

char * strict_fstream::check_strerror_r ( int r,
char * buff,
size_t buff_size )
inline

Definition at line 65 of file zstr.hpp.