64 const word& geometricType
69 geometricType_(geometricType)
99 if (!geometricType_.empty())
108 bool Foam::operator==
110 const geometricSurfacePatch& a,
111 const geometricSurfacePatch&
b 117 && (a.geometricType() ==
b.geometricType())
122 bool Foam::operator!=
124 const geometricSurfacePatch& a,
125 const geometricSurfacePatch&
b 154 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.
virtual Ostream & writeQuoted(const std::string &str, const bool quoted=true)
Write std::string surrounded by quotes.
geometricSurfacePatch()
Default construct. Uses name="patch", index=0, type="".
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for INVALID.
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 &)
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)
Identifies a surface patch/zone by name and index, with geometric type.
void write(Ostream &os) const
Write (geometricType) dictionary entry (without surrounding braces)