41 #ifndef Foam_prefixOSstream_H 42 #define Foam_prefixOSstream_H 68 inline void checkWritePrefix();
79 const string& streamName,
123 const std::string& val,
124 const bool quoted=
true Generic output stream using a standard (STL) stream.
virtual Ostream & writeQuoted(const std::string &val, const bool quoted=true)
Write std::string surrounded by quotes.
A token holds an item read from Istream.
A simple container for options an IOstream can normally have.
constexpr IOstreamOption(streamFormat fmt=streamFormat::ASCII, compressionType comp=compressionType::UNCOMPRESSED) noexcept
Default construct (ASCII, UNCOMPRESSED, currentVersion) or construct with format, compression...
unsigned int count(const UList< bool > &bools, const bool val=true)
Count number of 'true' entries.
Version of OSstream that prints a prefix on each line.
A class for handling words, derived from Foam::string.
const string & prefix() const noexcept
Return the stream prefix.
virtual void print(Ostream &os) const
Print stream description to Ostream.
An Ostream is an abstract base class for all output systems (streams, files, token lists...
OBJstream os(runTime.globalPath()/outputName)
virtual void indent()
Add indentation characters.
const dimensionedScalar c
Speed of light in a vacuum.
virtual bool write(const token &tok)
Write token to stream or otherwise handle it.
prefixOSstream(std::ostream &os, const string &streamName, IOstreamOption streamOpt=IOstreamOption())
Construct and set stream status.