38 #ifndef prefixOSstream_H 39 #define prefixOSstream_H 64 inline void checkWritePrefix();
87 const string&
prefix()
const 121 const bool quoted=
true prefixOSstream(ostream &os, const string &name, streamFormat format=ASCII, versionNumber version=currentVersion, compressionType compression=UNCOMPRESSED)
Set stream status.
const string & prefix() const
Return the prefix of the stream.
virtual Ostream & write(const token &)
Write next token to stream.
compressionType compression() const
Return the stream compression.
versionNumber version() const
Return the stream version.
virtual Ostream & writeQuoted(const std::string &, const bool quoted=true)
Write std::string surrounded by quotes.
float floatScalar
Float precision floating point scalar type.
A class for handling words, derived from string.
virtual void print(Ostream &) const
Print description of IOstream to Ostream.
streamFormat
Enumeration for the format of data in the stream.
streamFormat format() const
Return current stream format.
A token holds items read from Istream.
virtual const fileName & name() const
Return the name of the stream.
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.
double doubleScalar
Double precision floating point scalar type.
Version of OSstream which prints a prefix on each line.
static const versionNumber currentVersion
Current version number.