36 namespace functionEntries
101 { entry::inputMode::MERGE,
"merge" },
102 { entry::inputMode::OVERWRITE,
"overwrite" },
103 { entry::inputMode::PROTECT,
"protect" },
104 { entry::inputMode::WARN,
"warn" },
105 { entry::inputMode::ERROR,
"error" },
107 { entry::inputMode::MERGE,
"default" },
119 const word modeName(is);
129 <<
"Unsupported inputMode '" << modeName
130 <<
"' ... defaulting to 'merge'"
EnumType get(const word &enumName) const
The enumeration corresponding to the given name.
A list of keyword definitions, which are a keyword followed by a number of values (eg...
An Istream is an abstract base class for all input systems (streams, files, token lists etc)...
Ostream & endl(Ostream &os)
Add newline and flush stream.
bool found(const word &enumName) const
Same as contains()
inputMode
The input mode options.
static void resetInputMode()
Reset the globalInputMode to merge.
A class for handling words, derived from Foam::string.
#define WarningInFunction
Report a warning using Foam::Warning.
Enum is a wrapper around a list of names/values that represent particular enumeration (or int) values...
static inputMode globalInputMode
The current global input-mode.
Merge sub-dictionaries when possible.
Keep last entry. Silently remove previous ones.
Macros for easy insertion into member function selection tables.
addNamedToMemberFunctionSelectionTable(functionEntry, calcEntry, execute, dictionaryIstream, calc)
static bool New(dictionary &parentDict, Istream &is, const inputMode inpMode=inputMode::GLOBAL, const int endChar=0)
Construct from an Istream and insert into the dictionary.
FatalError for duplicate entries.
Keep initial entry. Silently ignore subsequent ones.
Keep initial entry. Warn about subsequent ones.