32 inline void Foam::prefixOSstream::checkWritePrefix()
34 if (printPrefix_ && prefix_.size())
53 OSstream(os, name, format, version, compression),
63 os <<
"prefixOSstream ";
87 size_t len = strlen(str);
120 const std::string& val,
167 std::streamsize count
A class for handling verbatimStrings, derived from string.
prefixOSstream(ostream &os, const string &name, streamFormat format=ASCII, versionNumber version=currentVersion, compressionType compression=UNCOMPRESSED)
Set stream status.
virtual void print(Ostream &) const
Print description of IOstream to Ostream.
virtual Ostream & writeQuoted(const std::string &, const bool quoted=true)
Write std::string with optional double quotes.
virtual void indent()
Add indentation characters.
OSstream(ostream &os, const string &name, streamFormat format=ASCII, versionNumber version=currentVersion, compressionType compression=UNCOMPRESSED)
Set stream status.
const dimensionedScalar & c
Speed of light in a vacuum.
A class for handling words, derived from string.
float floatScalar
Float precision floating point scalar type.
streamFormat
Enumeration for the format of data in the stream.
double doubleScalar
Double precision floating point scalar type.
compressionType
Enumeration for the format of data in the stream.
An Ostream is an abstract base class for all output systems (streams, files, token lists...
virtual void indent()
Add indentation characters.
virtual Ostream & write(const char)
Write character.
long double longDoubleScalar
Lang double precision floating point scalar type.
virtual Ostream & writeQuoted(const std::string &, const bool quoted=true)
Write std::string surrounded by quotes.
virtual void print(Ostream &) const
Print description of IOstream to Ostream.
virtual Ostream & write(const char)
Write character.