117 const bool quoted=
true 136 virtual Ostream&
write(
const char*, std::streamsize) = 0;
139 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';
A class for handling verbatimStrings, derived from string.
A class for handling keywords in dictionaries.
unsigned short indentLevel_
Current indent level.
virtual Ostream & write(const char)=0
Write character.
virtual void flush()=0
Flush stream.
virtual ~Ostream()
Destructor.
Ostream(streamFormat format=ASCII, versionNumber version=currentVersion, compressionType compression=UNCOMPRESSED)
Set stream status.
Ostream &(* OstreamManip)(Ostream &)
Ostream & operator()() const
Return a non-const reference to const Ostream.
versionNumber version() const
Return the stream version.
void decrIndent()
Decrememt the indent level.
virtual Ostream & writeQuoted(const std::string &, const bool quoted=true)=0
Write std::string surrounded by quotes.
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.
streamFormat format() const
Return current stream format.
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.
long double longDoubleScalar
Lang double precision floating point scalar type.
compressionType compression() const
Return the stream compression.
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.
friend Ostream & operator<<(Ostream &os, const streamFormat &sf)
Ostream operator.
static const unsigned short indentSize_
Number of spaces per indent level.
IOstream &(* IOstreamManip)(IOstream &)
virtual void indent()=0
Add indentation characters.
virtual int precision() const =0
Get precision of output field.
unsigned short indentLevel() const
Return indent level.