127 const bool quoted=
true
152 virtual Ostream&
write(
const char*, std::streamsize) = 0;
155 virtual void indent() = 0;
193 virtual void flush() = 0;
196 virtual void endl() = 0;
199 virtual int width()
const = 0;
202 virtual int width(
const int w) = 0;
218 return const_cast<Ostream&
>(*this);
297 static const char tab =
'\t';
298 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 indentSize() const
Return the number of characters in an indent.
virtual Ostream & write(const token &)
Write token.
unsigned short indentLevel() const
Return indent level.
virtual void indent()=0
Add indentation characters.
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.
virtual Ostream & writeCompoundTag(const word &typeName)
Write the compound token tag if the name is a compound token.
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 token holds items read from Istream.
Template function which returns the un-mangled name of a given type. Useful for types which do not ha...
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 & indentOrNl(Ostream &os)
Indent stream or add newline if indent level == 0.
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.