118 const bool quoted=
true
143 virtual Ostream&
write(
const char*, std::streamsize) = 0;
146 virtual void indent() = 0;
178 virtual void flush() = 0;
181 virtual void endl() = 0;
184 virtual int width()
const = 0;
187 virtual int width(
const int w) = 0;
203 return const_cast<Ostream&
>(*this);
267 static const char tab =
'\t';
268 static const char nl =
'\n';
An IOstream is an abstract base class for all input/output systems; be they streams,...
static const versionNumber currentVersion
Current version number.
streamFormat format() const
Return current stream format.
bool global() const
Return global state.
streamFormat
Enumeration for the format of data in the stream.
versionNumber version() const
Return the stream version.
compressionType compression() const
Return the stream compression.
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,...
static const unsigned short indentSize_
Number of spaces per indent level.
Ostream & writeKeyword(const keyType &)
Write the keyword followed by an appropriate indentation.
virtual void flush()=0
Flush stream.
unsigned short indentLevel() const
Return indent level.
virtual void indent()=0
Add indentation characters.
virtual Ostream & write(const char)=0
Write character.
virtual int precision() const =0
Get precision of output field.
void incrIndent()
Incrememt the indent level.
virtual void endl()=0
Add newline and flush stream.
virtual int width() const =0
Get width of output field.
Ostream & operator()() const
Return a non-const reference to const Ostream.
Ostream(const streamFormat format=ASCII, const versionNumber version=currentVersion, const compressionType compression=UNCOMPRESSED, const bool global=false)
Set stream status.
virtual Ostream & writeQuoted(const std::string &, const bool quoted=true)=0
Write std::string surrounded by quotes.
void decrIndent()
Decrememt the indent level.
unsigned short indentLevel_
Current indent level.
virtual ~Ostream()
Destructor.
A class for handling keywords in dictionaries.
A class for handling verbatimStrings, derived from string.
A class for handling words, derived from string.
Ostream & decrIndent(Ostream &os)
Decrement the indent level.
Ostream & endl(Ostream &os)
Add newline and flush stream.
double doubleScalar
Double precision floating point scalar type.
Ostream & incrIndent(Ostream &os)
Increment the indent level.
IOstream &(* IOstreamManip)(IOstream &)
float floatScalar
Float precision floating point scalar type.
Ostream &(* OstreamManip)(Ostream &)
Ostream & operator<<(Ostream &os, const fvConstraints &constraints)
Ostream & indent(Ostream &os)
Indent stream.
Ostream & flush(Ostream &os)
Flush stream.
long double longDoubleScalar
Lang double precision floating point scalar type.