The IOstreamOption is a simple container for options an IOstream can normally have. For example, ascii/binary, uncompressed/compressed, ... More...
Classes | |
class | versionNumber |
Representation of a major/minor version number. More... | |
Public Types | |
enum | streamFormat : char { ASCII, BINARY } |
Data format (ascii | binary) More... | |
enum | compressionType : char { UNCOMPRESSED = 0, COMPRESSED } |
Compression treatment (UNCOMPRESSED | COMPRESSED) More... | |
Public Member Functions | |
IOstreamOption () noexcept | |
Construct null. (default: ASCII, uncompressed, currentVersion) More... | |
IOstreamOption (streamFormat format) noexcept | |
Construct with format. (default: uncompressed, currentVersion) More... | |
IOstreamOption (streamFormat format, compressionType compression, versionNumber version=currentVersion) noexcept | |
Construct with format and compression, optionally with version. More... | |
IOstreamOption (streamFormat format, versionNumber version, compressionType compression) noexcept | |
Construct with format, version, compression. More... | |
streamFormat | format () const noexcept |
Get the current stream format. More... | |
streamFormat | format (const streamFormat format) 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 &compressionName) |
Set the stream compression, from string value. More... | |
versionNumber | version () const noexcept |
Get the stream version. More... | |
versionNumber | version (const versionNumber verNum) noexcept |
Set the stream version. More... | |
Static Public Member Functions | |
static streamFormat | formatEnum (const word &formatName) |
The stream format enum corresponding to the string. More... | |
static compressionType | compressionEnum (const word &compName) |
The compression enum corresponding to the string. More... | |
Static Public Attributes | |
static const Enum< streamFormat > | formatNames |
Stream format names (ascii, binary) More... | |
static const versionNumber | originalVersion |
The original version number. More... | |
static const versionNumber | currentVersion |
The current version number. More... | |
The IOstreamOption is a simple container for options an IOstream can normally have. For example, ascii/binary, uncompressed/compressed, ...
Definition at line 57 of file IOstreamOption.H.
enum streamFormat : char |
Data format (ascii | binary)
Enumerator | |
---|---|
ASCII | "ascii" |
BINARY | "binary" |
Definition at line 64 of file IOstreamOption.H.
enum compressionType : char |
Compression treatment (UNCOMPRESSED | COMPRESSED)
Enumerator | |
---|---|
UNCOMPRESSED | compression = false |
COMPRESSED | compression = true |
Definition at line 71 of file IOstreamOption.H.
|
inlinenoexcept |
Construct null. (default: ASCII, uncompressed, currentVersion)
Definition at line 217 of file IOstreamOption.H.
|
inlineexplicitnoexcept |
Construct with format. (default: uncompressed, currentVersion)
Definition at line 225 of file IOstreamOption.H.
|
inlinenoexcept |
Construct with format and compression, optionally with version.
Definition at line 234 of file IOstreamOption.H.
|
inlinenoexcept |
Construct with format, version, compression.
Definition at line 247 of file IOstreamOption.H.
|
static |
The stream format enum corresponding to the string.
Expected "ascii", "binary"
Definition at line 56 of file IOstreamOption.C.
References Foam::endl(), IOstreamOption::formatNames, Enum< EnumType >::found(), and WarningInFunction.
Referenced by vtkCloud::read(), vtkWrite::read(), and decomposedBlockData::writeData().
|
static |
The compression enum corresponding to the string.
Expected "true", "false", "on", "off", etc.
Definition at line 73 of file IOstreamOption.C.
References Foam::endl(), Switch::valid(), and WarningInFunction.
|
inlinenoexcept |
Get the current stream format.
Definition at line 273 of file IOstreamOption.H.
Referenced by collatedFileOperation::appendObject(), CollidingParcel< ParcelType >::CollidingParcel(), CSV< Type >::CSV(), DSMCParcel< ParcelType >::DSMCParcel(), codeStream::evaluate(), findCellParticle::findCellParticle(), FIRECore::getFireLabel(), FIRECore::getFirePoint(), FIRECore::getFireString(), injectedParticle::injectedParticle(), KinematicParcel< ParcelType >::KinematicParcel(), molecule::molecule(), MPPICParcel< ParcelType >::MPPICParcel(), decomposedBlockData::numBlocks(), Foam::operator<<(), Foam::operator>>(), particle< Type >::particle(), Foam::BitOps::print(), Foam::processFlags(), FIRECore::putFireLabel(), FIRECore::putFireLabels(), FIRECore::putFirePoint(), FIRECore::putFireString(), ReactingParcel< ParcelType >::ReactingParcel(), ensightReadFile::read(), PackedList< 2 >::read(), exprResultGlobals::readData(), Time::readDict(), IOobject::readHeader(), Matrix< RectangularMatrix< Type >, Type >::readMatrix(), Foam::setformat(), solidParticle::solidParticle(), SprayParcel< ParcelType >::SprayParcel(), ThermoParcel< ParcelType >::ThermoParcel(), trackedParticle::trackedParticle(), wallBoundedParticle::wallBoundedParticle(), csvTableReader< Type >::write(), dimensionSet::write(), Foam::ensightOutput::writeCloudPositions(), particle< Type >::writeCoordinates(), decomposedBlockData::writeData(), CSV< Type >::writeData(), exprResultGlobals::writeData(), exprResult::writeDict(), UList< Foam::wordRe >::writeEntry(), Time::writeFormat(), IOobject::writeHeader(), IndirectListBase< T, sliceRange >::writeList(), FixedList< Type, 3 >::writeList(), PackedList< 2 >::writeList(), UList< Foam::wordRe >::writeList(), bitSet::writeList(), Matrix< RectangularMatrix< Type >, Type >::writeMatrix(), injectedParticle::writePosition(), particle< Type >::writePosition(), and exprResult::writeValue().
|
inlinenoexcept |
|
inline |
Set the stream format, from string value.
Definition at line 289 of file IOstreamOption.H.
|
inlinenoexcept |
Get the stream compression.
Definition at line 297 of file IOstreamOption.H.
Referenced by Time::readDict(), and Time::writeCompression().
|
inlinenoexcept |
Set the stream compression.
Definition at line 304 of file IOstreamOption.H.
|
inline |
Set the stream compression, from string value.
Definition at line 313 of file IOstreamOption.H.
|
inlinenoexcept |
Get the stream version.
Definition at line 321 of file IOstreamOption.H.
Referenced by collatedFileOperation::appendObject(), Field< Foam::Vector2D >::Field(), decomposedBlockData::numBlocks(), Foam::operator>>(), Time::readDict(), IOobject::readHeader(), mappedPatchBase::readListOrField(), Foam::setversion(), decomposedBlockData::writeData(), IOobject::writeHeader(), Time::writeVersion(), and threadedCollatedOFstream::~threadedCollatedOFstream().
|
inlinenoexcept |
|
static |
Stream format names (ascii, binary)
Definition at line 187 of file IOstreamOption.H.
Referenced by IOstreamOption::formatEnum(), Foam::operator<<(), exprResult::writeDict(), and exprResult::writeValue().
|
static |
The original version number.
Definition at line 190 of file IOstreamOption.H.
Referenced by Foam::operator>>().
|
static |
The current version number.
Definition at line 193 of file IOstreamOption.H.
Referenced by regionModel::evolve(), functionObjectList::execute(), masterUncollatedFileOperation::NewIFstream(), lineSearch::operator++(), ITstream::parse(), decomposedBlockData::readBlock(), decomposedBlockData::readBlocks(), decomposedBlockData::readMasterHeader(), FIREMeshWriter::write(), rawWriter::write(), updateMethod::write(), regIOobject::write(), NURBS3DVolume::writeCpsInDict(), decomposedBlockData::writeData(), lumpedPointMovement::writeData(), meshReader::writeMesh(), reader::writeMesh(), and Time::writeTimeDict().