86 <<
"Cannot open empty file name"
93 <<
"Could not open file " << pathname
109 <<
"No stream allocated\n"
124 <<
"No stream allocated\n"
159 stdStream().rdbuf()->pubseekpos(0, std::ios_base::out);
Functions used by OpenFOAM that are specific to POSIX compliant operating systems and need to be repl...
The IOstreamOption is a simple container for options an IOstream can normally have.
@ COMPRESSED
compression = true
bool good() const noexcept
True if next operation might succeed.
bool opened() const noexcept
True if stream has been opened.
void setBad()
Set stream state to be 'bad'.
label lineNumber_
The file line.
InfoProxy< IOstream > info() const
Return info proxy.
void setClosed() noexcept
Set stream closed.
void setState(std::ios_base::iostate state) noexcept
Set stream state.
void setOpened() noexcept
Set stream opened.
Output to file stream, using an OSstream.
virtual std::ostream & stdStream()
Access to underlying std::ostream.
Generic output stream using a standard (STL) stream.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
A class for handling file names.
scalar print()
Print to screen.
A wrapped std::ofstream with possible compression handling (ogzstream) that behaves much like a std::...
void reopen_gz(const std::string &pathname_gz)
Special 'rewind' method for compressed stream.
std::ostream * get() noexcept
The stream pointer (ofstream or ogzstream)
void reopen(const std::string &pathname)
General 'rewind' method (non-compressed)
IOstreamOption::compressionType whichCompression() const
Which compression type?
#define defineTypeNameAndDebug(Type, DebugSwitch)
Define the typeName and debug information.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
OBJstream os(runTime.globalPath()/outputName)
#define InfoInFunction
Report an information message using Foam::Info.
rAUs append(new volScalarField(IOobject::groupName("rAU", phase1.name()), 1.0/(U1Eqn.A()+byDt(max(phase1.residualAlpha() - alpha1, scalar(0)) *rho1))))
Ostream & endl(Ostream &os)
Add newline and flush stream.
errorManip< error > abort(error &err)
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for INVALID.