35 inline void Foam::prefixOSstream::checkWritePrefix()
37 if (printPrefix_ && !prefix_.empty())
50 const string& streamName,
51 IOstreamOption streamOpt
54 OSstream(
os, streamName, streamOpt),
64 os <<
"prefixOSstream ";
94 const size_t len = strlen(str);
120 const std::string& val,
160 std::streamsize
count
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.
virtual void indent()
Add indentation characters.
virtual void print(Ostream &os) const
Print stream description to Ostream.
unsigned int count(const UList< bool > &bools, const bool val=true)
Count number of 'true' entries.
A class for handling words, derived from Foam::string.
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...
virtual bool write(const token &tok)
Write token to stream or otherwise handle it.
virtual Ostream & writeQuoted(const std::string &str, const bool quoted=true)
Write std::string surrounded by quotes.
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.