Go to the documentation of this file.
40 #ifndef prefixOSstream_H
41 #define prefixOSstream_H
66 inline void checkWritePrefix();
89 const string&
prefix()
const
123 const std::string&
val,
124 const bool quoted=
true
label ListType::const_reference val
double doubleScalar
Floating-point double precision scalar type.
A class for handling words, derived from Foam::string.
virtual void print(Ostream &os) const
Print description of IOstream to Ostream.
virtual void indent()
Add indentation characters.
float floatScalar
Floating-point single precision scalar type.
streamFormat format() const noexcept
Get the current stream format.
static const versionNumber currentVersion
The current version number.
prefixOSstream(std::ostream &os, const string &name, streamFormat format=ASCII, versionNumber version=currentVersion, compressionType compression=UNCOMPRESSED)
Construct and set stream status.
A token holds an item read from Istream.
virtual bool write(const token &tok)
Write token to stream or otherwise handle it.
Version of OSstream which prints a prefix on each line.
Representation of a major/minor version number.
string & prefix()
Return non-const access to the stream prefix.
virtual const fileName & name() const
Return the name of the stream.
versionNumber version() const noexcept
Get the stream version.
virtual Ostream & writeQuoted(const std::string &val, const bool quoted=true)
Write std::string surrounded by quotes.
streamFormat
Data format (ascii | binary)
unsigned int count(const UList< bool > &bools, const bool val=true)
Count number of 'true' entries.
const dimensionedScalar c
Speed of light in a vacuum.
compressionType
Compression treatment (UNCOMPRESSED | COMPRESSED)
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
compressionType compression() const noexcept
Get the stream compression.
const string & prefix() const
Return the stream prefix.