117 const bool quoted=
true
142 virtual Ostream&
write(
const char*, std::streamsize) = 0;
145 virtual void indent() = 0;
177 virtual void flush() = 0;
180 virtual void endl() = 0;
183 virtual int width()
const = 0;
186 virtual int width(
const int w) = 0;
202 return const_cast<Ostream&
>(*this);
266 static const char tab =
'\t';
267 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.
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,...
Ostream(streamFormat format=ASCII, versionNumber version=currentVersion, compressionType compression=UNCOMPRESSED)
Set stream status.
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.
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.