Go to the documentation of this file.
122 const bool quoted=
true
138 virtual Ostream&
write(
const char*, std::streamsize) = 0;
141 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';
streamFormat format() const
Return current stream format.
double doubleScalar
Double precision floating point scalar type.
unsigned short & indentLevel()
Access to indent level.
volScalarField w(IOobject("w", runTime.timeName(), mesh, IOobject::READ_IF_PRESENT, IOobject::NO_WRITE), mesh, dimensionedScalar("w", dimensionSet(0, 0, 0, 0, 0, 0, 0), 0.0))
A class for handling words, derived from string.
Ostream & operator()() const
Return a non-const reference to const Ostream.
compressionType
Enumeration for the format of data in the stream.
float floatScalar
Float precision floating point scalar type.
compressionType compression() const
Return the stream compression.
IOstream &(* IOstreamManip)(IOstream &)
An IOstream is an abstract base class for all input/output systems; be they streams,...
Ostream & endl(Ostream &os)
Add newline and flush stream.
A token holds items read from Istream.
static const unsigned short entryIndentation_
Indentation of the entry from the start of the keyword.
static const versionNumber currentVersion
Current version number.
Ostream & incrIndent(Ostream &os)
Increment the indent level.
virtual int precision() const =0
Get precision of output field.
A class for handling keywords in dictionaries.
Ostream & flush(Ostream &os)
Flush stream.
virtual void endl()=0
Add newline and flush stream.
virtual Ostream & write(const token &)=0
Write next token to stream.
IOstream(streamFormat format, versionNumber version, compressionType compression=UNCOMPRESSED)
Construct setting format and version.
static const unsigned short indentSize_
Number of spaces per indent level.
Ostream &(* OstreamManip)(Ostream &)
Ostream(streamFormat format=ASCII, versionNumber version=currentVersion, compressionType compression=UNCOMPRESSED)
Set stream status.
Ostream & operator<<(Ostream &, const edgeMesh &)
void decrIndent()
Decrememt the indent level.
virtual ~Ostream()
Destructor.
Ostream & decrIndent(Ostream &os)
Decrement the indent level.
unsigned short indentLevel() const
Return indent level.
Ostream & indent(Ostream &os)
Indent stream.
virtual void flush()=0
Flush stream.
unsigned short indentLevel_
Current indent level.
void incrIndent()
Incrememt the indent level.
versionNumber version() const
Return the stream version.
virtual Ostream & writeQuoted(const std::string &, const bool quoted=true)=0
Write std::string surrounded by quotes.
Ostream & writeKeyword(const keyType &)
Write the keyword followed by an appropriate indentation.
virtual void indent()=0
Add indentation characters.
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.
streamFormat
Enumeration for the format of data in the stream.