68 streamOpt.compression(),
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, using an OSstream.
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.
virtual void print(Ostream &os) const
Print stream description to Ostream.
A simple container for options an IOstream can normally have.
virtual std::ostream & stdStream()
Access to underlying std::ostream.
Functions used by OpenFOAM that are specific to POSIX compliant operating systems and need to be repl...
void setBad()
Set stream state to be 'bad'.
atomicType
Atomic operations (output)
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for 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.
int debug
Static debugging option.
OBJstream os(runTime.globalPath()/outputName)
defineTypeNameAndDebug(combustionModel, 0)
appendType
File appending (NON_APPEND | APPEND)
OFstream(std::nullptr_t)
Construct a null output file stream.
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 print(Ostream &os) const
Print stream description.
void setOpened() noexcept
Set stream opened.
#define InfoInFunction
Report an information message using Foam::Info.