40 int old(writeOptionalEntries);
41 writeOptionalEntries = level;
96 return csearch(keyword, matchOpt).ptr();
106 return const_cast<entry*
>(csearch(keyword, matchOpt).ptr());
116 return static_cast<bool>(
findEntry(keyword, matchOpt));
126 return csearchScoped(keyword, matchOpt).ptr();
136 return csearch(keyword, matchOpt).dictPtr();
146 return const_cast<dictionary*
>(csearch(keyword, matchOpt).dictPtr());
156 return csearch(keyword, matchOpt).streamPtr();
word dictName() const
The local dictionary name (final part of scoped name)
static int reportOptional() noexcept
Return the state of reporting optional (default) entries.
A class for handling file names.
A list of keyword definitions, which are a keyword followed by a number of values (eg...
ITstream * findStream(const word &keyword, enum keyType::option matchOpt=keyType::REGEX) const
Find and return an entry stream if present (and it is a stream) otherwise return nullptr.
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.
bool found(const word &keyword, enum keyType::option matchOpt=keyType::REGEX) const
Find an entry (const access) with the given keyword.
const dictionary & parent() const noexcept
Return the parent dictionary.
A class for handling words, derived from Foam::string.
static const dictionary null
An empty dictionary, which is also the parent for all dictionaries.
static int writeOptionalEntries
Report optional keywords and values if not present in dictionary.
option
Enumeration for the data type and search/match modes (bitmask)
const entry * findEntry(const word &keyword, enum keyType::option matchOpt=keyType::REGEX) const
Find an entry (const access) with the given keyword.
bool isNullDict() const noexcept
The dictionary is actually dictionary::null (root dictionary)
An input stream of tokens.
A keyword and a list of tokens is an 'entry'.
const dictionary * findDict(const word &keyword, enum keyType::option matchOpt=keyType::REGEX) const
Find and return a sub-dictionary pointer if present (and it is a dictionary) otherwise return nullptr...