Go to the documentation of this file.
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);
122 if (selectableNames.found(modeName))
124 entry::globalInputMode = selectableNames.get(modeName);
129 <<
"Unsupported inputMode '" << modeName
130 <<
"' ... defaulting to 'merge'"
133 entry::resetInputMode();
146 return entry::New(parentDict, is, entry::inputMode::PROTECT);
156 return entry::New(parentDict, is, entry::inputMode::MERGE);
166 return entry::New(parentDict, is, entry::inputMode::OVERWRITE);
176 return entry::New(parentDict, is, entry::inputMode::WARN);
186 return entry::New(parentDict, is, entry::inputMode::ERROR);
Enum is a wrapper around a list of names/values that represent particular enumeration (or int) values...
A class for handling words, derived from Foam::string.
Ostream & endl(Ostream &os)
Add newline and flush stream.
inputMode
The input mode options.
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
Macros for easy insertion into member function selection tables.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
addNamedToMemberFunctionSelectionTable(functionEntry, calcEntry, execute, dictionaryIstream, calc)
tmp< DimensionedField< TypeR, GeoMesh > > New(const tmp< DimensionedField< TypeR, GeoMesh >> &tdf1, const word &name, const dimensionSet &dimensions)
Global function forwards to reuseTmpDimensionedField::New.
#define WarningInFunction
Report a warning using Foam::Warning.