Go to the documentation of this file.
73 <<
"Cannot open empty file name"
85 <<
"Could not open file " << pathname
101 <<
"No stream allocated\n"
116 <<
"No stream allocated\n"
161 <<
"file " << this->
name() <<
" does not exist"
166 return const_cast<IFstream&
>(*this);
virtual void print(Ostream &os) const
Functions used by OpenFOAM that are specific to POSIX compliant operating systems and need to be repl...
virtual std::istream & stdStream()
A class for handling file names.
Input from file stream, using an ISstream.
virtual void print(Ostream &os) const
Generic input stream using a standard (STL) stream.
IFstream & operator()() const
bool isFile(const fileName &name, const bool checkGzip=true, const bool followLink=true)
Ostream & endl(Ostream &os)
void setOpened() noexcept
IOstreamOption::compressionType whichCompression() const
bool good() const noexcept
static void check(const int retVal, const char *what)
void reopen_gz(const std::string &pathname_gz)
The IOstreamOption is a simple container for options an IOstream can normally have.
bool opened() const noexcept
InfoProxy< IOstream > info() const
virtual const fileName & name() const
void setClosed() noexcept
OBJstream os(runTime.globalPath()/outputName)
std::istream * get() noexcept
errorManip< error > abort(error &err)
IFstream(const fileName &pathname, IOstreamOption streamOpt=IOstreamOption())
errorManipArg< error, int > exit(error &err, const int errNo=1)
void setState(std::ios_base::iostate state) noexcept
void exit(const int errNo=1)
#define FatalErrorInFunction
@ COMPRESSED
compression = true
A wrapped std::ifstream with possible compression handling (igzstream) that behaves much like a std::...
List< ReturnType > get(const UPtrList< T > &list, const AccessOp &aop)
word name(const expressions::valueTypeCode typeCode)
#define FatalIOErrorInFunction(ios)
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
compressionType compression() const noexcept
defineTypeNameAndDebug(combustionModel, 0)