93 <<
"Cannot open empty file name"
100 <<
"Could not open file " << pathname
124 <<
"No stream allocated\n"
139 <<
"No stream allocated\n"
167 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...
A simple container for options an IOstream can normally have.
atomicType
Atomic operations (output).
appendType
File appending (NO_APPEND | APPEND_APP | APPEND_ATE).
void setBad() noexcept
Set stream state to be 'bad'.
bool good() const noexcept
True if next operation might succeed.
bool opened() const noexcept
True if stream has been opened.
label lineNumber_
The file line.
InfoProxy< IOstream > info() const noexcept
Return info proxy, used to print IOstream information to a stream.
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 as an OSstream, normally using std::ofstream for the actual output.
void print(Ostream &os) const override
Print stream description.
OFstream(std::nullptr_t)
Construct a null output file stream that behaves like /dev/null.
~OFstream()
Destructor. Possibly invokes an atomic rename (preference defined during construction).
virtual const std::ostream & stdStream() const override
Const access to underlying std::ostream.
virtual void rewind()
Rewind the stream so that it may be written again. Reopens the file (truncation).
Generic output stream using a standard (STL) stream.
OSstream(const OSstream &)=default
Copy construct.
virtual void print(Ostream &os) const override
Print stream description to Ostream.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
A class for handling file names.
A wrapped std::ofstream with possible compression handling (ogzstream) that behaves much like a std::...
ofstreamPointer(const ofstreamPointer &)=delete
No copy construct.
std::ostream * get() noexcept
The stream pointer (ofstream or ogzstream).
void reopen(const std::string &pathname)
Reopen for compressed/non-compressed. Discards append status.
void close(const std::string &pathname)
Close stream and rename file.
#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))))
Namespace for handling debugging switches.
Ostream & endl(Ostream &os)
Add newline and flush stream.
errorManip< error > abort(error &err)
error FatalError
Error stream (stdout output on all processes), with additional 'FOAM FATAL ERROR' header text and sta...