124 const bool quoted=
true 140 virtual Ostream&
write(
const char*, std::streamsize) = 0;
143 virtual void indent() = 0;
173 virtual void flush() = 0;
176 virtual void endl() = 0;
179 virtual int width()
const = 0;
182 virtual int width(
const int w) = 0;
198 return const_cast<Ostream&
>(*this);
262 static const char tab =
'\t';
263 static const char nl =
'\n';
A class for handling keywords in dictionaries.
unsigned short indentLevel_
Current indent level.
streamFormat format() const
Return current stream format.
virtual void flush()=0
Flush stream.
virtual ~Ostream()
Destructor.
Ostream(streamFormat format=ASCII, versionNumber version=currentVersion, compressionType compression=UNCOMPRESSED)
Set stream status.
A token holds items read from Istream.
Ostream &(* OstreamManip)(Ostream &)
void decrIndent()
Decrememt the indent level.
virtual Ostream & writeQuoted(const std::string &, const bool quoted=true)=0
Write std::string surrounded by quotes.
static const unsigned short entryIndentation_
Indentation of the entry from the start of the keyword.
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.
versionNumber version() const
Return the stream version.
virtual void endl()=0
Add newline and flush stream.
compressionType
Enumeration for the format of data in the stream.
void incrIndent()
Incrememt the indent level.
An Ostream is an abstract base class for all output systems (streams, files, token lists...
virtual int width() const =0
Get width of output field.
Ostream & writeKeyword(const keyType &)
Write the keyword followed by an appropriate indentation.
Ostream & operator()() const
Return a non-const reference to const Ostream.
An IOstream is an abstract base class for all input/output systems; be they streams, files, token lists etc.
static const versionNumber currentVersion
Current version number.
unsigned short indentLevel() const
Return indent level.
friend Ostream & operator<<(Ostream &os, const streamFormat &sf)
Ostream operator.
static const unsigned short indentSize_
Number of spaces per indent level.
virtual Ostream & write(const token &)=0
Write next token to stream.
compressionType compression() const
Return the stream compression.
IOstream &(* IOstreamManip)(IOstream &)
virtual void indent()=0
Add indentation characters.
virtual int precision() const =0
Get precision of output field.