61 const word& geometricType
79 dict.readIfPresent(
"geometricType", geometricType_);
100 surfZoneIdentifier&& ident,
104 surfZoneIdentifier(std::move(ident))
117 if (!geometricType_.empty())
119 os.writeEntry(
"geometricType", geometricType_);
134 (a.index() ==
b.index())
135 && (a.name() ==
b.name())
136 && (a.geometricType() ==
b.geometricType())
143 const surfZoneIdentifier& a,
144 const surfZoneIdentifier&
b
173 os.writeQuoted(obj.geometricType(), obj.geometricType().empty());
virtual const fileName & name() const
The name of the stream.
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
Identifies a surface patch/zone by name and index, with optional geometric type.
surfZoneIdentifier()
Default construct. Uses name="", index=0.
const word & geometricType() const noexcept
The (optional) geometric type of the patch/zone.
void write(Ostream &os) const
Write (geometricType) dictionary entry (without surrounding braces).
label index() const noexcept
The index of this patch/zone in the surface mesh.
const word & name() const noexcept
The patch/zone name.
surfZoneIdentifier(const surfZoneIdentifier &)=default
Copy construct.
A token holds an item read from Istream.
A class for handling words, derived from Foam::string.
static word validate(const std::string &s, const bool prefix=false)
Construct validated word (no invalid characters).
OBJstream os(runTime.globalPath()/outputName)
Ostream & operator<<(Ostream &, const boundaryPatch &p)
Write boundaryPatch as dictionary entries (without surrounding braces).
Istream & operator>>(Istream &, directionInfo &)
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for expressions::valueTypeCode::INVALID.
constexpr char nl
The newline '\n' character (0x0a).