An Ostream is an abstract base class for all output systems (streams, files, token lists, etc). More...


Public Member Functions | |
| Ostream (const Ostream &)=default | |
| Copy construct. More... | |
| virtual | ~Ostream ()=default |
| Destructor. More... | |
| Ostream (IOstreamOption streamOpt=IOstreamOption()) | |
| Default construct (ASCII, uncompressed), construct with specified stream option. More... | |
| Ostream (IOstreamOption::streamFormat fmt, IOstreamOption::compressionType cmp=IOstreamOption::UNCOMPRESSED) | |
| Construct with format (uncompressed) More... | |
| virtual bool | write (const token &tok)=0 |
| Write token to stream or otherwise handle it. More... | |
| virtual Ostream & | write (const char c)=0 |
| Write character. More... | |
| virtual Ostream & | writeQuoted (const char *str, std::streamsize len, const bool quoted=true)=0 |
| Write character/string content, with/without surrounding quotes. More... | |
| virtual Ostream & | writeQuoted (const std::string &str, const bool quoted=true) |
| Write string content, with/without surrounding quotes. More... | |
| virtual Ostream & | write (const char *str)=0 |
| Write character string. More... | |
| virtual Ostream & | write (const word &str)=0 |
| Write word (unquoted) More... | |
| virtual Ostream & | write (const std::string &str)=0 |
| Write string content (usually quoted) More... | |
| virtual Ostream & | write (const keyType &kw) |
| Write keyType. More... | |
| virtual Ostream & | write (const int32_t val)=0 |
| Write int32_t. More... | |
| virtual Ostream & | write (const int64_t val)=0 |
| Write int64_t. More... | |
| virtual Ostream & | write (const float val)=0 |
| Write float. More... | |
| virtual Ostream & | write (const double val)=0 |
| Write double. More... | |
| virtual Ostream & | write (const char *data, std::streamsize count)=0 |
| Write binary block. More... | |
| virtual Ostream & | writeRaw (const char *data, std::streamsize count)=0 |
| Low-level raw binary output. More... | |
| virtual bool | beginRawWrite (std::streamsize count)=0 |
| Emit begin marker for low-level raw binary output. More... | |
| virtual bool | endRawWrite ()=0 |
| Emit end marker for low-level raw binary output. More... | |
| virtual void | indent ()=0 |
| Add indentation characters. More... | |
| unsigned short | indentSize () const noexcept |
| Return indent size (spaces per level) More... | |
| unsigned short | indentSize (unsigned short val) noexcept |
| Change indent size (spaces per level), return old value. More... | |
| unsigned short | indentLevel () const noexcept |
| Return the indent level. More... | |
| unsigned short | indentLevel (unsigned short val) noexcept |
| Change the indent level, return old value. More... | |
| void | incrIndent () noexcept |
| Increment the indent level. More... | |
| void | decrIndent () |
| Decrement the indent level. More... | |
| virtual Ostream & | writeKeyword (const keyType &kw) |
| Write the keyword followed by an appropriate indentation. More... | |
| virtual Ostream & | beginBlock (const keyType &kw) |
| Write begin block group with the given name. More... | |
| virtual Ostream & | beginBlock () |
| Write begin block group without a name. More... | |
| virtual Ostream & | endBlock () |
| Write end block group. More... | |
| virtual Ostream & | endEntry () |
| Write end entry (';') followed by newline. More... | |
| template<class T > | |
| Ostream & | writeEntry (const keyType &key, const T &value) |
| Write a keyword/value entry. More... | |
| template<class T > | |
| Ostream & | writeEntryIfDifferent (const word &key, const T &value1, const T &value2) |
| Write a keyword/value entry only when the two values differ. More... | |
| virtual void | flush ()=0 |
| Flush stream. More... | |
| virtual void | endl ()=0 |
| Add newline and flush stream. More... | |
| virtual char | fill () const =0 |
| Get padding character. More... | |
| virtual char | fill (const char fillch)=0 |
| Set padding character for formatted field up to field width. More... | |
| virtual int | width () const =0 |
| Get width of output field. More... | |
| virtual int | width (const int w)=0 |
| Set width of output field (and return old width) More... | |
| virtual int | precision () const =0 |
| Get precision of output field. More... | |
| virtual int | precision (const int p)=0 |
| Set precision of output field (and return old precision) More... | |
| Ostream & | operator() () const |
| Return a non-const reference to const Ostream. More... | |
| unsigned short & | indentLevel () noexcept |
| Access to indent level. More... | |
| unsigned short & | indentSize () noexcept |
| Access to indent size. More... | |
Public Member Functions inherited from IOstream | |
| IOstream (const IOstream &)=default | |
| Copy construct. More... | |
| virtual | ~IOstream ()=default |
| Destructor. More... | |
| IOstream (IOstreamOption streamOpt=IOstreamOption()) | |
| Default construct (ASCII, uncompressed), construct with specified stream option. More... | |
| IOstream (IOstreamOption::streamFormat fmt, IOstreamOption::versionNumber ver, IOstreamOption::compressionType cmp=IOstreamOption::UNCOMPRESSED) | |
| Construct with format, version (compression) More... | |
| virtual const fileName & | name () const |
| The name of the stream. More... | |
| fileName | relativeName () const |
| Return the name of the stream relative to the current case. More... | |
| virtual bool | check (const char *operation) const |
| Check IOstream status for given operation. More... | |
| bool | fatalCheck (const char *operation) const |
| Check IOstream status for given operation. More... | |
| bool | opened () const noexcept |
| True if stream has been opened. More... | |
| bool | closed () const noexcept |
| True if stream is closed. More... | |
| bool | good () const noexcept |
| True if next operation might succeed. More... | |
| bool | eof () const noexcept |
| True if end of input seen. More... | |
| bool | fail () const noexcept |
| True if next operation will fail. More... | |
| bool | bad () const noexcept |
| True if stream is corrupted. More... | |
| operator bool () const noexcept | |
| True if the stream has not failed. More... | |
| bool | operator! () const noexcept |
| True if the stream has failed. More... | |
| unsigned | labelByteSize () const noexcept |
| The sizeof (label) in bytes associated with the stream. More... | |
| unsigned | scalarByteSize () const noexcept |
| The sizeof (scalar) in bytes associated with the stream. More... | |
| void | setLabelByteSize (unsigned nbytes) noexcept |
| Set the sizeof (label) in bytes associated with the stream. More... | |
| void | setScalarByteSize (unsigned nbytes) noexcept |
| Set the sizeof (scalar) in bytes associated with the stream. More... | |
| template<class T = label> | |
| std::enable_if_t< std::is_integral_v< T >, bool > | checkLabelSize () const noexcept |
| Check if the label byte-size associated with the stream is the same as the given type. More... | |
| template<class T = scalar> | |
| std::enable_if_t< std::is_floating_point_v< T >, bool > | checkScalarSize () const noexcept |
| Check if the scalar byte-size associated with the stream is the same as the given type. More... | |
| label | lineNumber () const noexcept |
| Const access to the current stream line number. More... | |
| label & | lineNumber () noexcept |
| Non-const access to the current stream line number. More... | |
| label | lineNumber (const label num) noexcept |
| Set the stream line number. More... | |
| void | setEof () noexcept |
| Set stream state as reached 'eof'. More... | |
| void | setFail () noexcept |
| Set stream state as 'failed'. More... | |
| void | setBad () noexcept |
| Set stream state to be 'bad'. More... | |
| virtual std::ios_base::fmtflags | flags () const =0 |
| Return current stream flags. More... | |
| virtual std::ios_base::fmtflags | flags (std::ios_base::fmtflags)=0 |
| Set stream flags, return old stream flags. More... | |
| std::ios_base::fmtflags | setf (std::ios_base::fmtflags f) |
| Set stream flag(s), return old stream flags. More... | |
| std::ios_base::fmtflags | setf (const std::ios_base::fmtflags f, const std::ios_base::fmtflags mask) |
| Set stream flag(s) with mask, return old stream flags. More... | |
| std::ios_base::fmtflags | unsetf (std::ios_base::fmtflags f) |
| Unset stream flags, return old stream flags. More... | |
| virtual void | print (Ostream &os) const |
| Print stream description to Ostream. More... | |
| void | print (Ostream &os, const int streamState) const |
| Print information about the stream state bits. More... | |
| InfoProxy< IOstream > | info () const noexcept |
| Return info proxy, used to print IOstream information to a stream. More... | |
Public Member Functions inherited from IOstreamOption | |
| constexpr | IOstreamOption (streamFormat fmt=streamFormat::ASCII, compressionType comp=compressionType::UNCOMPRESSED) noexcept |
| Default construct (ASCII, UNCOMPRESSED, currentVersion) or construct with format, compression. More... | |
| constexpr | IOstreamOption (streamFormat fmt, compressionType comp, versionNumber ver) noexcept |
| Construct from components (format, compression, version) More... | |
| constexpr | IOstreamOption (streamFormat fmt, versionNumber ver, compressionType comp=compressionType::UNCOMPRESSED) noexcept |
| Construct from components (format, version, compression) More... | |
| IOstreamOption (const IOstreamOption &opt, streamFormat fmt) noexcept | |
| Copy construct with change of format. More... | |
| streamFormat | format () const noexcept |
| Get the current stream format. More... | |
| streamFormat | format (const streamFormat fmt) noexcept |
| Set the stream format. More... | |
| streamFormat | format (const word &formatName) |
| Set the stream format from string value. More... | |
| compressionType | compression () const noexcept |
| Get the stream compression. More... | |
| compressionType | compression (const compressionType comp) noexcept |
| Set the stream compression. More... | |
| compressionType | compression (const word &compName) |
| Set the stream compression from string value. More... | |
| versionNumber | version () const noexcept |
| Get the stream version. More... | |
| versionNumber | version (const versionNumber ver) noexcept |
| Set the stream version. More... | |
| versionNumber | version (const token &tok) |
| Set the stream version from token. More... | |
Protected Attributes | |
| unsigned short | indentSize_ = 4 |
| Number of spaces per indent level. More... | |
| unsigned short | indentLevel_ = 0 |
| Current indent level. More... | |
Protected Attributes inherited from IOstream | |
| std::ios_base::iostate | ioState_ |
| Mirror of internal stream io state. More... | |
| streamAccess | openClosed_ |
| The stream open/closed state. More... | |
| unsigned char | sizeofLabel_ |
| The sizeof (label), possibly read from the header. More... | |
| unsigned char | sizeofScalar_ |
| The sizeof (scalar), possibly read from the header. More... | |
| label | lineNumber_ |
| The file line. More... | |
Static Protected Attributes | |
| static constexpr const unsigned short | entryIndentation_ = 16 |
| Indentation of the entry from the start of the keyword. More... | |
Static Protected Attributes inherited from IOstream | |
| static fileName | staticName_ |
| Name for any generic stream - normally treat as readonly. More... | |
Additional Inherited Members | |
Public Types inherited from IOstream | |
| enum | streamAccess : char { CLOSED = 0 , OPENED } |
| Enumeration for stream open/closed state. More... | |
Public Types inherited from IOstreamOption | |
| enum | streamFormat : char { ASCII = 0 , BINARY } |
| Data format (ascii | binary) More... | |
| enum | compressionType : char { UNCOMPRESSED = 0 , COMPRESSED } |
| Compression treatment (UNCOMPRESSED | COMPRESSED) More... | |
| enum | appendType : char { NO_APPEND = 0 , APPEND_APP , APPEND_ATE , NON_APPEND = NO_APPEND , APPEND = APPEND_APP } |
| File appending (NO_APPEND | APPEND_APP | APPEND_ATE) More... | |
| enum | atomicType : char { NON_ATOMIC = 0 , ATOMIC } |
| Atomic operations (output) More... | |
| enum class | floatFormat : unsigned { general = unsigned(0) , fixed = unsigned(std::ios_base::fixed) , scientific = unsigned(std::ios_base::scientific) } |
| Float formats (eg, time directory name formats) More... | |
Static Public Member Functions inherited from IOstream | |
| static unsigned int | defaultPrecision () noexcept |
| Return the default precision. More... | |
| static unsigned int | defaultPrecision (unsigned int prec) noexcept |
| Reset the default precision. More... | |
| static unsigned int | minPrecision (unsigned int prec) noexcept |
| Set the minimum default precision. More... | |
Static Public Member Functions inherited from IOstreamOption | |
| static floatFormat | floatFormatEnum (const word &fmtName, const floatFormat deflt=floatFormat::general) |
| Lookup floatFormat enum corresponding to the string (general | fixed | scientific). More... | |
| static floatFormat | floatFormatEnum (const word &key, const dictionary &dict, const floatFormat deflt=floatFormat::general) |
| getOrDefault floatFormat from dictionary, warn only on bad enumeration. More... | |
| static streamFormat | formatEnum (const word &fmtName, const streamFormat deflt=streamFormat::ASCII) |
| Lookup streamFormat enum corresponding to the string (ascii | binary). More... | |
| static streamFormat | formatEnum (const word &key, const dictionary &dict, const streamFormat deflt=streamFormat::ASCII) |
| getOrDefault streamFormat from dictionary, warn only on bad enumeration. More... | |
| static compressionType | compressionEnum (const word &compName, const compressionType deflt=compressionType::UNCOMPRESSED) |
| The compression enum corresponding to the string. More... | |
| static compressionType | compressionEnum (const word &key, const dictionary &dict, const compressionType deflt=compressionType::UNCOMPRESSED) |
| getOrDefault compressionType from dictionary, warn only on bad enumeration. More... | |
Static Public Attributes inherited from IOstream | |
| static unsigned int | precision_ |
| Default precision. More... | |
Static Public Attributes inherited from IOstreamOption | |
| static const Enum< floatFormat > | floatFormatNames |
| Names for float formats (general, fixed, scientific) More... | |
| static const Enum< streamFormat > | formatNames |
| Stream format names (ascii, binary) More... | |
| static const versionNumber | currentVersion |
| The current version number (2.0) More... | |
Protected Member Functions inherited from IOstream | |
| void | setOpened () noexcept |
| Set stream opened. More... | |
| void | setClosed () noexcept |
| Set stream closed. More... | |
| void | setState (std::ios_base::iostate state) noexcept |
| Set stream state. More... | |
| void | setGood () noexcept |
| Set stream state to be good. More... | |
An Ostream is an abstract base class for all output systems (streams, files, token lists, etc).
|
virtualdefault |
Destructor.
|
inlineexplicit |
|
inlineexplicit |
Write token to stream or otherwise handle it.
Implemented in OTstream, prefixOSstream, OSstream, UOPstreamBase, and ensightFile.
Referenced by snappyLayerDriver::addLayers(), interRegionHeatTransferModel::addSup(), distanceSurface::createGeometry(), snappySnapDriver::doSnap(), if(), interpolationTable< scalar >::interpolationTable(), Foam::MapLagrangianFields(), Foam::operator<<(), refinementIterator::setRefinement(), snappySnapDriver::smoothDisplacement(), ObukhovLength::write(), derivedFields::write(), DESModelRegions::write(), extractEulerianParticles::write(), CelikEtaIndex::write(), CelikNuIndex::write(), PopeIndex::write(), XiReactionRate::write(), forces::write(), electricPotential::write(), surfaceCourantNumber::write(), ensightMesh::write(), fixedNormalInletOutletVelocityFvPatchVectorField::write(), freestreamFvPatchField< Type >::write(), scaledFixedValueFvPatchField< Type >::write(), cyclicAMIPolyPatch::write(), cyclicPolyPatch::write(), sixDoFRigidBodyMotion::write(), scene::write(), mappedPatchBase::write(), FallOffReactionRate< ReactionRate, FallOffFunction >::write(), NonEquilibriumReversibleReaction< ReactionType, ReactionThermo, ReactionRate >::write(), SHA1::write(), UniformDimensionedField< Type >::writeData(), dimensioned< Type >::writeEntry(), fieldAverage::writeFieldType(), OSstream::writeRaw(), and vtkWriter::writeTemplate().

|
pure virtual |
Write character.
Implemented in ensightFile, OTstream, prefixOSstream, OSstream, UOPstreamBase, and OBJstream.
|
pure virtual |
Write character/string content, with/without surrounding quotes.
Implemented in OTstream, prefixOSstream, OSstream, UOPstreamBase, and OBJstream.
Referenced by JSONformatter::write(), JSONformatter::writeDict(), JSONformatter::writeEntry(), and JSONformatter::writeKeyword().

|
virtual |
|
pure virtual |
Write character string.
Implemented in OTstream, prefixOSstream, OSstream, UOPstreamBase, OBJstream, and ensightFile.
Write word (unquoted)
Implemented in prefixOSstream, OTstream, OSstream, UOPstreamBase, OBJstream, and ensightFile.
|
pure virtual |
Write string content (usually quoted)
Implemented in prefixOSstream, OTstream, OSstream, UOPstreamBase, OSHA1stream, OBJstream, and ensightFile.
|
virtual |
Write keyType.
A plain word is written unquoted. A regular expression is written as a quoted string.
Definition at line 54 of file Ostream.C.
References keyType::isPattern().

|
pure virtual |
Write int32_t.
Implemented in OTstream, prefixOSstream, OSstream, UOPstreamBase, and ensightFile.
|
pure virtual |
Write int64_t.
Implemented in OTstream, prefixOSstream, OSstream, UOPstreamBase, and ensightFile.
|
pure virtual |
Write float.
Implemented in OTstream, prefixOSstream, OSstream, UOPstreamBase, and ensightFile.
|
pure virtual |
Write double.
Implemented in OTstream, prefixOSstream, OSstream, UOPstreamBase, and ensightFile.
|
pure virtual |
Write binary block.
Implemented in OTstream, OSstream, UOPstreamBase, prefixOSstream, and ensightFile.
|
pure virtual |
Low-level raw binary output.
Implemented in OTstream, OSstream, and UOPstreamBase.
|
pure virtual |
Emit begin marker for low-level raw binary output.
The count indicates the number of bytes for subsequent writeRaw calls.
Implemented in OTstream, OSstream, and UOPstreamBase.
|
pure virtual |
Emit end marker for low-level raw binary output.
Implemented in OTstream, OSstream, and UOPstreamBase.
|
pure virtual |
Add indentation characters.
Implemented in OTstream, prefixOSstream, OSstream, and UOPstreamBase.
|
inlinenoexcept |
Return indent size (spaces per level)
Definition at line 233 of file Ostream.H.
References Ostream::indentSize_.
|
inlinenoexcept |
Change indent size (spaces per level), return old value.
Definition at line 241 of file Ostream.H.
References Ostream::indentSize_.
|
inlinenoexcept |
Return the indent level.
Definition at line 251 of file Ostream.H.
References Ostream::indentLevel_.
|
inlinenoexcept |
Change the indent level, return old value.
Definition at line 259 of file Ostream.H.
References Ostream::indentLevel_.
|
inlinenoexcept |
Increment the indent level.
Definition at line 269 of file Ostream.H.
References Ostream::indentLevel_.
Referenced by Foam::incrIndent().

| void decrIndent | ( | ) |
Decrement the indent level.
Definition at line 30 of file Ostream.C.
References Ostream::indentLevel_.
Referenced by Foam::decrIndent().

|
virtual |
Write the keyword followed by an appropriate indentation.
Reimplemented in ensightGeoFile, and ensightFile.
Definition at line 60 of file Ostream.C.
References Foam::indent(), keyType::isPattern(), and token::SPACE.
Referenced by patchIdentifier::write(), zoneIdentifier::write(), JanevReactionRate::write(), LangmuirHinshelwoodReactionRate::write(), primitiveEntry::write(), ensightCells::writeBox(), UniformDimensionedField< Type >::writeData(), Function1< Type >::writeData(), ensightCells::writeDict(), ensightFaces::writeDict(), Ostream::writeEntry(), dimensioned< Type >::writeEntry(), and Field< Type >::writeEntry().


|
virtual |
Write begin block group with the given name.
Increments indentation, adds newline.
Definition at line 90 of file Ostream.C.
References Foam::beginBlock(), Foam::indent(), and keyType::isPattern().
Referenced by Foam::beginBlock(), Foam::operator<<(), Foam::printDOT(), Foam::printGraph_impl(), fixedNormalInletOutletVelocityFvPatchVectorField::write(), freestreamFvPatchField< Type >::write(), outletMappedUniformInletFvPatchField< Type >::write(), scaledFixedValueFvPatchField< Type >::write(), sixDoFRigidBodyMotion::write(), surfZone::write(), surfacePatch::write(), polynomialSolidTransport< Thermo, PolySize >::write(), tabulatedAnIsoSolidTransport< Thermo >::write(), tabulatedSolidTransport< Thermo >::write(), adiabaticPerfectFluid< Specie >::write(), Boussinesq< Specie >::write(), icoPolynomial< Specie, PolySize >::write(), icoTabulated< Specie >::write(), incompressiblePerfectGas< Specie >::write(), linear< Type >::write(), perfectFluid< Specie >::write(), rhoConst< Specie >::write(), rPolynomial< Specie >::write(), FallOffReactionRate< ReactionRate, FallOffFunction >::write(), NonEquilibriumReversibleReaction< ReactionType, ReactionThermo, ReactionRate >::write(), ReactionList< ThermoType >::write(), specie::write(), eConstThermo< EquationOfState >::write(), hConstThermo< EquationOfState >::write(), hPolynomialThermo< EquationOfState, PolySize >::write(), hTabulatedThermo< EquationOfState >::write(), janafThermo< EquationOfState >::write(), logPolynomialTransport< Thermo, PolySize >::write(), polynomialTransport< Thermo, PolySize >::write(), sutherlandTransport< Thermo >::write(), tabulatedTransport< Thermo >::write(), WLFTransport< Thermo >::write(), profilingInformation::write(), dictionary::write(), mapDistributePolyMesh::writeCellMapEntries(), MRFZone::writeData(), LookupField< Type >::writeData(), MappedFile< Type >::writeData(), profiling::writeData(), attachDetach::writeDict(), layerAdditionRemoval::writeDict(), perfectInterface::writeDict(), setUpdater::writeDict(), slidingInterface::writeDict(), enginePiston::writeDict(), engineValve::writeDict(), colourTable::writeDict(), cellZone::writeDict(), faceZone::writeDict(), pointZone::writeDict(), plane::writeDict(), ensightCells::writeDict(), ensightFaces::writeDict(), PDRblock::gridControl::writeDict(), GeometricBoundaryField< Type, PatchField, GeoMesh >::writeEntries(), mapDistribute::writeEntries(), mapDistributeBase::writeEntries(), GeometricBoundaryField< Type, PatchField, GeoMesh >::writeEntry(), profilingSysInfo::writeEntry(), coordinateSystem::writeEntry(), cpuInfo::writeEntry(), memInfo::writeEntry(), faBoundaryMesh::writeEntry(), dictionary::writeEntry(), polyBoundaryMesh::writeEntry(), mapDistributePolyMesh::writeFaceMapEntries(), Foam::writeFuncsImpl(), IOobject::writeHeader(), decomposedBlockData::writeHeader(), mapDistributePolyMesh::writePatchMapEntries(), and mapDistributePolyMesh::writePointMapEntries().

|
virtual |
Write begin block group without a name.
Increments indentation, adds newline.
Definition at line 99 of file Ostream.C.
References token::BEGIN_BLOCK, Foam::incrIndent(), and Foam::indent().

|
virtual |
Write end block group.
Decrements indentation, adds newline.
Definition at line 108 of file Ostream.C.
References Foam::decrIndent(), token::END_BLOCK, and Foam::indent().
Referenced by Foam::endBlock(), Foam::operator<<(), Foam::printDOT(), Foam::printGraph_impl(), fixedNormalInletOutletVelocityFvPatchVectorField::write(), freestreamFvPatchField< Type >::write(), outletMappedUniformInletFvPatchField< Type >::write(), scaledFixedValueFvPatchField< Type >::write(), sixDoFRigidBodyMotion::write(), surfZone::write(), surfacePatch::write(), polynomialSolidTransport< Thermo, PolySize >::write(), tabulatedAnIsoSolidTransport< Thermo >::write(), tabulatedSolidTransport< Thermo >::write(), adiabaticPerfectFluid< Specie >::write(), Boussinesq< Specie >::write(), icoPolynomial< Specie, PolySize >::write(), icoTabulated< Specie >::write(), incompressiblePerfectGas< Specie >::write(), linear< Type >::write(), perfectFluid< Specie >::write(), rhoConst< Specie >::write(), rPolynomial< Specie >::write(), FallOffReactionRate< ReactionRate, FallOffFunction >::write(), NonEquilibriumReversibleReaction< ReactionType, ReactionThermo, ReactionRate >::write(), specie::write(), eConstThermo< EquationOfState >::write(), hConstThermo< EquationOfState >::write(), hPolynomialThermo< EquationOfState, PolySize >::write(), hTabulatedThermo< EquationOfState >::write(), janafThermo< EquationOfState >::write(), logPolynomialTransport< Thermo, PolySize >::write(), polynomialTransport< Thermo, PolySize >::write(), sutherlandTransport< Thermo >::write(), tabulatedTransport< Thermo >::write(), WLFTransport< Thermo >::write(), profilingInformation::write(), dictionary::write(), mapDistributePolyMesh::writeCellMapEntries(), MRFZone::writeData(), profiling::writeData(), attachDetach::writeDict(), layerAdditionRemoval::writeDict(), perfectInterface::writeDict(), setUpdater::writeDict(), slidingInterface::writeDict(), enginePiston::writeDict(), engineValve::writeDict(), colourTable::writeDict(), cellZone::writeDict(), faceZone::writeDict(), pointZone::writeDict(), plane::writeDict(), ensightCells::writeDict(), ensightFaces::writeDict(), PDRblock::gridControl::writeDict(), GeometricBoundaryField< Type, PatchField, GeoMesh >::writeEntries(), mapDistribute::writeEntries(), mapDistributeBase::writeEntries(), GeometricBoundaryField< Type, PatchField, GeoMesh >::writeEntry(), profilingSysInfo::writeEntry(), coordinateSystem::writeEntry(), cpuInfo::writeEntry(), memInfo::writeEntry(), faBoundaryMesh::writeEntry(), dictionary::writeEntry(), polyBoundaryMesh::writeEntry(), mapDistributePolyMesh::writeFaceMapEntries(), Foam::writeFuncsImpl(), IOobject::writeHeader(), decomposedBlockData::writeHeader(), mapDistributePolyMesh::writePatchMapEntries(), and mapDistributePolyMesh::writePointMapEntries().

|
virtual |
Write end entry (';') followed by newline.
Definition at line 117 of file Ostream.C.
References token::END_STATEMENT.
Referenced by Foam::endEntry(), Foam::operator<<(), patchIdentifier::write(), zoneIdentifier::write(), primitiveEntry::write(), engineValve::writeDict(), PDRblock::gridControl::writeDict(), Ostream::writeEntry(), faBoundaryMesh::writeEntry(), faBoundaryMeshEntries::writeEntry(), dimensioned< Type >::writeEntry(), Field< Type >::writeEntry(), polyBoundaryMesh::writeEntry(), polyBoundaryMeshEntries::writeEntry(), and Foam::writeMaps().

Write a keyword/value entry.
The following two are functionally equivalent:
Definition at line 321 of file Ostream.H.
References Ostream::endEntry(), Foam::glTF::key(), and Ostream::writeKeyword().
Referenced by fixedJumpAMIFvPatchField< scalar >::fixedJumpAMIFvPatchField(), fixedJumpFvPatchField< scalar >::jump0(), Foam::operator<<(), fixedJumpFvPatchField< scalar >::relax(), fixedJumpFvPatchField< scalar >::relaxFactor(), faPatch::write(), SRFFreestreamVelocityFvPatchVectorField::write(), SRFVelocityFvPatchVectorField::write(), acousticWaveTransmissiveFvPatchField< Type >::write(), activeBaffleVelocityFvPatchVectorField::write(), activePressureForceBaffleVelocityFvPatchVectorField::write(), advectiveFvPatchField< Type >::write(), codedFixedValueFvPatchField< Type >::write(), codedMixedFvPatchField< Type >::write(), cylindricalInletVelocityFvPatchVectorField::write(), electrostaticDepositionFvPatchScalarField::write(), fixedJumpAMIFvPatchField< Type >::write(), fixedNormalInletOutletVelocityFvPatchVectorField::write(), fixedNormalSlipFvPatchField< Type >::write(), fixedProfileFvPatchField< Type >::write(), flowRateInletVelocityFvPatchVectorField::write(), freestreamFvPatchField< Type >::write(), inletOutletTotalTemperatureFvPatchScalarField::write(), mappedFlowRateFvPatchVectorField::write(), matchedFlowRateOutletVelocityFvPatchVectorField::write(), outletMappedUniformInletFvPatchField< Type >::write(), outletPhaseMeanVelocityFvPatchVectorField::write(), partialSlipFvPatchField< Type >::write(), phaseHydrostaticPressureFvPatchScalarField::write(), plenumPressureFvPatchScalarField::write(), pressureNormalInletOutletVelocityFvPatchVectorField::write(), pressurePIDControlInletVelocityFvPatchVectorField::write(), rotatingPressureInletOutletVelocityFvPatchVectorField::write(), rotatingWallVelocityFvPatchVectorField::write(), supersonicFreestreamFvPatchVectorField::write(), swirlFlowRateInletVelocityFvPatchVectorField::write(), swirlInletVelocityFvPatchVectorField::write(), syringePressureFvPatchScalarField::write(), totalPressureFvPatchScalarField::write(), totalTemperatureFvPatchScalarField::write(), turbulentDFSEMInletFvPatchVectorField::write(), turbulentInletFvPatchField< Type >::write(), turbulentIntensityKineticEnergyInletFvPatchScalarField::write(), uniformDensityHydrostaticPressureFvPatchScalarField::write(), uniformTotalPressureFvPatchScalarField::write(), variableHeightFlowRateFvPatchScalarField::write(), variableHeightFlowRateInletVelocityFvPatchVectorField::write(), waveTransmissiveFvPatchField< Type >::write(), fvPatchField< Type >::write(), edgeSlipDisplacementPointPatchVectorField::write(), pointAttractionDisplacementPointPatchVectorField::write(), surfaceDisplacementPointPatchVectorField::write(), surfaceSlipDisplacementPointPatchVectorField::write(), timeVaryingMappedFixedValuePointPatchField< Type >::write(), waveDisplacementPointPatchVectorField::write(), cyclicACMIPolyPatch::write(), cyclicAMIPolyPatch::write(), mappedVariableThicknessWallPolyPatch::write(), codedFixedValuePointPatchField< Type >::write(), fixedNormalSlipPointPatchField< Type >::write(), genericPolyPatch::write(), cyclicPolyPatch::write(), oldCyclicPolyPatch::write(), processorPolyPatch::write(), processorCyclicPolyPatch::write(), adjointFarFieldPressureFvPatchScalarField::write(), adjointFarFieldVelocityFvPatchVectorField::write(), adjointInletVelocityFvPatchVectorField::write(), adjointOutletPressureFvPatchScalarField::write(), adjointOutletVelocityFvPatchVectorField::write(), adjointOutletVelocityFluxFvPatchVectorField::write(), adjointRotatingWallVelocityFvPatchVectorField::write(), adjointWallVelocityFvPatchVectorField::write(), adjointWallVelocityLowReFvPatchVectorField::write(), kaqRWallFunctionFvPatchScalarField::write(), timeVaryingMassSorptionFvPatchScalarField::write(), copiedFixedValueFvPatchScalarField::write(), fixedMultiPhaseHeatFluxFvPatchScalarField::write(), JohnsonJacksonParticleSlipFvPatchVectorField::write(), JohnsonJacksonParticleThetaFvPatchScalarField::write(), sixDoFRigidBodyMotion::write(), enthalpySorptionFvPatchScalarField::write(), speciesSorptionFvPatchScalarField::write(), externalWallHeatFluxTemperatureFvPatchScalarField::write(), humidityTemperatureCoupledMixedFvPatchScalarField::write(), lumpedMassWallTemperatureFvPatchScalarField::write(), outletMappedUniformInletHeatAdditionFvPatchField::write(), totalFlowRateAdvectiveDiffusiveFvPatchScalarField::write(), constantAlphaContactAngleFvPatchScalarField::write(), dynamicAlphaContactAngleFvPatchScalarField::write(), timeVaryingAlphaContactAngleFvPatchScalarField::write(), fixedShearStressFvPatchVectorField::write(), porousBafflePressureFvPatchField::write(), waveAlphaFvPatchScalarField::write(), waveVelocityFvPatchVectorField::write(), waveMakerPointPatchVectorField::write(), interpolationLookUpTable< Type >::write(), boundaryPatch::write(), processorFaPatch::write(), faePatchField< Type >::write(), faPatchField< Type >::write(), fanFvPatchField< Type >::write(), fanPressureFvPatchScalarField::write(), mappedPatchFieldBase< Type >::write(), swirlFanVelocityFvPatchField::write(), fvsPatchField< Type >::write(), externalCoupledTemperatureMixedFvPatchScalarField::write(), CloudSubModelBase< CloudType >::write(), DispersionRASModel< CloudType >::write(), lumpedPointDisplacementPointPatchVectorField::write(), AMIInterpolation::write(), faceAreaWeightAMI::write(), mappedPatchBase::write(), pointPatchField< Type >::write(), interpolation2DTable< Type >::write(), csvTableReader< Type >::write(), coupleGroupIdentifier::write(), patchIdentifier::write(), geometricSurfacePatch::write(), surfZoneIdentifier::write(), zoneIdentifier::write(), coupledPolyPatch::write(), polyPatch::write(), oversetFvPatchField< Type >::write(), sixDoFRigidBodyMotionState::write(), surfZone::write(), surfacePatch::write(), solidArrheniusReactionRate::write(), solidIsothermalReactionRate::write(), solidReaction< ReactionThermo >::write(), polynomialSolidTransport< Thermo, PolySize >::write(), tabulatedSolidTransport< Thermo >::write(), adiabaticPerfectFluid< Specie >::write(), Boussinesq< Specie >::write(), icoPolynomial< Specie, PolySize >::write(), icoTabulated< Specie >::write(), incompressiblePerfectGas< Specie >::write(), linear< Type >::write(), perfectFluid< Specie >::write(), rhoConst< Specie >::write(), rPolynomial< Specie >::write(), ArrheniusReactionRate::write(), SRIFallOffFunction::write(), TroeFallOffFunction::write(), LandauTellerReactionRate::write(), powerSeriesReactionRate::write(), thirdBodyEfficiencies::write(), Reaction< ReactionThermo >::write(), specie::write(), eConstThermo< EquationOfState >::write(), hConstThermo< EquationOfState >::write(), hPolynomialThermo< EquationOfState, PolySize >::write(), hTabulatedThermo< EquationOfState >::write(), janafThermo< EquationOfState >::write(), logPolynomialTransport< Thermo, PolySize >::write(), polynomialTransport< Thermo, PolySize >::write(), sutherlandTransport< Thermo >::write(), tabulatedTransport< Thermo >::write(), WLFTransport< Thermo >::write(), outletMachNumberPressureFvPatchScalarField::write(), temperatureCoupledBase::write(), alphaContactAngleTwoPhaseFvPatchScalarField::write(), profilingInformation::write(), mapDistributePolyMesh::writeCellMapEntries(), dynamicTopODesignVariables::writeData(), MRFZone::writeData(), MMA::writeData(), nullSpace::writeData(), updateMethod::writeData(), adjointSimple::writeData(), RASTurbulenceModel::writeData(), simple::writeData(), lumpedPointMovement::writeData(), DimensionedField< Type, GeoMesh >::writeData(), attachDetach::writeDict(), layerAdditionRemoval::writeDict(), perfectInterface::writeDict(), setUpdater::writeDict(), slidingInterface::writeDict(), enginePiston::writeDict(), engineValve::writeDict(), colourTable::writeDict(), lumpedPointState::writeDict(), cellZone::writeDict(), faceZone::writeDict(), pointZone::writeDict(), plane::writeDict(), ensightCells::writeDict(), ensightFaces::writeDict(), wallFunctionBlenders::writeEntries(), lookupBase::writeEntries(), mapDistribute::writeEntries(), mapDistributeBase::writeEntries(), cpuInfo::writeEntries(), memInfo::writeEntries(), coordinateSystem::writeEntry(), orientedType::writeEntry(), Ostream::writeEntryIfDifferent(), Foam::writeEntryIfPresent(), mapDistributePolyMesh::writeFaceMapEntries(), genericPatchFieldBase::writeGeneric(), nutUTabulatedWallFunctionFvPatchScalarField::writeLocalEntries(), Foam::writeMaps(), mapDistributePolyMesh::writePatchMapEntries(), and mapDistributePolyMesh::writePointMapEntries().

Write a keyword/value entry only when the two values differ.
| key | the name of the entry |
| value1 | the reference value |
| value2 | the value to write if it differs from value1 |
Definition at line 335 of file Ostream.H.
References Foam::glTF::key(), and Ostream::writeEntry().
Referenced by inletOutletFaPatchField< Type >::write(), outletInletFaPatchField< Type >::write(), activeBaffleVelocityFvPatchVectorField::write(), activePressureForceBaffleVelocityFvPatchVectorField::write(), advectiveFvPatchField< Type >::write(), electrostaticDepositionFvPatchScalarField::write(), fixedNormalInletOutletVelocityFvPatchVectorField::write(), fixedPressureCompressibleDensityFvPatchScalarField::write(), flowRateInletVelocityFvPatchVectorField::write(), flowRateOutletVelocityFvPatchVectorField::write(), fluxCorrectedVelocityFvPatchVectorField::write(), freestreamFvPatchField< Type >::write(), freestreamPressureFvPatchScalarField::write(), inletOutletFvPatchField< Type >::write(), inletOutletTotalTemperatureFvPatchScalarField::write(), interstitialInletVelocityFvPatchVectorField::write(), mappedMixedFieldFvPatchField< Type >::write(), mappedFlowRateFvPatchVectorField::write(), mappedMixedFvPatchField< Type >::write(), mappedVelocityFluxFixedValueFvPatchField::write(), matchedFlowRateOutletVelocityFvPatchVectorField::write(), outletInletFvPatchField< Type >::write(), outletMappedUniformInletFvPatchField< Type >::write(), phaseHydrostaticPressureFvPatchScalarField::write(), plenumPressureFvPatchScalarField::write(), pressureDirectedInletOutletVelocityFvPatchVectorField::write(), pressureDirectedInletVelocityFvPatchVectorField::write(), pressureInletOutletParSlipVelocityFvPatchVectorField::write(), pressureInletOutletVelocityFvPatchVectorField::write(), pressureInletVelocityFvPatchVectorField::write(), pressurePermeableAlphaInletOutletVelocityFvPatchVectorField::write(), pressurePIDControlInletVelocityFvPatchVectorField::write(), prghPermeableAlphaTotalPressureFvPatchScalarField::write(), prghPressureFvPatchScalarField::write(), prghTotalHydrostaticPressureFvPatchScalarField::write(), prghTotalPressureFvPatchScalarField::write(), supersonicFreestreamFvPatchVectorField::write(), swirlFlowRateInletVelocityFvPatchVectorField::write(), syringePressureFvPatchScalarField::write(), totalPressureFvPatchScalarField::write(), totalTemperatureFvPatchScalarField::write(), turbulentDFSEMInletFvPatchVectorField::write(), turbulentIntensityKineticEnergyInletFvPatchScalarField::write(), uniformInletOutletFvPatchField< Type >::write(), uniformTotalPressureFvPatchScalarField::write(), variableHeightFlowRateFvPatchScalarField::write(), waveSurfacePressureFvPatchScalarField::write(), waveTransmissiveFvPatchField< Type >::write(), edgeSlipDisplacementPointPatchVectorField::write(), pointAttractionDisplacementPointPatchVectorField::write(), surfaceDisplacementPointPatchVectorField::write(), surfaceSlipDisplacementPointPatchVectorField::write(), timeVaryingMappedFixedValuePointPatchField< Type >::write(), cyclicAMIPolyPatch::write(), cyclicPeriodicAMIPolyPatch::write(), processorCyclicPolyPatch::write(), timeVaryingMassSorptionFvPatchScalarField::write(), filmPyrolysisTemperatureCoupledFvPatchScalarField::write(), filmPyrolysisVelocityCoupledFvPatchVectorField::write(), filmHeightInletVelocityFvPatchVectorField::write(), inclinedFilmNusseltHeightFvPatchScalarField::write(), inclinedFilmNusseltInletVelocityFvPatchVectorField::write(), enthalpySorptionFvPatchScalarField::write(), speciesSorptionFvPatchScalarField::write(), humidityTemperatureCoupledMixedFvPatchScalarField::write(), outletMappedUniformInletHeatAdditionFvPatchField::write(), semiPermeableBaffleMassFractionFvPatchScalarField::write(), semiPermeableBaffleVelocityFvPatchVectorField::write(), temperatureDependentAlphaContactAngleFvPatchScalarField::write(), porousBafflePressureFvPatchField::write(), fanFvPatchField< Type >::write(), mappedPatchFieldBase< Type >::write(), swirlFanVelocityFvPatchField::write(), advancingFrontAMI::write(), faceAreaWeightAMI2D::write(), nearestFaceAMI::write(), mappedPatchBase::write(), oversetFvPatchField< Type >::write(), specie::write(), eConstThermo< EquationOfState >::write(), hConstThermo< EquationOfState >::write(), outletMachNumberPressureFvPatchScalarField::write(), profilingInformation::write(), wallFunctionCoefficients::writeEntries(), cpuInfo::writeEntries(), atmEpsilonWallFunctionFvPatchScalarField::writeLocalEntries(), atmNutkWallFunctionFvPatchScalarField::writeLocalEntries(), atmNutUWallFunctionFvPatchScalarField::writeLocalEntries(), atmNutWallFunctionFvPatchScalarField::writeLocalEntries(), epsilonWallFunctionFvPatchScalarField::writeLocalEntries(), nutUBlendedWallFunctionFvPatchScalarField::writeLocalEntries(), nutUSpaldingWallFunctionFvPatchScalarField::writeLocalEntries(), nutWallFunctionFvPatchScalarField::writeLocalEntries(), and omegaWallFunctionFvPatchScalarField::writeLocalEntries().

|
pure virtual |
Flush stream.
Implemented in OTstream, OSstream, and UOPstreamBase.
|
pure virtual |
Add newline and flush stream.
Implemented in OTstream, OSstream, and UOPstreamBase.
|
pure virtual |
Get padding character.
Implemented in OTstream, OSstream, and UOPstreamBase.
Referenced by Foam::setfill().

|
pure virtual |
Set padding character for formatted field up to field width.
Implemented in OTstream, UOPstreamBase, and OSstream.
|
pure virtual |
Get width of output field.
Implemented in OTstream, OSstream, and UOPstreamBase.
Referenced by ensightWrite::read(), and Foam::setw().

|
pure virtual |
Set width of output field (and return old width)
Implemented in OTstream, UOPstreamBase, and OSstream.
|
pure virtual |
Get precision of output field.
Implemented in OTstream, OSstream, and UOPstreamBase.
Referenced by Foam::setprecision().

|
pure virtual |
Set precision of output field (and return old precision)
Implemented in OTstream, UOPstreamBase, and OSstream.
|
inline |
|
inlinenoexcept |
|
inlinenoexcept |
|
staticconstexprprotected |
|
protected |
Number of spaces per indent level.
Definition at line 72 of file Ostream.H.
Referenced by Ostream::indentSize().
|
protected |
Current indent level.
Definition at line 77 of file Ostream.H.
Referenced by Ostream::decrIndent(), Ostream::incrIndent(), and Ostream::indentLevel().