40 int old(writeOptionalEntries);
41 writeOptionalEntries = level;
62 word scopedName(name_.name());
64 const auto i = scopedName.rfind(
'.');
65 if (i == std::string::npos)
70 return scopedName.substr(i+1);
92 return csearch(keyword, matchOpt).good();
102 return search(keyword, matchOpt).ptr();
112 return csearch(keyword, matchOpt).
ptr();
122 return csearchScoped(keyword, matchOpt).
ptr();
132 return search(keyword, matchOpt).dictPtr();
142 return csearch(keyword, matchOpt).dictPtr();
152 return csearch(keyword, matchOpt).isDict();
bool isDict() const noexcept
True if found entry is a dictionary.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
bool isNullDict() const noexcept
The dictionary is actually dictionary::null (root dictionary)
dictionary * findDict(const word &keyword, enum keyType::option matchOpt=keyType::REGEX)
Find and return a sub-dictionary pointer if present.
static int reportOptional() noexcept
Return the state of reporting optional (default) entries.
const fileName & name() const noexcept
The dictionary name.
const entry * findScoped(const word &keyword, enum keyType::option matchOpt=keyType::REGEX) const
Search for a scoped entry (const access) with the given keyword.
static int writeOptionalEntries
Report optional keywords and values if not present in dictionary.
entry * findEntry(const word &keyword, enum keyType::option matchOpt=keyType::REGEX)
Find for an entry (non-const access) with the given keyword.
const dictionary & parent() const noexcept
Return the parent dictionary.
word dictName() const
The local dictionary name (final part of scoped name)
A keyword and a list of tokens is an 'entry'.
A class for handling file names.
option
Enumeration for the data type and search/match modes (bitmask)
A class for handling words, derived from Foam::string.
fileName search(const word &file, const fileName &directory)
Recursively search the given directory for the file.
static constexpr T * ptr(typename LListBase::link *node)
Dereference LListBase::link to obtain address of stored object.