56 const word& physicalType,
62 physicalType_(physicalType),
76 dict.readIfPresent(
"physicalType", physicalType_);
77 dict.readIfPresent(
"inGroups", inGroups_);
89 physicalType_(ident.physicalType_),
90 inGroups_(ident.inGroups_)
98 if (!physicalType_.empty())
100 os.writeEntry(
"physicalType", physicalType_);
103 if (!inGroups_.
empty())
105 os.writeKeyword(
"inGroups");
void write(Ostream &os) const
Write (physicalType, inGroups) dictionary entries (without surrounding braces)
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.
Identifies a patch by name and index, with optional physical type and group information.
constexpr char nl
The newline '\n' character (0x0a)
bool empty() const noexcept
True if the UList is empty (ie, size() is zero)
patchIdentifier()
Default construct. Uses name="", index=0.
Ostream & writeList(Ostream &os, const label shortLen=0) const
Write List, with line-breaks in ASCII when length exceeds shortLen.
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for INVALID.
A class for handling words, derived from Foam::string.
virtual bool write(const token &tok)=0
Write token to stream or otherwise handle it.
An Ostream is an abstract base class for all output systems (streams, files, token lists...
OBJstream os(runTime.globalPath()/outputName)
Ostream & operator<<(Ostream &, const boundaryPatch &p)
Write boundaryPatch as dictionary entries (without surrounding braces)