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);
List< ReturnType > get(const UPtrList< T > &list, const AccessOp &aop)
List of values generated by applying the access operation to each list item.
label lineNumber_
The file line.
bool opened() const noexcept
True if stream has been opened.
Generic output stream using a standard (STL) stream.
A wrapped std::ofstream with possible compression handling (ogzstream) that behaves much like a std::...
A class for handling file names.
void setClosed() noexcept
Set stream closed.
std::ostream * get() noexcept
The stream pointer (ofstream or ogzstream)
error FatalError
Error stream (stdout output on all processes), with additional 'FOAM FATAL ERROR' header text and sta...
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
void setState(std::ios_base::iostate state) noexcept
Set stream state.
~OFstream()
Destructor. Possibly invokes an atomic rename (preference defined during construction) ...
Output to file stream as an OSstream, normally using std::ofstream for the actual output...
void print(Ostream &os) const override
Print stream description.
Ostream & endl(Ostream &os)
Add newline and flush stream.
InfoProxy< IOstream > info() const noexcept
Return info proxy, used to print IOstream information to a stream.
A simple container for options an IOstream can normally have.
virtual const std::ostream & stdStream() const override
Const access to underlying std::ostream.
Functions used by OpenFOAM that are specific to POSIX compliant operating systems and need to be repl...
atomicType
Atomic operations (output)
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for expressions::valueTypeCode::INVALID.
virtual void rewind()
Rewind the stream so that it may be written again. Reopens the file (truncation)
errorManip< error > abort(error &err)
void reopen(const std::string &pathname)
Reopen for compressed/non-compressed. Discards append status.
int debug
Static debugging option.
OBJstream os(runTime.globalPath()/outputName)
defineTypeNameAndDebug(combustionModel, 0)
appendType
File appending (NO_APPEND | APPEND_APP | APPEND_ATE)
OFstream(std::nullptr_t)
Construct a null output file stream that behaves like /dev/null.
void close(const std::string &pathname)
Close stream and rename file.
rAUs append(new volScalarField(IOobject::groupName("rAU", phase1.name()), 1.0/(U1Eqn.A()+byDt(max(phase1.residualAlpha() - alpha1, scalar(0)) *rho1))))
bool good() const noexcept
True if next operation might succeed.
void setOpened() noexcept
Set stream opened.
virtual void print(Ostream &os) const override
Print stream description to Ostream.
void setBad() noexcept
Set stream state to be 'bad'.
#define InfoInFunction
Report an information message using Foam::Info.