64 const word& geometricType
69 geometricType_(geometricType)
96 geometricType_(ident.geometricType_)
104 if (!geometricType_.empty())
113 bool Foam::operator==
115 const surfZoneIdentifier& a,
116 const surfZoneIdentifier&
b 121 (a.index() ==
b.index())
123 && (a.geometricType() ==
b.geometricType())
128 bool Foam::operator!=
130 const surfZoneIdentifier& a,
131 const surfZoneIdentifier&
b 160 os.
writeQuoted(obj.geometricType(), obj.geometricType().empty());
static word validate(const std::string &s, const bool prefix=false)
Construct validated word (no invalid characters).
virtual const fileName & name() const
The name of the stream.
Identifies a surface patch/zone by name and index, with optional geometric type.
A list of keyword definitions, which are a keyword followed by a number of values (eg...
virtual bool check(const char *operation) const
Check IOstream status for given operation.
An Istream is an abstract base class for all input systems (streams, files, token lists etc)...
constexpr char nl
The newline '\n' character (0x0a)
A token holds an item read from Istream.
Ostream & writeEntry(const keyType &key, const T &value)
Write a keyword/value entry.
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for expressions::valueTypeCode::INVALID.
surfZoneIdentifier()
Default construct. Uses name="", index=0.
const dimensionedScalar b
Wien displacement law constant: default SI units: [m.K].
A class for handling words, derived from Foam::string.
Istream & operator>>(Istream &, directionInfo &)
virtual Ostream & writeQuoted(const char *str, std::streamsize len, const bool quoted=true) override
Write character/string content, with/without surrounding quotes.
void write(Ostream &os) const
Write (geometricType) dictionary entry (without surrounding braces)
An Ostream is an abstract base class for all output systems (streams, files, token lists...
bool readIfPresent(const word &keyword, T &val, enum keyType::option matchOpt=keyType::REGEX) const
Find an entry if present, and assign to T val. FatalIOError if it is found and the number of tokens i...
OBJstream os(runTime.globalPath()/outputName)
const word & name() const noexcept
Return const reference to name.
Ostream & operator<<(Ostream &, const boundaryPatch &p)
Write boundaryPatch as dictionary entries (without surrounding braces)