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()) | |
Ostream (streamFormat fmt, versionNumber ver=currentVersion, compressionType comp=compressionType::UNCOMPRESSED) | |
Construct with format, version (compression) 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 floatScalar val)=0 |
Write floatScalar. More... | |
virtual Ostream & | write (const doubleScalar val)=0 |
Write doubleScalar. 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 |
Return indent level. More... | |
unsigned short & | indentSize () |
Access to indent size. More... | |
unsigned short | indentLevel () const |
Return indent level. More... | |
unsigned short & | indentLevel () |
Access to indent level. More... | |
void | incrIndent () |
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... | |
Public Member Functions inherited from IOstream | |
IOstream (const IOstream &)=default | |
Copy construct. More... | |
virtual | ~IOstream ()=default |
Destructor. More... | |
IOstream (IOstreamOption streamOpt=IOstreamOption()) | |
IOstream (streamFormat fmt, versionNumber ver, compressionType comp=compressionType::UNCOMPRESSED) | |
Construct with format, version (compression) More... | |
virtual const fileName & | name () const |
Return the name of the stream. More... | |
virtual fileName & | name () |
Return non-const access to the name of the stream. 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 |
Return true if stream has been opened. More... | |
bool | closed () const |
Return true if stream is closed. More... | |
bool | good () const |
Return true if next operation might succeed. More... | |
bool | eof () const |
Return true if end of input seen. More... | |
bool | fail () const |
Return true if next operation will fail. More... | |
bool | bad () const |
Return true if stream is corrupted. More... | |
operator bool () const | |
Return true if the stream has not failed. More... | |
bool | operator! () const |
Return true if the stream has failed. More... | |
unsigned | labelByteSize () const |
The label byte-size associated with the stream. More... | |
unsigned | scalarByteSize () const |
The scalar byte-size associated with the stream. More... | |
void | setLabelByteSize (unsigned nbytes) |
Set the label byte-size associated with the stream. More... | |
void | setScalarByteSize (unsigned nbytes) |
Set the scalar byte-size associated with the stream. More... | |
template<class T = label> | |
std::enable_if< std::is_integral< T >::value, bool >::type | checkLabelSize () const |
template<class T = scalar> | |
std::enable_if< std::is_floating_point< T >::value, bool >::type | checkScalarSize () const |
label | lineNumber () const |
Const access to the current stream line number. More... | |
label & | lineNumber () |
Non-const access to the current stream line number. More... | |
label | lineNumber (const label num) |
Set the stream line number. More... | |
virtual ios_base::fmtflags | flags () const =0 |
Return flags of stream. More... | |
void | setEof () |
Set stream to have reached eof. More... | |
void | setFail () |
Set stream to have failed. More... | |
void | setBad () |
Set stream 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 |
Return info proxy. More... | |
Public Member Functions inherited from IOstreamOption | |
constexpr | IOstreamOption (streamFormat fmt=streamFormat::ASCII, compressionType comp=compressionType::UNCOMPRESSED) noexcept |
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 | |
streamAccess | openClosed_ |
ios_base::iostate | ioState_ |
unsigned short | labelByteSize_ |
The label byte-size (could also be stored as byte) More... | |
unsigned short | scalarByteSize_ |
The scalar byte-size (could also be stored as byte) 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... | |
Static Public Member Functions inherited from IOstream | |
static unsigned int | defaultPrecision () |
Return the default precision. More... | |
static unsigned int | defaultPrecision (unsigned int prec) |
Reset the default precision. More... | |
Static Public Member Functions inherited from IOstreamOption | |
static streamFormat | formatEnum (const word &formatName, const streamFormat deflt=streamFormat::ASCII) |
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 () |
Set stream opened. More... | |
void | setClosed () |
Set stream closed. More... | |
void | setState (ios_base::iostate state) |
Set stream state. More... | |
void | setGood () |
Set stream 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 UOPstream, OTstream, OSstream, prefixOSstream, and ensightFile.
Referenced by snappyLayerDriver::addLayers(), interRegionHeatTransferModel::addSup(), nearWallFields::calcAddressing(), hexRef8::consistentSlowRefinement2(), distanceSurface::createGeometry(), snappySnapDriver::doSnap(), if(), isoSurfaceCell::isoSurfaceCell(), isoSurfacePoint::isoSurfacePoint(), isoSurfaceTopo::isoSurfaceTopo(), meshRefinement::mergeEdgesUndo(), meshRefinement::mergePatchFacesUndo(), ensightCase::newCloud(), ensightCase::newCloudData(), ensightCase::newData(), Foam::operator<<(), refinementIterator::setRefinement(), hexRef8::setRefinement(), snappySnapDriver::smoothDisplacement(), trackingInverseDistance::update(), FallOffReactionRate< ReactionRate, FallOffFunction >::write(), SHA1Digest::write(), tabulatedAxialAngularSpring::write(), functionEntry::write(), SHA1::write(), interpolationTable< scalar >::write(), XiReactionRate::write(), NonEquilibriumReversibleReaction< ReactionType, ReactionThermo, ReactionRate >::write(), writeCellCentres::write(), primitiveEntry::write(), scaledFixedValueFvPatchField< Type >::write(), freestreamFvPatchField< Type >::write(), derivedFields::write(), fixedNormalInletOutletVelocityFvPatchVectorField::write(), sixDoFRigidBodyMotion::write(), rigidBodyModel::write(), ObukhovLength::write(), cyclicPolyPatch::write(), extractEulerianParticles::write(), cyclicAMIPolyPatch::write(), coordinateSystem::write(), alphatWallBoilingWallFunctionFvPatchScalarField::write(), particle< Type >::writeCoordinates(), UniformDimensionedField< vector >::writeData(), profiling::writeData(), dimensioned< vector >::writeEntry(), PackedList< 2 >::writeList(), FixedList< Type, 3 >::writeList(), UList< Foam::wordRe >::writeList(), bitSet::writeList(), Matrix< RectangularMatrix< Type >, Type >::writeMatrix(), injectedParticle::writePosition(), particle< Type >::writePosition(), OSstream::writeRaw(), exprDriver::writeTable(), and streamLineBase::writeToFile().
|
pure virtual |
Write character.
Implemented in ensightFile, UOPstream, OTstream, OSstream, OBJstream, and prefixOSstream.
|
pure virtual |
Write character string.
Implemented in ensightFile, UOPstream, OTstream, OSstream, OBJstream, and prefixOSstream.
Write word.
Implemented in prefixOSstream, ensightFile, UOPstream, OTstream, OSstream, and OBJstream.
|
virtual |
Write keyType.
A plain word is written unquoted. A regular expression is written as a quoted string.
Definition at line 51 of file Ostream.C.
References keyType::isPattern().
Write string.
Implemented in prefixOSstream, OSHA1stream, ensightFile, UOPstream, OSstream, OTstream, and OBJstream.
Write std::string surrounded by quotes.
Optional write without quotes.
Implemented in prefixOSstream, UOPstream, OSstream, OTstream, and OBJstream.
Referenced by Foam::operator<<(), dynamicCode::writeCommentSHA1(), and decomposedBlockData::writeData().
|
pure virtual |
Write int32_t.
Implemented in ensightFile, UOPstream, OSstream, OTstream, and prefixOSstream.
|
pure virtual |
Write int64_t.
Implemented in ensightFile, UOPstream, OSstream, OTstream, and prefixOSstream.
|
pure virtual |
Write floatScalar.
Implemented in ensightFile, UOPstream, OSstream, OTstream, and prefixOSstream.
|
pure virtual |
Write doubleScalar.
Implemented in ensightFile, UOPstream, OSstream, OTstream, and prefixOSstream.
|
pure virtual |
Write binary block.
Implemented in UOPstream, OSstream, OTstream, ensightFile, and prefixOSstream.
|
pure virtual |
Low-level raw binary output.
Implemented in UOPstream, OSstream, and OTstream.
Referenced by decomposedBlockData::writeData(), and IndirectListBase< T, Addr >::writeList().
|
pure virtual |
Emit begin marker for low-level raw binary output.
The count indicates the number of bytes for subsequent writeRaw calls.
Implemented in UOPstream, OSstream, and OTstream.
Referenced by IndirectListBase< T, Addr >::writeList().
|
pure virtual |
Emit end marker for low-level raw binary output.
Implemented in UOPstream, OSstream, and OTstream.
Referenced by IndirectListBase< T, Addr >::writeList().
|
pure virtual |
Add indentation characters.
Implemented in UOPstream, OSstream, OTstream, and prefixOSstream.
Referenced by vtmWriter::dump(), and Foam::indent().
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Increment the indent level.
Definition at line 198 of file Ostream.H.
References Ostream::indentLevel_.
Referenced by Foam::incrIndent(), and ensightMesh::options::print().
void decrIndent | ( | ) |
Decrement the indent level.
Definition at line 37 of file Ostream.C.
References Ostream::indentLevel_.
Referenced by Foam::decrIndent(), vtmWriter::dump(), and ensightMesh::options::print().
|
virtual |
Write the keyword followed by an appropriate indentation.
Reimplemented in ensightFile, and ensightGeoFile.
Definition at line 57 of file Ostream.C.
References Foam::indent(), keyType::isPattern(), token::SPACE, and Foam::vtk::write().
Referenced by ensightMesh::options::print(), JanevReactionRate::write(), LangmuirHinshelwoodReactionRate::write(), composite::write(), primitiveEntry::write(), patchIdentifier::write(), UniformDimensionedField< vector >::writeData(), ConstantField< Type >::writeData(), Function1< Foam::Tensor >::writeData(), exprResultStored::writeDict(), exprResultDelayed::writeDict(), ensightFaces::writeDict(), ensightCells::writeDict(), Ostream::writeEntry(), dimensioned< vector >::writeEntry(), Field< Foam::Vector2D >::writeEntry(), PackedList< 2 >::writeEntry(), FixedList< Type, 3 >::writeEntry(), UList< Foam::wordRe >::writeEntry(), bitSet::writeEntry(), exprDriver::writeTable(), and exprDriver::writeVariableStrings().
|
virtual |
Write begin block group with the given name.
Increments indentation, adds newline.
Definition at line 91 of file Ostream.C.
References Foam::beginBlock(), Foam::indent(), keyType::isPattern(), and Foam::vtk::write().
Referenced by PDRblock::blockMeshDict(), vtmWriter::dump(), Foam::operator<<(), Foam::RBD::operator<<(), Foam::functionObjects::operator<<(), FallOffReactionRate< ReactionRate, FallOffFunction >::write(), ReactionList< Foam::sutherlandTransport >::write(), specie::write(), surfacePatch::write(), surfZone::write(), tabulatedTransport< Thermo >::write(), rhoConst< Specie >::write(), WLFTransport< Thermo >::write(), icoTabulated< Specie >::write(), sutherlandTransport< Thermo >::write(), perfectFluid< Specie >::write(), NonEquilibriumReversibleReaction< ReactionType, ReactionThermo, ReactionRate >::write(), linear< Type >::write(), hConstThermo< EquationOfState >::write(), incompressiblePerfectGas< Specie >::write(), profilingInformation::write(), hTabulatedThermo< EquationOfState >::write(), eConstThermo< EquationOfState >::write(), adiabaticPerfectFluid< Specie >::write(), polynomialSolidTransport< Thermo, PolySize >::write(), Boussinesq< Specie >::write(), polynomialTransport< Thermo, PolySize >::write(), janafThermo< EquationOfState >::write(), scaledFixedValueFvPatchField< Type >::write(), logPolynomialTransport< Thermo, PolySize >::write(), icoPolynomial< Specie, PolySize >::write(), rPolynomial< Specie >::write(), freestreamFvPatchField< Type >::write(), hPolynomialThermo< EquationOfState, PolySize >::write(), fixedNormalInletOutletVelocityFvPatchVectorField::write(), sixDoFRigidBodyMotion::write(), rigidBodyModel::write(), alphatWallBoilingWallFunctionFvPatchScalarField::write(), dictionary::write(), TableFile< Type >::writeData(), CSV< Type >::writeData(), ramp::writeData(), Scale< Type >::writeData(), faBoundaryMesh::writeData(), LimitRange< Type >::writeData(), profiling::writeData(), Square< Type >::writeData(), MRFZone::writeData(), polyBoundaryMesh::writeData(), Sine< Type >::writeData(), setUpdater::writeDict(), exprResultStored::writeDict(), perfectInterface::writeDict(), exprResultDelayed::writeDict(), colourTable::writeDict(), attachDetach::writeDict(), ensightFaces::writeDict(), ensightCells::writeDict(), PDRblock::gridControl::writeDict(), plane::writeDict(), slidingInterface::writeDict(), exprResult::writeDict(), GeometricField< Type, PatchField, GeoMesh >::Boundary::writeEntries(), identity::writeEntry(), cylindrical::writeEntry(), starcd::writeEntry(), axisAngle::writeEntry(), euler::writeEntry(), axes::writeEntry(), GeometricField< Type, PatchField, GeoMesh >::Boundary::writeEntry(), indirect::writeEntry(), coordinateSystem::writeEntry(), dictionary::writeEntry(), option::writeHeader(), and exprDriver::writeTable().
|
virtual |
Write begin block group without a name.
Increments indentation, adds newline.
Definition at line 100 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 109 of file Ostream.C.
References Foam::decrIndent(), token::END_BLOCK, Foam::indent(), and Foam::vtk::write().
Referenced by PDRblock::blockMeshDict(), vtmWriter::dump(), Foam::operator<<(), Foam::RBD::operator<<(), Foam::functionObjects::operator<<(), FallOffReactionRate< ReactionRate, FallOffFunction >::write(), ReactionList< Foam::sutherlandTransport >::write(), specie::write(), surfacePatch::write(), surfZone::write(), tabulatedTransport< Thermo >::write(), rhoConst< Specie >::write(), WLFTransport< Thermo >::write(), icoTabulated< Specie >::write(), sutherlandTransport< Thermo >::write(), perfectFluid< Specie >::write(), NonEquilibriumReversibleReaction< ReactionType, ReactionThermo, ReactionRate >::write(), linear< Type >::write(), hConstThermo< EquationOfState >::write(), incompressiblePerfectGas< Specie >::write(), profilingInformation::write(), hTabulatedThermo< EquationOfState >::write(), eConstThermo< EquationOfState >::write(), adiabaticPerfectFluid< Specie >::write(), polynomialSolidTransport< Thermo, PolySize >::write(), Boussinesq< Specie >::write(), polynomialTransport< Thermo, PolySize >::write(), janafThermo< EquationOfState >::write(), scaledFixedValueFvPatchField< Type >::write(), logPolynomialTransport< Thermo, PolySize >::write(), icoPolynomial< Specie, PolySize >::write(), rPolynomial< Specie >::write(), freestreamFvPatchField< Type >::write(), hPolynomialThermo< EquationOfState, PolySize >::write(), fixedNormalInletOutletVelocityFvPatchVectorField::write(), sixDoFRigidBodyMotion::write(), rigidBodyModel::write(), alphatWallBoilingWallFunctionFvPatchScalarField::write(), dictionary::write(), TableFile< Type >::writeData(), CSV< Type >::writeData(), ramp::writeData(), Scale< Type >::writeData(), faBoundaryMesh::writeData(), LimitRange< Type >::writeData(), profiling::writeData(), Square< Type >::writeData(), MRFZone::writeData(), polyBoundaryMesh::writeData(), Sine< Type >::writeData(), setUpdater::writeDict(), exprResultStored::writeDict(), perfectInterface::writeDict(), exprResultDelayed::writeDict(), colourTable::writeDict(), attachDetach::writeDict(), ensightFaces::writeDict(), ensightCells::writeDict(), PDRblock::gridControl::writeDict(), plane::writeDict(), slidingInterface::writeDict(), exprResult::writeDict(), GeometricField< Type, PatchField, GeoMesh >::Boundary::writeEntries(), identity::writeEntry(), cylindrical::writeEntry(), starcd::writeEntry(), axisAngle::writeEntry(), euler::writeEntry(), axes::writeEntry(), GeometricField< Type, PatchField, GeoMesh >::Boundary::writeEntry(), indirect::writeEntry(), coordinateSystem::writeEntry(), dictionary::writeEntry(), option::writeFooter(), and exprDriver::writeTable().
|
virtual |
Write end entry (';') followed by newline.
Definition at line 118 of file Ostream.C.
References token::END_STATEMENT, and Foam::vtk::write().
Referenced by Foam::endEntry(), TableFile< Type >::writeData(), CSV< Type >::writeData(), Square< Type >::writeData(), Sine< Type >::writeData(), and Ostream::writeEntry().
Write a keyword/value entry.
The following two are functionally equivalent:
Definition at line 232 of file Ostream.H.
References Ostream::endEntry(), and Ostream::writeKeyword().
Referenced by PDRblock::blockMeshDict(), Foam::operator<<(), Foam::functionObjects::operator<<(), codedFixedValueFvPatchField< Type >::redirectPatchField(), codedFixedValuePointPatchField< Type >::redirectPatchField(), profilingSysInfo::write(), thirdBodyEfficiencies::write(), masslessBody::write(), Lavieville::write(), SRIFallOffFunction::write(), TroeFallOffFunction::write(), Zuber::write(), cosine::write(), linear::write(), cpuInfo::write(), Jeschar::write(), partitioningModel::write(), HuaXu::write(), KocamustafaogullariIshii::write(), Spiegler::write(), Pa::write(), Ra::write(), departureFrequencyModel::write(), CHFModel::write(), CHFSubCoolModel::write(), filmBoilingModel::write(), Bromley::write(), LeidenfrostModel::write(), MHFModel::write(), TDNBModel::write(), ArrheniusReactionRate::write(), departureDiameterModel::write(), TolubinskiKostanchuk::write(), nucleationSiteModel::write(), axis::write(), LandauTellerReactionRate::write(), powerSeriesReactionRate::write(), sphere::write(), solidArrheniusReactionRate::write(), subBody::write(), cuboid::write(), linearDamper::write(), ReactionList< Foam::sutherlandTransport >::write(), sphericalAngularDamper::write(), point::write(), coupleGroupIdentifier::write(), line::write(), plane::write(), sphericalAngularSpring::write(), Schroeder::write(), linearAxialAngularSpring::write(), DispersionRASModel< CloudType >::write(), CloudSubModelBase< CloudType >::write(), boundaryPatch::write(), linearSpring::write(), adjointOutletNuaTildaFvPatchScalarField::write(), tabulatedAxialAngularSpring::write(), adjointWallVelocityLowReFvPatchVectorField::write(), adjointOutletPressureFvPatchScalarField::write(), memInfo::write(), csvTableReader< Type >::write(), externalForce::write(), softWall::write(), interpolation2DTable< scalar >::write(), surfacePatch::write(), specie::write(), timeVaryingAlphaContactAngleFvPatchScalarField::write(), fixedShearStressFvPatchVectorField::write(), oscillatingDisplacementPointPatchVectorField::write(), waveDisplacementPointPatchVectorField::write(), adjointFarFieldVelocityFvPatchVectorField::write(), adjointRotatingWallVelocityFvPatchVectorField::write(), adjointFarFieldNuaTildaFvPatchScalarField::write(), constantAlphaContactAngleFvPatchScalarField::write(), adjointInletNuaTildaFvPatchScalarField::write(), copiedFixedValueFvPatchScalarField::write(), rigidBodyModelState::write(), adjointInletVelocityFvPatchVectorField::write(), patchExprFieldBase::write(), dynamicAlphaContactAngleFvPatchScalarField::write(), fixedNormalSlipPointPatchField< Type >::write(), adjointOutletNuaTildaFluxFvPatchScalarField::write(), adjointOutletVelocityFvPatchVectorField::write(), adjointWallVelocityFvPatchVectorField::write(), prescribedRotation::write(), sixDoFRigidBodyMotionState::write(), alphaContactAngleTwoPhaseFvPatchScalarField::write(), oscillatingVelocityPointPatchVectorField::write(), interpolationTable< scalar >::write(), angularOscillatingDisplacementPointPatchVectorField::write(), angularOscillatingVelocityPointPatchVectorField::write(), rigidBody::write(), surfZone::write(), solidBodyMotionDisplacementPointPatchVectorField::write(), adjointFarFieldPressureFvPatchScalarField::write(), genericPointPatchField< Type >::write(), tabulatedTransport< Thermo >::write(), rhoConst< Specie >::write(), JohnsonJacksonParticleSlipFvPatchVectorField::write(), WLFTransport< Thermo >::write(), fixedMultiPhaseHeatFluxFvPatchScalarField::write(), linearSpringDamper::write(), JohnsonJacksonParticleThetaFvPatchScalarField::write(), waveAlphaFvPatchScalarField::write(), waveVelocityFvPatchVectorField::write(), interpolationLookUpTable< scalar >::write(), totalFlowRateAdvectiveDiffusiveFvPatchScalarField::write(), icoTabulated< Specie >::write(), sutherlandTransport< Thermo >::write(), genericPolyPatch::write(), alphatFixedDmdtWallBoilingWallFunctionFvPatchScalarField::write(), adjointOutletVelocityFluxFvPatchVectorField::write(), solidReaction< ReactionThermo >::write(), uniformInterpolatedDisplacementPointPatchVectorField::write(), perfectFluid< Specie >::write(), surfZoneIdentifier::write(), linear< Type >::write(), restraint::write(), nutkFilmWallFunctionFvPatchScalarField::write(), hConstThermo< EquationOfState >::write(), incompressiblePerfectGas< Specie >::write(), geometricSurfacePatch::write(), profilingInformation::write(), hTabulatedThermo< EquationOfState >::write(), sixDoFRigidBodyDisplacementPointPatchVectorField::write(), eConstThermo< EquationOfState >::write(), genericFvsPatchField< Type >::write(), patchIdentifier::write(), genericFaPatchField< Type >::write(), genericFvPatchField< Type >::write(), adiabaticPerfectFluid< Specie >::write(), mappedFlowRateFvPatchVectorField::write(), acousticWaveTransmissiveFvPatchField< Type >::write(), polynomialSolidTransport< Thermo, PolySize >::write(), Boussinesq< Specie >::write(), variableHeightFlowRateInletVelocityFvPatchVectorField::write(), variableHeightFlowRateFvPatchScalarField::write(), lumpedMassWallTemperatureFvPatchScalarField::write(), fixedJumpAMIFvPatchField< scalar >::write(), matchedFlowRateOutletVelocityFvPatchVectorField::write(), polynomialTransport< Thermo, PolySize >::write(), outletPhaseMeanVelocityFvPatchVectorField::write(), rotatingPressureInletOutletVelocityFvPatchVectorField::write(), fixedJumpFvPatchField< vector >::write(), alphaContactAngleFvPatchScalarField::write(), faceAreaWeightAMI::write(), temperatureCoupledBase::write(), surfaceSlipDisplacementPointPatchVectorField::write(), lumpedPointDisplacementPointPatchVectorField::write(), janafThermo< EquationOfState >::write(), alphatWallFunctionFvPatchScalarField::write(), nutUTabulatedWallFunctionFvPatchScalarField::write(), cylindricalInletVelocityFvPatchVectorField::write(), swirlInletVelocityFvPatchVectorField::write(), convectiveHeatTransferFvPatchScalarField::write(), surfaceDisplacementPointPatchVectorField::write(), cyclicPeriodicAMIPolyPatch::write(), logPolynomialTransport< Thermo, PolySize >::write(), turbulentIntensityKineticEnergyInletFvPatchScalarField::write(), icoPolynomial< Specie, PolySize >::write(), rotatingWallVelocityFvPatchVectorField::write(), rPolynomial< Specie >::write(), outletMappedUniformInletHeatAdditionFvPatchField::write(), turbulentMixingLengthFrequencyInletFvPatchScalarField::write(), alphatFilmWallFunctionFvPatchScalarField::write(), rigidBodyMotion::write(), filmPyrolysisRadiativeCoupledMixedFvPatchScalarField::write(), mappedVariableThicknessWallPolyPatch::write(), swirlFlowRateInletVelocityFvPatchVectorField::write(), freestreamFvPatchField< Type >::write(), alphatJayatillekeWallFunctionFvPatchScalarField::write(), turbulentTemperatureCoupledBaffleMixedFvPatchScalarField::write(), pressureNormalInletOutletVelocityFvPatchVectorField::write(), fixedProfileFvPatchField< Type >::write(), codedFixedValueFvPatchField< Type >::write(), SRFFreestreamVelocityFvPatchVectorField::write(), joint::write(), totalTemperatureFvPatchScalarField::write(), codedFixedValuePointPatchField< Type >::write(), alphatPhaseChangeJayatillekeWallFunctionFvPatchScalarField::write(), mappedPatchFieldBase< scalar >::write(), hPolynomialThermo< EquationOfState, PolySize >::write(), inletOutletTotalTemperatureFvPatchScalarField::write(), waveTransmissiveFvPatchField< Type >::write(), turbulentTemperatureRadCoupledMixedFvPatchScalarField::write(), nutUBlendedWallFunctionFvPatchScalarField::write(), SRFVelocityFvPatchVectorField::write(), flowRateInletVelocityFvPatchVectorField::write(), advectiveFvPatchField< Type >::write(), thermalBaffle1DFvPatchScalarField< solidType >::write(), codedMixedFvPatchField< Type >::write(), uniformTotalPressureFvPatchScalarField::write(), turbulentMixingLengthDissipationRateInletFvPatchScalarField::write(), atmNutUWallFunctionFvPatchScalarField::write(), uniformDensityHydrostaticPressureFvPatchScalarField::write(), kLowReWallFunctionFvPatchScalarField::write(), fixedNormalInletOutletVelocityFvPatchVectorField::write(), outletMappedUniformInletFvPatchField< Type >::write(), porousBafflePressureFvPatchField< Type >::write(), faPatch::write(), atmTurbulentHeatFluxTemperatureFvPatchScalarField::write(), supersonicFreestreamFvPatchVectorField::write(), externalCoupledTemperatureMixedFvPatchScalarField::write(), atmAlphatkWallFunctionFvPatchScalarField::write(), fanFvPatchField< Type >::write(), syringePressureFvPatchScalarField::write(), atmNutkWallFunctionFvPatchScalarField::write(), fanPressureFvPatchScalarField::write(), activeBaffleVelocityFvPatchVectorField::write(), outletMachNumberPressureFvPatchScalarField::write(), swirlFanVelocityFvPatchField::write(), phaseHydrostaticPressureFvPatchScalarField::write(), oldCyclicPolyPatch::write(), processorFaPatch::write(), Reaction< ReactionThermo >::write(), faePatchField< Type >::write(), turbulentInletFvPatchField< Type >::write(), atmNutWallFunctionFvPatchScalarField::write(), activePressureForceBaffleVelocityFvPatchVectorField::write(), pressurePIDControlInletVelocityFvPatchVectorField::write(), plenumPressureFvPatchScalarField::write(), fvsPatchField< Type >::write(), sixDoFRigidBodyMotion::write(), waveMakerPointPatchVectorField::write(), cyclicACMIPolyPatch::write(), coupledPolyPatch::write(), polyPatch::write(), rigidBodyModel::write(), processorPolyPatch::write(), externalWallHeatFluxTemperatureFvPatchScalarField::write(), processorCyclicPolyPatch::write(), cyclicPolyPatch::write(), humidityTemperatureCoupledMixedFvPatchScalarField::write(), faPatchField< Type >::write(), pointPatchField< vector >::write(), thermalBaffleFvPatchScalarField::write(), turbulentDFSEMInletFvPatchVectorField::write(), epsilonWallFunctionFvPatchScalarField::write(), totalPressureFvPatchScalarField::write(), omegaWallFunctionFvPatchScalarField::write(), cyclicAMIPolyPatch::write(), atmBoundaryLayer::write(), fvPatchField< vector >::write(), alphatWallBoilingWallFunctionFvPatchScalarField::write(), mappedPatchBase::write(), AMIInterpolation::write(), turbulentDigitalFilterInletFvPatchVectorField::write(), fvExprDriver::writeCommon(), UniformDimensionedField< vector >::writeData(), TableFile< Type >::writeData(), RASTurbulenceModel::writeData(), nonUniformTable::writeData(), simple::writeData(), adjointSimple::writeData(), profiling::writeData(), Sampled< Type >::writeData(), MappedFile< scalar >::writeData(), MRFZone::writeData(), DimensionedField< Type, Foam::pointMesh >::writeData(), option::writeData(), lumpedPointMovement::writeData(), setUpdater::writeDict(), exprResultStored::writeDict(), perfectInterface::writeDict(), exprResultDelayed::writeDict(), colourTable::writeDict(), attachDetach::writeDict(), ensightFaces::writeDict(), ensightCells::writeDict(), lumpedPointState::writeDict(), plane::writeDict(), slidingInterface::writeDict(), exprResult::writeDict(), TableBase< Type >::writeEntries(), CSV< Type >::writeEntries(), ramp::writeEntries(), LimitRange< Type >::writeEntries(), identity::writeEntry(), orientedType::writeEntry(), cylindrical::writeEntry(), starcd::writeEntry(), axisAngle::writeEntry(), euler::writeEntry(), axes::writeEntry(), indirect::writeEntry(), coordinateSystem::writeEntry(), Ostream::writeEntryIfDifferent(), nutWallFunctionFvPatchScalarField::writeLocalEntries(), and exprDriver::writeTable().
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 244 of file Ostream.H.
References Ostream::writeEntry().
Referenced by cpuInfo::write(), tableReader< scalar >::write(), specie::write(), inclinedFilmNusseltHeightFvPatchScalarField::write(), patchExprFieldBase::write(), inclinedFilmNusseltInletVelocityFvPatchVectorField::write(), inletOutletFaPatchField< Type >::write(), linearSpringDamper::write(), interstitialInletVelocityFvPatchVectorField::write(), nutkFilmWallFunctionFvPatchScalarField::write(), semiPermeableBaffleVelocityFvPatchVectorField::write(), hConstThermo< EquationOfState >::write(), mappedVelocityFluxFixedValueFvPatchField::write(), profilingInformation::write(), eConstThermo< EquationOfState >::write(), outletInletFvPatchField< Type >::write(), filmPyrolysisTemperatureCoupledFvPatchScalarField::write(), filmPyrolysisVelocityCoupledFvPatchVectorField::write(), mappedFlowRateFvPatchVectorField::write(), temperatureDependentAlphaContactAngleFvPatchScalarField::write(), greyDiffusiveRadiationMixedFvPatchScalarField::write(), freestreamPressureFvPatchScalarField::write(), MarshakRadiationFvPatchScalarField::write(), inletOutletFvPatchField< Type >::write(), variableHeightFlowRateFvPatchScalarField::write(), matchedFlowRateOutletVelocityFvPatchVectorField::write(), pressureInletVelocityFvPatchVectorField::write(), timeVaryingMappedFixedValuePointPatchField< Type >::write(), surfaceSlipDisplacementPointPatchVectorField::write(), fixedPressureCompressibleDensityFvPatchScalarField::write(), cyclicPeriodicAMIPolyPatch::write(), fluxCorrectedVelocityFvPatchVectorField::write(), uniformInletOutletFvPatchField< Type >::write(), surfaceDisplacementPointPatchVectorField::write(), turbulentIntensityKineticEnergyInletFvPatchScalarField::write(), outletMappedUniformInletHeatAdditionFvPatchField::write(), alphatFilmWallFunctionFvPatchScalarField::write(), filmPyrolysisRadiativeCoupledMixedFvPatchScalarField::write(), semiPermeableBaffleMassFractionFvPatchScalarField::write(), swirlFlowRateInletVelocityFvPatchVectorField::write(), freestreamFvPatchField< Type >::write(), pressureInletOutletParSlipVelocityFvPatchVectorField::write(), atmBoundaryLayerInletKFvPatchScalarField::write(), pressureInletOutletVelocityFvPatchVectorField::write(), flowRateOutletVelocityFvPatchVectorField::write(), totalTemperatureFvPatchScalarField::write(), waveSurfacePressureFvPatchScalarField::write(), mappedMixedFvPatchField< Type >::write(), atmBoundaryLayerInletOmegaFvPatchScalarField::write(), mappedMixedFieldFvPatchField< Type >::write(), prghTotalHydrostaticPressureFvPatchScalarField::write(), inletOutletTotalTemperatureFvPatchScalarField::write(), atmBoundaryLayerInletEpsilonFvPatchScalarField::write(), waveTransmissiveFvPatchField< Type >::write(), flowRateInletVelocityFvPatchVectorField::write(), atmBoundaryLayerInletVelocityFvPatchVectorField::write(), advectiveFvPatchField< Type >::write(), pressureDirectedInletVelocityFvPatchVectorField::write(), prghPressureFvPatchScalarField::write(), uniformTotalPressureFvPatchScalarField::write(), pressureDirectedInletOutletVelocityFvPatchVectorField::write(), fixedNormalInletOutletVelocityFvPatchVectorField::write(), outletMappedUniformInletFvPatchField< Type >::write(), porousBafflePressureFvPatchField< Type >::write(), supersonicFreestreamFvPatchVectorField::write(), filmHeightInletVelocityFvPatchVectorField::write(), prghTotalPressureFvPatchScalarField::write(), fanFvPatchField< Type >::write(), syringePressureFvPatchScalarField::write(), activeBaffleVelocityFvPatchVectorField::write(), outletMachNumberPressureFvPatchScalarField::write(), swirlFanVelocityFvPatchField::write(), phaseHydrostaticPressureFvPatchScalarField::write(), activePressureForceBaffleVelocityFvPatchVectorField::write(), pressurePIDControlInletVelocityFvPatchVectorField::write(), plenumPressureFvPatchScalarField::write(), processorCyclicPolyPatch::write(), humidityTemperatureCoupledMixedFvPatchScalarField::write(), thermalBaffleFvPatchScalarField::write(), turbulentDFSEMInletFvPatchVectorField::write(), totalPressureFvPatchScalarField::write(), cyclicAMIPolyPatch::write(), mappedPatchBase::write(), turbulentDigitalFilterInletFvPatchVectorField::write(), MappedFile< scalar >::writeData(), exprResult::writeDict(), TableBase< Type >::writeEntries(), Square< Type >::writeEntries(), Sine< Type >::writeEntries(), and nutUSpaldingWallFunctionFvPatchScalarField::writeLocalEntries().
|
pure virtual |
Flush stream.
Implemented in UOPstream, OSstream, and OTstream.
Referenced by Foam::flush(), STARCDsurfaceFormatCore::writeCase(), STARCDedgeFormat::writeCase(), and STARCDCore::writePoints().
|
pure virtual |
Add newline and flush stream.
Implemented in UOPstream, OSstream, and OTstream.
Referenced by Foam::endl().
|
pure virtual |
Get padding character.
Implemented in UOPstream, OSstream, and OTstream.
Referenced by Foam::setfill().
|
pure virtual |
|
pure virtual |
Get width of output field.
Implemented in UOPstream, OTstream, and OSstream.
Referenced by writeFile::initStream(), and Foam::setw().
|
pure virtual |
|
pure virtual |
Get precision of output field.
Implemented in UOPstream, OTstream, and OSstream.
Referenced by writeFile::initStream(), NASCore::setPrecision(), Foam::setprecision(), dimensionSet::write(), PDRblock::writeBlockMeshDict(), STARCDCore::writePoints(), and ABAQUSCore::writePoints().
|
pure virtual |
|
inline |
|
staticconstexprprotected |
|
protected |
Number of spaces per indent level.
Definition at line 68 of file Ostream.H.
Referenced by Ostream::indentSize().
|
protected |
Current indent level.
Definition at line 71 of file Ostream.H.
Referenced by Ostream::decrIndent(), Ostream::incrIndent(), and Ostream::indentLevel().