Go to the documentation of this file.
48 { streamFormat::ASCII,
"ascii" },
49 { streamFormat::BINARY,
"binary" },
65 <<
"Unknown format specifier '" << formatName
66 <<
"', using 'ascii'" <<
endl;
68 return streamFormat::ASCII;
77 const Switch sw(compName,
true);
83 ? compressionType::COMPRESSED
84 : compressionType::UNCOMPRESSED
89 <<
"Unknown compression specifier '" << compName
90 <<
"', assuming no compression" <<
endl;
92 return compressionType::UNCOMPRESSED;
117 os << vn.str().c_str();
A simple wrapper around bool so that it can be read as a word: true/false, on/off,...
Enum is a wrapper around a list of names/values that represent particular enumeration (or int) values...
A class for handling words, derived from Foam::string.
bool found(const word &enumName) const
Test if there is an enumeration corresponding to the given name.
bool valid() const noexcept
True if the Switch represents a valid enumeration.
static const versionNumber currentVersion
The current version number.
Ostream & endl(Ostream &os)
Add newline and flush stream.
Representation of a major/minor version number.
static compressionType compressionEnum(const word &compName)
The compression enum corresponding to the string.
static const versionNumber originalVersion
The original version number.
streamFormat
Data format (ascii | binary)
static streamFormat formatEnum(const word &formatName)
The stream format enum corresponding to the string.
compressionType
Compression treatment (UNCOMPRESSED | COMPRESSED)
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
#define WarningInFunction
Report a warning using Foam::Warning.
static const Enum< streamFormat > formatNames
Stream format names (ascii, binary)