Go to the documentation of this file.
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();
A keyword and a list of tokens is an 'entry'.
dictionary * findDict(const word &keyword, enum keyType::option matchOpt=keyType::REGEX)
Find and return a sub-dictionary pointer if present.
A class for handling words, derived from Foam::string.
A class for handling file names.
bool found(const word &keyword, enum keyType::option matchOpt=keyType::REGEX) const
Search for an entry (const access) with the given keyword.
const fileName & name() const noexcept
The dictionary name.
static const dictionary null
An empty dictionary, which is also the parent for all dictionaries.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
static int writeOptionalEntries
Report optional keywords and values if not present in dictionary.
bool isDict(const word &keyword, enum keyType::option matchOpt=keyType::REGEX) const
Check if entry is found and is a sub-dictionary.
const dictionary & parent() const noexcept
Return the parent dictionary.
static int reportOptional() noexcept
Return the state of reporting optional (default) entries.
const entry * findScoped(const word &keyword, enum keyType::option matchOpt=keyType::REGEX) const
Search for a scoped entry (const access) with the given keyword.
entry * findEntry(const word &keyword, enum keyType::option matchOpt=keyType::REGEX)
Find for an entry (non-const access) with the given keyword.
fileName search(const word &file, const fileName &directory)
Recursively search the given directory for the file.
option
Enumeration for the data type and search/match modes (bitmask)
bool isNullDict() const noexcept
The dictionary is actually dictionary::null (root dictionary)
word dictName() const
The local dictionary name (final part of scoped name)