Go to the documentation of this file.
38 #ifndef prefixOSstream_H
39 #define prefixOSstream_H
87 const string&
prefix()
const
121 const bool quoted=
true
streamFormat format() const
Return current stream format.
double doubleScalar
Double precision floating point scalar type.
A class for handling words, derived from string.
virtual void indent()
Add indentation characters.
compressionType
Enumeration for the format of data in the stream.
float floatScalar
Float precision floating point scalar type.
compressionType compression() const
Return the stream compression.
A token holds items read from Istream.
virtual Ostream & writeQuoted(const std::string &, const bool quoted=true)
Write std::string surrounded by quotes.
virtual Ostream & write(const token &)
Write next token to stream.
static const versionNumber currentVersion
Current version number.
Version of OSstream which prints a prefix on each line.
string & prefix()
Return non-const access to the prefix of the stream.
virtual const fileName & name() const
Return the name of the stream.
virtual void print(Ostream &) const
Print description of IOstream to Ostream.
prefixOSstream(ostream &os, const string &name, streamFormat format=ASCII, versionNumber version=currentVersion, compressionType compression=UNCOMPRESSED)
Set stream status.
versionNumber version() const
Return the stream version.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
const string & prefix() const
Return the prefix of the stream.
streamFormat
Enumeration for the format of data in the stream.