63 const word& geometricType
81 dict.readIfPresent(
"geometricType", geometricType_);
98 if (!geometricType_.empty())
100 os.writeEntry(
"geometricType", geometricType_);
115 (a.name() ==
b.name())
116 && (a.geometricType() ==
b.geometricType())
123 const geometricSurfacePatch& a,
124 const geometricSurfacePatch&
b
153 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 geometric type.
geometricSurfacePatch()
Default construct. Uses name="patch", index=0, type="".
const word & geometricType() const noexcept
The 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.
geometricSurfacePatch(const geometricSurfacePatch &)=default
Copy construct.
Identifies a surface patch/zone by name and index, with optional geometric type.
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).