An IOstream is an abstract base class for all input/output systems; be they streams, files, token lists etc. More...
Classes | |
class | versionNumber |
Version number type. More... | |
Public Types | |
enum | streamAccess { OPENED, CLOSED } |
Enumeration for whether the stream open or closed. More... | |
enum | streamFormat { ASCII, BINARY } |
Enumeration for the format of data in the stream. More... | |
enum | compressionType { UNCOMPRESSED, COMPRESSED } |
Enumeration for the format of data in the stream. More... | |
Public Member Functions | |
IOstream (streamFormat format, versionNumber version, compressionType compression=UNCOMPRESSED) | |
Construct setting format and version. More... | |
virtual | ~IOstream () |
Destructor. 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... | |
void | 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 void * () const | |
Return non-zero if the stream has not failed. More... | |
bool | operator! () const |
Return true if the stream has failed. More... | |
streamFormat | format () const |
Return current stream format. More... | |
streamFormat | format (const streamFormat fmt) |
Set the stream format. More... | |
streamFormat | format (const word &fmt) |
Set the stream format from word. More... | |
versionNumber | version () const |
Return the stream version. More... | |
versionNumber | version (const versionNumber ver) |
Set the stream version. More... | |
compressionType | compression () const |
Return the stream compression. More... | |
compressionType | compression (const compressionType cmp) |
Set the stream compression. More... | |
compressionType | compression (const word &cmp) |
Set the stream compression from word. More... | |
label | lineNumber () const |
Return current stream line number. More... | |
label & | lineNumber () |
Return current stream line number. More... | |
label | lineNumber (const label ln) |
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 uf) |
Unset flags of stream. More... | |
virtual void | print (Ostream &) const |
Print description of IOstream to Ostream. More... | |
void | print (Ostream &, const int streamState) const |
Check given stream state bits. More... | |
InfoProxy< IOstream > | info () const |
Return info proxy. More... | |
Static Public Member Functions | |
static streamFormat | formatEnum (const word &) |
Return stream format of given format name. More... | |
static compressionType | compressionEnum (const word &) |
Return compression of given compression name. More... | |
static unsigned int | defaultPrecision () |
Return the default precision. More... | |
static unsigned int | defaultPrecision (unsigned int p) |
Reset the default precision (and return old precision) More... | |
Static Public Attributes | |
static const versionNumber | originalVersion |
Original version number. More... | |
static const versionNumber | currentVersion |
Current version number. More... | |
static unsigned int | precision_ |
Default precision. More... | |
Protected Member Functions | |
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... | |
Protected Attributes | |
label | lineNumber_ |
Friends | |
Ostream & | operator<< (Ostream &os, const streamFormat &sf) |
Ostream operator. More... | |
An IOstream is an abstract base class for all input/output systems; be they streams, files, token lists etc.
The basic operations are construct, close, read token, read primitive and read binary block. In addition version control and line number counting is incorporated. Usually one would use the read primitive member functions, but if one were reading a stream on unknown data sequence one can read token by token, and then analyse.
Definition at line 71 of file IOstream.H.
enum streamAccess |
Enumeration for whether the stream open or closed.
Enumerator | |
---|---|
OPENED | |
CLOSED |
Definition at line 79 of file IOstream.H.
enum streamFormat |
Enumeration for the format of data in the stream.
Enumerator | |
---|---|
ASCII | |
BINARY |
Definition at line 86 of file IOstream.H.
enum compressionType |
Enumeration for the format of data in the stream.
Enumerator | |
---|---|
UNCOMPRESSED | |
COMPRESSED |
Definition at line 193 of file IOstream.H.
|
inline |
Construct setting format and version.
Definition at line 269 of file IOstream.H.
References IOstream::setBad().
Referenced by IOstream::setGood().
|
inlinevirtual |
Destructor.
Definition at line 287 of file IOstream.H.
References IOstream::check(), IOstream::fatalCheck(), and IOstream::name().
|
inlineprotected |
Set stream opened.
Definition at line 239 of file IOstream.H.
References IOstream::OPENED.
Referenced by IFstream::IFstream(), ITstream::ITstream(), OFstream::OFstream(), and UOPstream::UOPstream().
|
inlineprotected |
Set stream closed.
Definition at line 245 of file IOstream.H.
References IOstream::CLOSED.
Referenced by IFstream::IFstream(), and OFstream::OFstream().
|
inlineprotected |
Set stream state.
Definition at line 251 of file IOstream.H.
Referenced by ISstream::get(), ISstream::getLine(), IFstream::IFstream(), OFstream::OFstream(), ISstream::putback(), ISstream::read(), OSstream::write(), and OSstream::writeQuoted().
|
inlineprotected |
Set stream to be good.
Definition at line 257 of file IOstream.H.
References IOstream::IOstream().
Referenced by ITstream::ITstream(), ITstream::rewind(), and UOPstream::UOPstream().
|
inlinevirtual |
Return the name of the stream.
Useful for Fstream to return the filename
Reimplemented in primitiveEntry, ITstream, OFstream, IFstream, ISstream, and OSstream.
Definition at line 297 of file IOstream.H.
Referenced by globalIndexAndTransform::addToTransformIndex(), mappedPatchBase::calcMapping(), IOstream::check(), hexRef8::checkMesh(), functionEntry::execute(), includeEntry::execute(), IOstream::fatalCheck(), includeEntry::includeFileName(), entry::New(), Foam::operator>>(), decomposedBlockData::readBlock(), decomposedBlockData::readBlocks(), IOobject::readHeader(), decomposedBlockData::readMasterHeader(), IOerror::SafeFatalIOError(), triSurface::triSurfInstance(), ensightSetWriter< Type >::write(), gnuplotGraph::write(), xmgrGraph::write(), edgeMeshFormat::write(), CloudSubModelBase< Foam::KinematicCloud< Cloud< basicKinematicCollidingParcel > > >::write(), restraint::write(), STARCDsurfaceFormatCore::writeCase(), STARCDedgeFormat::writeCase(), fieldValueDelta::writeFileHeader(), and IOstream::~IOstream().
|
inlinevirtual |
Return non-const access to the name of the stream.
Useful to alter the stream name
Reimplemented in primitiveEntry, ITstream, OFstream, IFstream, ISstream, and OSstream.
Definition at line 304 of file IOstream.H.
|
virtual |
Check IOstream status for given operation.
print IOstream state if error has occured
Definition at line 92 of file IOstream.C.
References IOstream::bad(), Foam::exit(), Foam::FatalIOError, FatalIOErrorInFunction, and IOstream::name().
Referenced by Foam::checkMethod(), CollidingParcel< ParcelType >::CollidingParcel(), CollisionRecordList< vector, vector >::CollisionRecordList(), Keyed< T >::createList(), DSMCParcel< ParcelType >::DSMCParcel(), fieldAverageItem::fieldAverageItem(), findCellParticle::findCellParticle(), ignitionSite::ignitionSite(), tetrahedron< Point, PointRef >::inside(), KinematicParcel< ParcelType >::KinematicParcel(), kinematicParcelInjectionData::kinematicParcelInjectionData(), molecule::molecule(), MPPICParcel< ParcelType >::MPPICParcel(), line< Point, PointRef >::nearestDist(), objectMap::objectMap(), Foam::operator!=(), WallSiteData< Type >::operator!=(), IFstream::operator()(), Istream::operator()(), dimensioned< vector >::operator/=(), Foam::operator<<(), Foam::RBD::operator<<(), Foam::functionObjects::operator<<(), fvPatchField< Type >::operator==(), Foam::operator>>(), Foam::RBD::operator>>(), Foam::functionObjects::operator>>(), PairCollisionRecord< Type >::PairCollisionRecord(), particle< Type >::particle(), phaseProperties::phaseProperties(), polyBoundaryMesh::polyBoundaryMesh(), pyramid< Point, PointRef, polygonRef >::pyramid(), ReactingMultiphaseParcel< ParcelType >::ReactingMultiphaseParcel(), reactingMultiphaseParcelInjectionData::reactingMultiphaseParcelInjectionData(), ReactingParcel< ParcelType >::ReactingParcel(), reactingParcelInjectionData::reactingParcelInjectionData(), dimensioned< vector >::read(), dimensionSet::read(), IOPosition< CloudType >::readData(), ensightPart::reconstruct(), PackedList< 2 >::setPair(), solidParticle::solidParticle(), LduMatrix< Type, DType, LUType >::source(), SprayParcel< ParcelType >::SprayParcel(), streamLineParticle::streamLineParticle(), surfacePatchIOList::surfacePatchIOList(), surfZoneIOList::surfZoneIOList(), ThermoParcel< ParcelType >::ThermoParcel(), thermoParcelInjectionData::thermoParcelInjectionData(), trackedParticle::trackedParticle(), VectorSpace< Vector< vector >, vector, 3 >::VectorSpace(), WallCollisionRecord< Type >::WallCollisionRecord(), SHA1Digest::write(), dictionaryListEntry::write(), edgeMeshFormat::write(), OFSsurfaceFormat< Face >::write(), dimensionSet::write(), triSurface::write(), ensightParts::writeData(), Function1< Foam::Vector >::writeData(), polyBoundaryMesh::writeData(), DimensionedField< Type, Foam::pointMesh >::writeData(), FixedList< Type, 3 >::writeEntry(), GeometricField< Type, PatchField, GeoMesh >::Boundary::writeEntry(), Cloud< streamLineParticle >::writeObject(), particle< Type >::writePosition(), and IOstream::~IOstream().
void fatalCheck | ( | const char * | operation | ) | const |
Check IOstream status for given operation.
print IOstream state if error has occured and exit
Definition at line 105 of file IOstream.C.
References IOstream::bad(), Foam::exit(), Foam::FatalIOError, FatalIOErrorInFunction, and IOstream::name().
Referenced by dictionaryEntry::dictionaryEntry(), functionEntry::execute(), FixedList< Type, 3 >::FixedList(), List< Field< scalar > >::List(), LList< Foam::chemPointISAT< CompType, ThermoType > *>::LList(), Matrix< RectangularMatrix< Type >, Type >::Matrix(), entry::New(), decomposedBlockData::numBlocks(), Foam::operator>>(), StaticHashTable< T, Key, Hash >::printInfo(), HashTable< Foam::phase *>::printInfo(), Foam::blockMeshTools::read(), PtrList< transferModel >::read(), primitiveEntry::read(), PackedList< 2 >::read(), decomposedBlockData::readBlock(), decomposedBlockData::readBlocks(), decomposedBlockData::readMasterHeader(), UList< Foam::wordRe >::writeEntry(), and IOstream::~IOstream().
|
inline |
Return true if stream has been opened.
Definition at line 321 of file IOstream.H.
References IOstream::OPENED.
Referenced by IOstream::print().
|
inline |
Return true if stream is closed.
Definition at line 327 of file IOstream.H.
References IOstream::CLOSED.
Referenced by IOstream::print().
|
inline |
Return true if next operation might succeed.
Definition at line 333 of file IOstream.H.
Referenced by topoSetSource::checkIs(), Foam::debug::controlDict(), dynamicCode::copyAndFilter(), dynamicCode::copyOrCreateFiles(), logFiles::createFiles(), AC3DsurfaceFormatCore::cueTo(), error::error(), edgeMeshFormatsCore::getLineNoComment(), surfaceFormatsCore::getLineNoComment(), IFstream::IFstream(), meanVelocityForce::meanVelocityForce(), noiseFFT::noiseFFT(), decomposedBlockData::numBlocks(), OFstream::OFstream(), csvTableReader< Type >::operator()(), error::operator()(), IFstream::operator()(), Istream::operator()(), Foam::operator>>(), argList::parse(), Foam::parseNASCoord(), IOstream::print(), extendedEdgeMeshFormat::read(), extendedFeatureEdgeMeshFormat::read(), NASedgeFormat::read(), OBJsurfaceFormat< Face >::read(), GTSsurfaceFormat< Face >::read(), NASsurfaceFormat< Face >::read(), OBJedgeFormat::read(), OFFsurfaceFormat< Face >::read(), VTKsurfaceFormat< Face >::read(), AC3DsurfaceFormat< Face >::read(), edgeMeshFormat::read(), tabulated6DoFAcceleration::read(), VTKedgeFormat::read(), STARCDsurfaceFormat< Face >::read(), tabulated6DoFMotion::read(), OFSsurfaceFormat< Face >::read(), STARCDedgeFormat::read(), dictionary::read(), decomposedBlockData::readBlocks(), STARCD::readBoundary(), Foam::readCmd(), AC3DsurfaceFormatCore::readCmd(), GlobalIOField< Foam::Vector >::readData(), GlobalIOList< Type >::readData(), externalCoupledMixedFvPatchField< scalar >::readData(), STARCDCore::readHeader(), STARCD::readHeader(), IOobject::readHeader(), masterUncollatedFileOperation::readHeader(), STARCDsurfaceFormatCore::readInpCellTable(), STARCDCore::readPoints(), Foam::readUpto(), scalarRanges::scalarRanges(), Reaction< ReactionThermo >::setLRhs(), TableFile< Type >::TableFile(), topoSet::topoSet(), triSurface::triSurfInstance(), memInfo::update(), vtkUnstructuredReader::vtkUnstructuredReader(), X3DsurfaceFormat< Face >::write(), WRLsurfaceFormat< Face >::write(), SMESHsurfaceFormat< Face >::write(), GTSsurfaceFormat< Face >::write(), OBJsurfaceFormat< Face >::write(), VTKsurfaceFormat< Face >::write(), AC3DsurfaceFormat< Face >::write(), OBJedgeFormat::write(), OFFsurfaceFormat< Face >::write(), TRIsurfaceFormat< Face >::write(), VTKedgeFormat::write(), edgeMeshFormat::write(), OFSsurfaceFormat< Face >::write(), graph::write(), dictionary::write(), dynamicIndexedOctree< Foam::dynamicTreeDataPoint >::write(), indexedOctree< Foam::treeDataFace >::write(), STLsurfaceFormat< Face >::writeAscii(), correlationFunction< Type >::writeAveraged(), decomposedBlockData::writeBlocks(), fieldDictionary::writeData(), AverageField< Type >::writeData(), featureEdgeMesh::writeData(), IOPosition< CloudType >::writeData(), UniformDimensionedField< vector >::writeData(), surfZoneIOList::writeData(), baseIOdictionary::writeData(), surfacePatchIOList::writeData(), constant::writeData(), porosityModelList::writeData(), decomposedBlockData::writeData(), coordinateSystems::writeData(), temperatureDependent::writeData(), extendedFeatureEdgeMesh::writeData(), surfaceTensionModel::writeData(), polyTopoChanger::writeData(), cellModel::writeData(), AveragingMethod< Foam::Vector >::writeData(), ZoneMesh< cellZone, polyMesh >::writeData(), MRFZoneList::writeData(), optionList::writeData(), polyBoundaryMesh::writeData(), DimensionedField< Type, Foam::pointMesh >::writeData(), refinementHistory::writeData(), GeometricField< vector, pointPatchField, pointMesh >::writeData(), pairPotential::writeEnergyAndForceTables(), IOobject::writeHeader(), collatedFileOperation::writeObject(), fileOperation::writeObject(), masterUncollatedFileOperation::writeObject(), JobInfo::~JobInfo(), and TRIsurfaceFormatCore::~TRIsurfaceFormatCore().
|
inline |
Return true if end of input seen.
Definition at line 339 of file IOstream.H.
Referenced by topoSetSource::checkIs(), gaussGrad< Type >::gaussGrad(), gradScheme< Type >::New(), snGradScheme< Type >::New(), entry::New(), surfaceInterpolationScheme< GType >::New(), d2dt2Scheme< Type >::New(), ddtScheme< Type >::New(), divScheme< Type >::New(), convectionScheme< Type >::New(), limitedSurfaceInterpolationScheme< Type >::New(), laplacianScheme< Type, GType >::New(), noiseFFT::noiseFFT(), IOstream::print(), PtrList< transferModel >::read(), ITstream::read(), dictionary::read(), solution::upgradeSolverDict(), and UIPstream::~UIPstream().
|
inline |
Return true if next operation will fail.
Definition at line 345 of file IOstream.H.
Referenced by IOstream::operator void *(), IOstream::operator!(), and IOstream::print().
|
inline |
Return true if stream is corrupted.
Definition at line 351 of file IOstream.H.
Referenced by IOstream::check(), IOstream::fatalCheck(), Istream::getBack(), Foam::operator<<(), IOstream::print(), Istream::putBack(), GTSsurfaceFormat< Face >::read(), ISstream::read(), primitiveEntry::read(), dictionary::read(), featureEdgeMesh::readData(), baseIOdictionary::readData(), extendedFeatureEdgeMesh::readData(), and refinementHistory::readData().
|
inline |
Return non-zero if the stream has not failed.
Definition at line 357 of file IOstream.H.
References IOstream::fail().
|
inline |
Return true if the stream has failed.
Definition at line 365 of file IOstream.H.
References IOstream::fail(), and IOstream::formatEnum().
|
static |
Return stream format of given format name.
Definition at line 39 of file IOstream.C.
References IOstream::ASCII, IOstream::BINARY, Foam::endl(), and WarningInFunction.
Referenced by ensightSurfaceWriter::ensightSurfaceWriter(), IOstream::format(), IOstream::operator!(), Time::readDict(), and decomposedBlockData::writeData().
|
inline |
Return current stream format.
Definition at line 377 of file IOstream.H.
Referenced by CollidingParcel< ParcelType >::CollidingParcel(), DSMCParcel< ParcelType >::DSMCParcel(), calcEntry::execute(), codeStream::execute(), fanFvPatchField< Type >::fanFvPatchField(), findCellParticle::findCellParticle(), FixedList< Type, 3 >::FixedList(), KinematicParcel< ParcelType >::KinematicParcel(), List< Field< scalar > >::List(), Matrix< RectangularMatrix< Type >, Type >::Matrix(), molecule::molecule(), MPPICParcel< ParcelType >::MPPICParcel(), ensightFile::newline(), decomposedBlockData::numBlocks(), Foam::operator<<(), Foam::operator>>(), particle< Type >::particle(), ReactingParcel< ParcelType >::ReactingParcel(), UIPstream::read(), ISstream::read(), PackedList< 2 >::read(), decomposedBlockData::readBlock(), IOobject::readHeader(), Foam::setformat(), solidParticle::solidParticle(), SprayParcel< ParcelType >::SprayParcel(), ThermoParcel< ParcelType >::ThermoParcel(), trackedParticle::trackedParticle(), csvTableReader< Type >::write(), ensightFile::write(), OSstream::write(), UOPstream::write(), dimensionSet::write(), PackedList< 2 >::write(), ensightFile::writeBinaryHeader(), decomposedBlockData::writeData(), CSV< Type >::writeData(), FixedList< Type, 3 >::writeEntry(), UList< Foam::wordRe >::writeEntry(), IOobject::writeHeader(), and particle< Type >::writePosition().
|
inline |
Set the stream format.
Definition at line 383 of file IOstream.H.
|
inline |
Set the stream format from word.
Definition at line 391 of file IOstream.H.
References IOstream::formatEnum().
|
inline |
Return the stream version.
Definition at line 399 of file IOstream.H.
Referenced by Field< Foam::Vector2D >::Field(), decomposedBlockData::numBlocks(), Foam::operator>>(), IOobject::readHeader(), mappedPatchBase::readListOrField(), Foam::setversion(), decomposedBlockData::writeData(), IOobject::writeHeader(), and threadedCollatedOFstream::~threadedCollatedOFstream().
|
inline |
Set the stream version.
Definition at line 405 of file IOstream.H.
References IOstream::compressionEnum().
|
static |
Return compression of given compression name.
Definition at line 61 of file IOstream.C.
References IOstream::COMPRESSED, Foam::endl(), IOstream::UNCOMPRESSED, Switch::valid(), and WarningInFunction.
Referenced by IOstream::compression(), rawSurfaceWriter::rawSurfaceWriter(), Time::readDict(), and IOstream::version().
|
inline |
Return the stream compression.
Definition at line 416 of file IOstream.H.
Referenced by Foam::setcompression().
|
inline |
Set the stream compression.
Definition at line 422 of file IOstream.H.
|
inline |
Set the stream compression from word.
Definition at line 430 of file IOstream.H.
References IOstream::compressionEnum().
|
inline |
Return current stream line number.
Definition at line 438 of file IOstream.H.
References IOstream::lineNumber_.
Referenced by calcEntry::execute(), functionEntry::execute(), codeStream::execute(), Foam::parseNASCoord(), ITstream::print(), IOstream::print(), NASedgeFormat::read(), NASsurfaceFormat< Face >::read(), ISstream::read(), UIPstream::read(), ITstream::read(), primitiveEntry::read(), IOobject::readHeader(), IOerror::SafeFatalIOError(), and vtkUnstructuredReader::vtkUnstructuredReader().
|
inline |
Return current stream line number.
Definition at line 444 of file IOstream.H.
References IOstream::lineNumber_.
Set the stream line number.
Definition at line 450 of file IOstream.H.
References IOstream::flags(), IOstream::lineNumber_, and Foam::ln().
|
pure virtual |
Return flags of stream.
Implemented in ITstream, dummyIstream, dummyISstream, UIPstream, ISstream, UOPstream, and OSstream.
Referenced by IOstream::lineNumber(), IOstream::setBad(), IOstream::setf(), and IOstream::unsetf().
|
inlinestatic |
Return the default precision.
Definition at line 461 of file IOstream.H.
References IOstream::precision_.
Referenced by writeFile::charWidth(), isNotEqOp< T >::operator()(), probes::prepare(), Time::readDict(), and writeFile::valueWidth().
|
inlinestatic |
Reset the default precision (and return old precision)
Definition at line 467 of file IOstream.H.
References p, and IOstream::precision_.
|
inline |
Set stream to have reached eof.
Definition at line 475 of file IOstream.H.
Referenced by ITstream::read().
|
inline |
Set stream to have failed.
Definition at line 481 of file IOstream.H.
|
inline |
Set stream to be bad.
Definition at line 487 of file IOstream.H.
References f(), and IOstream::flags().
Referenced by IFstream::IFstream(), IOstream::IOstream(), OFstream::OFstream(), Foam::operator>>(), ISstream::putback(), UIPstream::read(), ITstream::read(), Istream::readBegin(), Istream::readBeginList(), Istream::readEnd(), Istream::readEndList(), and UOPstream::write().
|
pure virtual |
Set flags of stream.
Implemented in UOPstream, ITstream, ISstream, UIPstream, OSstream, dummyIstream, and dummyISstream.
|
inline |
Set flags of stream.
Definition at line 496 of file IOstream.H.
References IOstream::flags().
Referenced by Foam::dec(), ensightAsciiStream::ensightAsciiStream(), ensightFile::ensightFile(), Foam::fixed(), Foam::hex(), writeFile::initStream(), NamedEnum< directionType, 3 >::names(), Foam::oct(), Foam::scientific(), Foam::setf(), ensightSetWriter< Type >::write(), and STARCDCore::writePoints().
|
inline |
Set flags of given field of stream.
Definition at line 503 of file IOstream.H.
References IOstream::flags().
|
inline |
Unset flags of stream.
Definition at line 512 of file IOstream.H.
References IOstream::flags(), IOstream::info(), IOstream::versionNumber::operator<<, IOstream::print(), and sf().
Referenced by NamedEnum< directionType, 3 >::names().
|
virtual |
Print description of IOstream to Ostream.
Reimplemented in UOPstream, ITstream, ISstream, OSstream, UIPstream, prefixOSstream, OFstream, IFstream, IStringStream, and OStringStream.
Definition at line 126 of file IOstream.C.
References IOstream::ASCII, IOstream::bad(), IOstream::BINARY, IOstream::closed(), Foam::endl(), IOstream::eof(), IOstream::fail(), IOstream::good(), IOstream::lineNumber(), and IOstream::opened().
Referenced by Foam::operator<<(), OSstream::print(), ISstream::print(), ITstream::print(), and IOstream::unsetf().
void print | ( | Ostream & | os, |
const int | streamState | ||
) | const |
Check given stream state bits.
Definition at line 177 of file IOstream.C.
References Foam::endl().
Return info proxy.
Used to print IOstream information to a stream
Definition at line 531 of file IOstream.H.
Referenced by IFstream::IFstream(), OFstream::OFstream(), dimensionSet::read(), IOstream::unsetf(), and IOobject::writeHeader().
|
friend |
Ostream operator.
|
static |
Original version number.
Definition at line 203 of file IOstream.H.
Referenced by Foam::operator>>().
|
static |
Current version number.
Definition at line 206 of file IOstream.H.
Referenced by regionModel::evolve(), masterUncollatedFileOperation::readDirOp::operator()(), decomposedBlockData::readBlock(), meshReader::warnDuplicates(), rawSurfaceWriter::write(), regIOobject::write(), rawSurfaceWriter::writeData(), meshReader::writeMesh(), and Time::writeTimeDict().
|
static |
Default precision.
Definition at line 209 of file IOstream.H.
Referenced by IOstream::defaultPrecision().
|
protected |
Definition at line 231 of file IOstream.H.
Referenced by ISstream::get(), ISstream::getLine(), IFstream::IFstream(), IOstream::lineNumber(), OFstream::OFstream(), ISstream::putback(), ITstream::read(), ITstream::rewind(), OSstream::write(), and OSstream::writeQuoted().