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 & | write (const char *str)=0 |
Write character string. More... | |
virtual Ostream & | write (const word &str)=0 |
Write word. More... | |
virtual Ostream & | write (const keyType &kw) |
Write keyType. More... | |
virtual Ostream & | write (const string &str)=0 |
Write string. More... | |
virtual Ostream & | writeQuoted (const std::string &str, const bool quoted=true)=0 |
Write std::string surrounded by quotes. 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 | |
Return true if the stream has not failed. More... | |
bool | operator! () const noexcept |
Return 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< std::is_integral< T >::value, bool >::type | 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< std::is_floating_point< T >::value, bool >::type | 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... | |
virtual ios_base::fmtflags | flags () const =0 |
Return flags of stream. More... | |
void | setEof () noexcept |
Set stream state as reached 'eof'. More... | |
void | setFail () noexcept |
Set stream state as 'failed'. More... | |
void | setBad () |
Set stream state to be 'bad'. More... | |
virtual ios_base::fmtflags | flags (const ios_base::fmtflags f)=0 |
Set flags of stream. More... | |
ios_base::fmtflags | setf (const ios_base::fmtflags f) |
Set flags of stream. More... | |
ios_base::fmtflags | setf (const ios_base::fmtflags f, const ios_base::fmtflags mask) |
Set flags of given field of stream. More... | |
void | unsetf (const ios_base::fmtflags f) |
Unset flags of stream. 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 { NON_APPEND = 0, APPEND } |
File appending (NON_APPEND | APPEND) More... | |
enum | atomicType : char { NON_ATOMIC = 0, ATOMIC } |
Atomic operations (output) 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 Public Member Functions inherited from IOstreamOption | |
static streamFormat | formatEnum (const word &formatName, const streamFormat deflt=streamFormat::ASCII) |
The stream format enum corresponding to the string (ascii | binary). More... | |
static streamFormat | formatEnum (const word &key, const dictionary &dict, const streamFormat deflt=streamFormat::ASCII) |
Failsafe construct streamFormat from optional dictionary lookup. 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) |
Failsafe construct compressionType from optional dictionary lookup. More... | |
Static Public Attributes inherited from IOstream | |
static unsigned int | precision_ |
Default precision. More... | |
Static Public Attributes inherited from IOstreamOption | |
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 |
|
pure virtual |
Write token to stream or otherwise handle it.
Implemented in ensightFile, UOPstreamBase, OSstream, OTstream, and prefixOSstream.
Referenced by snappyLayerDriver::addLayers(), snappyLayerDriver::addLayersSinglePass(), interRegionHeatTransferModel::addSup(), hexRef8::consistentSlowRefinement2(), distanceSurface::createGeometry(), snappySnapDriver::doSnap(), if(), isoSurfaceCell::isoSurfaceCell(), isoSurfacePoint::isoSurfacePoint(), meshRefinement::mergeEdgesUndo(), meshRefinement::mergePatchFacesUndo(), ensightCase::newCloud(), ensightCase::newCloudData(), ensightCase::newData(), Foam::operator<<(), faFieldReconstructor::reconstructAreaFields(), faFieldReconstructor::reconstructEdgeFields(), lagrangianReconstructor::reconstructFieldFields(), lagrangianReconstructor::reconstructFields(), fvFieldReconstructor::reconstructInternalFields(), pointFieldReconstructor::reconstructPointFields(), fvFieldReconstructor::reconstructSurfaceFields(), fvFieldReconstructor::reconstructVolumeFields(), refinementIterator::setRefinement(), hexRef8::setRefinement(), snappySnapDriver::smoothDisplacement(), XiReactionRate::write(), writeCellVolumes::write(), SHA1::write(), writeCellCentres::write(), scene::write(), momentumError::write(), derivedFields::write(), fixedNormalInletOutletVelocityFvPatchVectorField::write(), PopeIndex::write(), CelikNuIndex::write(), ObukhovLength::write(), CelikEtaIndex::write(), electricPotential::write(), extractEulerianParticles::write(), sixDoFRigidBodyMotion::write(), cyclicPolyPatch::write(), forces::write(), cyclicAMIPolyPatch::write(), mappedPatchBase::write(), profiling::writeData(), OSstream::writeRaw(), vtkWriter::writeTemplate(), and meshRefinement::zonify().
|
pure virtual |
Write character.
Implemented in ensightFile, UOPstreamBase, OSstream, OTstream, OBJstream, and prefixOSstream.
|
pure virtual |
Write character string.
Implemented in ensightFile, UOPstreamBase, OSstream, OTstream, OBJstream, and prefixOSstream.
Write word.
Implemented in ensightFile, UOPstreamBase, OSstream, OTstream, OBJstream, and prefixOSstream.
|
virtual |
Write keyType.
A plain word is written unquoted. A regular expression is written as a quoted string.
Definition at line 44 of file Ostream.C.
References keyType::isPattern(), and writeQuoted().
Write string.
Implemented in OSHA1stream, ensightFile, UOPstreamBase, OSstream, OTstream, OBJstream, and prefixOSstream.
|
pure virtual |
Write std::string surrounded by quotes.
Optional write without quotes.
Implemented in UOPstreamBase, OSstream, OTstream, OBJstream, and prefixOSstream.
|
pure virtual |
Write int32_t.
Implemented in ensightFile, UOPstreamBase, OSstream, OTstream, and prefixOSstream.
|
pure virtual |
Write int64_t.
Implemented in ensightFile, UOPstreamBase, OSstream, OTstream, and prefixOSstream.
|
pure virtual |
Write float.
Implemented in ensightFile, UOPstreamBase, OSstream, OTstream, and prefixOSstream.
|
pure virtual |
Write double.
Implemented in ensightFile, UOPstreamBase, OSstream, OTstream, and prefixOSstream.
|
pure virtual |
Write binary block.
Implemented in UOPstreamBase, OSstream, ensightFile, OTstream, and prefixOSstream.
|
pure virtual |
Low-level raw binary output.
Implemented in UOPstreamBase, OSstream, and OTstream.
|
pure virtual |
Emit begin marker for low-level raw binary output.
The count indicates the number of bytes for subsequent writeRaw calls.
Implemented in UOPstreamBase, OSstream, and OTstream.
|
pure virtual |
Emit end marker for low-level raw binary output.
Implemented in UOPstreamBase, OSstream, and OTstream.
|
pure virtual |
Add indentation characters.
Implemented in UOPstreamBase, OSstream, OTstream, and prefixOSstream.
|
inlinenoexcept |
Return indent size (spaces per level)
Definition at line 224 of file Ostream.H.
References Ostream::indentSize_.
|
inlinenoexcept |
Change indent size (spaces per level), return old value.
Definition at line 232 of file Ostream.H.
References Ostream::indentSize_.
|
inlinenoexcept |
Return the indent level.
Definition at line 242 of file Ostream.H.
References Ostream::indentLevel_.
|
inlinenoexcept |
Change the indent level, return old value.
Definition at line 250 of file Ostream.H.
References Ostream::indentLevel_.
|
inlinenoexcept |
Increment the indent level.
Definition at line 260 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 ensightFile, and ensightGeoFile.
Definition at line 50 of file Ostream.C.
References Foam::indent(), keyType::isPattern(), token::SPACE, Foam::vtk::write(), and writeQuoted().
Referenced by zoneIdentifier::write(), patchIdentifier::write(), primitiveEntry::write(), ensightFaces::writeDict(), ensightCells::writeDict(), and Ostream::writeEntry().
|
virtual |
Write begin block group with the given name.
Increments indentation, adds newline.
Definition at line 80 of file Ostream.C.
References Foam::beginBlock(), Foam::indent(), keyType::isPattern(), Foam::vtk::write(), and writeQuoted().
Referenced by Foam::beginBlock(), Foam::operator<<(), Foam::printDOT(), surfacePatch::write(), specie::write(), surfZone::write(), WLFTransport< Thermo >::write(), profilingInformation::write(), rhoConst< Specie >::write(), sutherlandTransport< Thermo >::write(), icoTabulated< Specie >::write(), hConstThermo< EquationOfState >::write(), linear< Type >::write(), perfectFluid< Specie >::write(), eConstThermo< EquationOfState >::write(), janafThermo< EquationOfState >::write(), icoPolynomial< Specie, PolySize >::write(), rPolynomial< Specie >::write(), fixedNormalInletOutletVelocityFvPatchVectorField::write(), sixDoFRigidBodyMotion::write(), dictionary::write(), mapDistributePolyMesh::writeCellMapEntries(), profiling::writeData(), faBoundaryMesh::writeData(), MRFZone::writeData(), MappedFile< Type >::writeData(), polyBoundaryMesh::writeData(), setUpdater::writeDict(), perfectInterface::writeDict(), colourTable::writeDict(), cellZone::writeDict(), pointZone::writeDict(), attachDetach::writeDict(), PDRblock::gridControl::writeDict(), ensightFaces::writeDict(), ensightCells::writeDict(), plane::writeDict(), faceZone::writeDict(), slidingInterface::writeDict(), mapDistribute::writeEntries(), mapDistributeBase::writeEntries(), coordinateSystem::writeEntry(), dictionary::writeEntry(), mapDistributePolyMesh::writeFaceMapEntries(), Foam::writeFuncsImpl(), decomposedBlockData::writeHeader(), IOobject::writeHeader(), mapDistributePolyMesh::writePatchMapEntries(), and mapDistributePolyMesh::writePointMapEntries().
|
virtual |
Write begin block group without a name.
Increments indentation, adds newline.
Definition at line 89 of file Ostream.C.
References token::BEGIN_BLOCK, Foam::incrIndent(), Foam::indent(), and Foam::vtk::write().
|
virtual |
Write end block group.
Decrements indentation, adds newline.
Definition at line 98 of file Ostream.C.
References Foam::decrIndent(), token::END_BLOCK, Foam::indent(), and Foam::vtk::write().
Referenced by Foam::endBlock(), Foam::operator<<(), Foam::printDOT(), surfacePatch::write(), specie::write(), surfZone::write(), WLFTransport< Thermo >::write(), profilingInformation::write(), rhoConst< Specie >::write(), sutherlandTransport< Thermo >::write(), icoTabulated< Specie >::write(), hConstThermo< EquationOfState >::write(), linear< Type >::write(), perfectFluid< Specie >::write(), eConstThermo< EquationOfState >::write(), janafThermo< EquationOfState >::write(), icoPolynomial< Specie, PolySize >::write(), rPolynomial< Specie >::write(), fixedNormalInletOutletVelocityFvPatchVectorField::write(), sixDoFRigidBodyMotion::write(), dictionary::write(), mapDistributePolyMesh::writeCellMapEntries(), profiling::writeData(), faBoundaryMesh::writeData(), MRFZone::writeData(), polyBoundaryMesh::writeData(), setUpdater::writeDict(), perfectInterface::writeDict(), colourTable::writeDict(), cellZone::writeDict(), pointZone::writeDict(), attachDetach::writeDict(), PDRblock::gridControl::writeDict(), ensightFaces::writeDict(), ensightCells::writeDict(), plane::writeDict(), faceZone::writeDict(), slidingInterface::writeDict(), mapDistribute::writeEntries(), mapDistributeBase::writeEntries(), coordinateSystem::writeEntry(), dictionary::writeEntry(), mapDistributePolyMesh::writeFaceMapEntries(), Foam::writeFuncsImpl(), decomposedBlockData::writeHeader(), IOobject::writeHeader(), mapDistributePolyMesh::writePatchMapEntries(), and mapDistributePolyMesh::writePointMapEntries().
|
virtual |
Write end entry (';') followed by newline.
Definition at line 107 of file Ostream.C.
References token::END_STATEMENT, and Foam::vtk::write().
Referenced by Foam::endEntry(), and Ostream::writeEntry().
Write a keyword/value entry.
The following two are functionally equivalent:
Definition at line 312 of file Ostream.H.
References Ostream::endEntry(), Foam::glTF::key(), and Ostream::writeKeyword().
Referenced by Foam::operator<<(), thirdBodyEfficiencies::write(), SRIFallOffFunction::write(), TroeFallOffFunction::write(), cpuInfo::write(), boundaryPatch::write(), adjointWallVelocityLowReFvPatchVectorField::write(), memInfo::write(), coupleGroupIdentifier::write(), adjointOutletPressureFvPatchScalarField::write(), waveDisplacementPointPatchVectorField::write(), csvTableReader< Type >::write(), surfacePatch::write(), specie::write(), adjointFarFieldVelocityFvPatchVectorField::write(), adjointRotatingWallVelocityFvPatchVectorField::write(), adjointInletVelocityFvPatchVectorField::write(), adjointWallVelocityFvPatchVectorField::write(), adjointOutletVelocityFvPatchVectorField::write(), angularOscillatingDisplacementPointPatchVectorField::write(), angularOscillatingVelocityPointPatchVectorField::write(), JohnsonJacksonParticleSlipFvPatchVectorField::write(), waveAlphaFvPatchScalarField::write(), waveVelocityFvPatchVectorField::write(), surfZone::write(), WLFTransport< Thermo >::write(), adjointFarFieldPressureFvPatchScalarField::write(), profilingInformation::write(), JohnsonJacksonParticleThetaFvPatchScalarField::write(), sixDoFRigidBodyMotionState::write(), sutherlandTransport< Thermo >::write(), genericPolyPatch::write(), rhoConst< Specie >::write(), adjointOutletVelocityFluxFvPatchVectorField::write(), totalFlowRateAdvectiveDiffusiveFvPatchScalarField::write(), copiedFixedValueFvPatchScalarField::write(), icoTabulated< Specie >::write(), fixedShearStressFvPatchVectorField::write(), acousticWaveTransmissiveFvPatchField< Type >::write(), hConstThermo< EquationOfState >::write(), linear< Type >::write(), perfectFluid< Specie >::write(), surfZoneIdentifier::write(), mappedFlowRateFvPatchVectorField::write(), zoneIdentifier::write(), variableHeightFlowRateFvPatchScalarField::write(), eConstThermo< EquationOfState >::write(), rotatingPressureInletOutletVelocityFvPatchVectorField::write(), matchedFlowRateOutletVelocityFvPatchVectorField::write(), faceAreaWeightAMI::write(), geometricSurfacePatch::write(), outletPhaseMeanVelocityFvPatchVectorField::write(), patchIdentifier::write(), turbulentIntensityKineticEnergyInletFvPatchScalarField::write(), lumpedMassWallTemperatureFvPatchScalarField::write(), swirlInletVelocityFvPatchVectorField::write(), cylindricalInletVelocityFvPatchVectorField::write(), surfaceSlipDisplacementPointPatchVectorField::write(), lumpedPointDisplacementPointPatchVectorField::write(), turbulentMixingLengthFrequencyInletFvPatchScalarField::write(), janafThermo< EquationOfState >::write(), outletMappedUniformInletHeatAdditionFvPatchField::write(), rotatingWallVelocityFvPatchVectorField::write(), icoPolynomial< Specie, PolySize >::write(), surfaceDisplacementPointPatchVectorField::write(), rPolynomial< Specie >::write(), fixedMultiPhaseHeatFluxFvPatchScalarField::write(), swirlFlowRateInletVelocityFvPatchVectorField::write(), pressureNormalInletOutletVelocityFvPatchVectorField::write(), SRFFreestreamVelocityFvPatchVectorField::write(), totalTemperatureFvPatchScalarField::write(), waveTransmissiveFvPatchField< Type >::write(), SRFVelocityFvPatchVectorField::write(), flowRateInletVelocityFvPatchVectorField::write(), turbulentMixingLengthDissipationRateInletFvPatchScalarField::write(), inletOutletTotalTemperatureFvPatchScalarField::write(), filmPyrolysisRadiativeCoupledMixedFvPatchScalarField::write(), advectiveFvPatchField< Type >::write(), uniformTotalPressureFvPatchScalarField::write(), fixedNormalInletOutletVelocityFvPatchVectorField::write(), thermalBaffle1DFvPatchScalarField< solidType >::write(), uniformDensityHydrostaticPressureFvPatchScalarField::write(), fanPressureFvPatchScalarField::write(), supersonicFreestreamFvPatchVectorField::write(), timeVaryingMassSorptionFvPatchScalarField::write(), outletMachNumberPressureFvPatchScalarField::write(), syringePressureFvPatchScalarField::write(), activeBaffleVelocityFvPatchVectorField::write(), porousBafflePressureFvPatchField::write(), phaseHydrostaticPressureFvPatchScalarField::write(), oldCyclicPolyPatch::write(), activePressureForceBaffleVelocityFvPatchVectorField::write(), swirlFanVelocityFvPatchField::write(), pressurePIDControlInletVelocityFvPatchVectorField::write(), plenumPressureFvPatchScalarField::write(), enthalpySorptionFvPatchScalarField::write(), processorFaPatch::write(), externalWallHeatFluxTemperatureFvPatchScalarField::write(), waveMakerPointPatchVectorField::write(), faPatch::write(), processorPolyPatch::write(), coupledPolyPatch::write(), cyclicACMIPolyPatch::write(), speciesSorptionFvPatchScalarField::write(), sixDoFRigidBodyMotion::write(), processorCyclicPolyPatch::write(), humidityTemperatureCoupledMixedFvPatchScalarField::write(), polyPatch::write(), totalPressureFvPatchScalarField::write(), cyclicPolyPatch::write(), electrostaticDepositionFvPatchScalarField::write(), turbulentDFSEMInletFvPatchVectorField::write(), fvsPatchField< Type >::write(), cyclicAMIPolyPatch::write(), AMIInterpolation::write(), mappedPatchBase::write(), mapDistributePolyMesh::writeCellMapEntries(), RASTurbulenceModel::writeData(), simple::writeData(), adjointSimple::writeData(), profiling::writeData(), MRFZone::writeData(), lumpedPointMovement::writeData(), setUpdater::writeDict(), perfectInterface::writeDict(), colourTable::writeDict(), cellZone::writeDict(), pointZone::writeDict(), attachDetach::writeDict(), lumpedPointState::writeDict(), ensightFaces::writeDict(), ensightCells::writeDict(), plane::writeDict(), faceZone::writeDict(), slidingInterface::writeDict(), wallFunctionBlenders::writeEntries(), mapDistribute::writeEntries(), mapDistributeBase::writeEntries(), orientedType::writeEntry(), coordinateSystem::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 327 of file Ostream.H.
References Foam::glTF::key(), and Ostream::writeEntry().
Referenced by cpuInfo::write(), specie::write(), inclinedFilmNusseltHeightFvPatchScalarField::write(), inclinedFilmNusseltInletVelocityFvPatchVectorField::write(), nearestFaceAMI::write(), profilingInformation::write(), interstitialInletVelocityFvPatchVectorField::write(), mappedVelocityFluxFixedValueFvPatchField::write(), semiPermeableBaffleVelocityFvPatchVectorField::write(), hConstThermo< EquationOfState >::write(), freestreamPressureFvPatchScalarField::write(), mappedFlowRateFvPatchVectorField::write(), variableHeightFlowRateFvPatchScalarField::write(), eConstThermo< EquationOfState >::write(), filmPyrolysisTemperatureCoupledFvPatchScalarField::write(), filmPyrolysisVelocityCoupledFvPatchVectorField::write(), matchedFlowRateOutletVelocityFvPatchVectorField::write(), pressureInletVelocityFvPatchVectorField::write(), fixedPressureCompressibleDensityFvPatchScalarField::write(), turbulentIntensityKineticEnergyInletFvPatchScalarField::write(), cyclicPeriodicAMIPolyPatch::write(), surfaceSlipDisplacementPointPatchVectorField::write(), semiPermeableBaffleMassFractionFvPatchScalarField::write(), outletMappedUniformInletHeatAdditionFvPatchField::write(), surfaceDisplacementPointPatchVectorField::write(), swirlFlowRateInletVelocityFvPatchVectorField::write(), pressureInletOutletParSlipVelocityFvPatchVectorField::write(), flowRateOutletVelocityFvPatchVectorField::write(), waveSurfacePressureFvPatchScalarField::write(), pressureInletOutletVelocityFvPatchVectorField::write(), prghTotalHydrostaticPressureFvPatchScalarField::write(), totalTemperatureFvPatchScalarField::write(), waveTransmissiveFvPatchField< Type >::write(), flowRateInletVelocityFvPatchVectorField::write(), inletOutletTotalTemperatureFvPatchScalarField::write(), filmPyrolysisRadiativeCoupledMixedFvPatchScalarField::write(), prghPressureFvPatchScalarField::write(), pressureDirectedInletVelocityFvPatchVectorField::write(), advectiveFvPatchField< Type >::write(), pressureDirectedInletOutletVelocityFvPatchVectorField::write(), pressurePermeableAlphaInletOutletVelocityFvPatchVectorField::write(), uniformTotalPressureFvPatchScalarField::write(), fixedNormalInletOutletVelocityFvPatchVectorField::write(), filmHeightInletVelocityFvPatchVectorField::write(), prghTotalPressureFvPatchScalarField::write(), supersonicFreestreamFvPatchVectorField::write(), prghPermeableAlphaTotalPressureFvPatchScalarField::write(), timeVaryingMassSorptionFvPatchScalarField::write(), outletMachNumberPressureFvPatchScalarField::write(), syringePressureFvPatchScalarField::write(), advancingFrontAMI::write(), activeBaffleVelocityFvPatchVectorField::write(), porousBafflePressureFvPatchField::write(), phaseHydrostaticPressureFvPatchScalarField::write(), activePressureForceBaffleVelocityFvPatchVectorField::write(), swirlFanVelocityFvPatchField::write(), pressurePIDControlInletVelocityFvPatchVectorField::write(), plenumPressureFvPatchScalarField::write(), enthalpySorptionFvPatchScalarField::write(), speciesSorptionFvPatchScalarField::write(), processorCyclicPolyPatch::write(), humidityTemperatureCoupledMixedFvPatchScalarField::write(), totalPressureFvPatchScalarField::write(), electrostaticDepositionFvPatchScalarField::write(), turbulentDFSEMInletFvPatchVectorField::write(), cyclicAMIPolyPatch::write(), mappedPatchBase::write(), wallFunctionCoefficients::writeEntries(), nutWallFunctionFvPatchScalarField::writeLocalEntries(), nutUBlendedWallFunctionFvPatchScalarField::writeLocalEntries(), atmNutUWallFunctionFvPatchScalarField::writeLocalEntries(), atmAlphatkWallFunctionFvPatchScalarField::writeLocalEntries(), atmNutkWallFunctionFvPatchScalarField::writeLocalEntries(), nutUSpaldingWallFunctionFvPatchScalarField::writeLocalEntries(), omegaWallFunctionFvPatchScalarField::writeLocalEntries(), epsilonWallFunctionFvPatchScalarField::writeLocalEntries(), and atmNutWallFunctionFvPatchScalarField::writeLocalEntries().
|
pure virtual |
Flush stream.
Implemented in UOPstreamBase, OSstream, and OTstream.
|
pure virtual |
Add newline and flush stream.
Implemented in UOPstreamBase, OSstream, and OTstream.
|
pure virtual |
Get padding character.
Implemented in UOPstreamBase, OSstream, and OTstream.
Referenced by Foam::setfill().
|
pure virtual |
Set padding character for formatted field up to field width.
Implemented in UOPstreamBase, OSstream, and OTstream.
|
pure virtual |
Get width of output field.
Implemented in UOPstreamBase, OSstream, and OTstream.
Referenced by Foam::setw().
|
pure virtual |
Set width of output field (and return old width)
Implemented in UOPstreamBase, OSstream, and OTstream.
|
pure virtual |
Get precision of output field.
Implemented in UOPstreamBase, OSstream, and OTstream.
Referenced by Foam::setprecision().
|
pure virtual |
Set precision of output field (and return old precision)
Implemented in UOPstreamBase, OSstream, and OTstream.
|
inline |
|
inlinenoexcept |
|
inlinenoexcept |
|
staticprotected |
|
protected |
Number of spaces per indent level.
Definition at line 71 of file Ostream.H.
Referenced by Ostream::indentSize().
|
protected |
Current indent level.
Definition at line 76 of file Ostream.H.
Referenced by Ostream::decrIndent(), Ostream::incrIndent(), and Ostream::indentLevel().
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.