122 const bool quoted=
true 138 virtual Ostream&
write(
const char*, std::streamsize) = 0;
141 virtual void indent() = 0;
171 virtual void flush() = 0;
174 virtual void endl() = 0;
177 virtual int width()
const = 0;
180 virtual int width(
const int w) = 0;
196 return const_cast<Ostream&
>(*this);
260 static const char tab =
'\t';
261 static const char nl =
'\n';
virtual ~Ostream()
Destructor.
Ostream &(* OstreamManip)(Ostream &)
static const unsigned short indentSize_
Number of spaces per indent level.
virtual void endl()=0
Add newline and flush stream.
compressionType compression() const
Return the stream compression.
versionNumber version() const
Return the stream version.
virtual int width() const =0
Get width of output field.
float floatScalar
Float precision floating point scalar type.
static const unsigned short entryIndentation_
Indentation of the entry from the start of the keyword.
A class for handling words, derived from string.
virtual void indent()=0
Add indentation characters.
A class for handling keywords in dictionaries.
IOstream &(* IOstreamManip)(IOstream &)
friend Ostream & operator<<(Ostream &os, const streamFormat &sf)
Ostream operator.
streamFormat
Enumeration for the format of data in the stream.
unsigned short indentLevel_
Current indent level.
streamFormat format() const
Return current stream format.
virtual Ostream & write(const token &)=0
Write next token to stream.
virtual Ostream & writeQuoted(const std::string &, const bool quoted=true)=0
Write std::string surrounded by quotes.
A token holds items read from Istream.
Ostream & operator()() const
Return a non-const reference to const Ostream.
void decrIndent()
Decrememt the indent level.
void incrIndent()
Incrememt the indent level.
Ostream & writeKeyword(const keyType &)
Write the keyword followed by an appropriate indentation.
compressionType
Enumeration for the format of data in the stream.
virtual int precision() const =0
Get precision of output field.
virtual void flush()=0
Flush stream.
Ostream(streamFormat format=ASCII, versionNumber version=currentVersion, compressionType compression=UNCOMPRESSED)
Set stream status.
An Ostream is an abstract base class for all output systems (streams, files, token lists...
double doubleScalar
Double precision floating point scalar type.
static const versionNumber currentVersion
Current version number.
An IOstream is an abstract base class for all input/output systems; be they streams, files, token lists etc.
unsigned short indentLevel() const
Return indent level.