36namespace 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'"
Macros for easy insertion into member function selection tables.
#define addNamedToMemberFunctionSelectionTable(baseType, thisType, funcName, argNames, lookupName)
Add to hash-table of functions with 'lookupName' as the key.
Enum is a wrapper around a list of names/values that represent particular enumeration (or int) values...
bool found(const word &enumName) const
True if there is an enumeration corresponding to the given name.
EnumType get(const word &enumName) const
The enumeration corresponding to the given name.
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
static autoPtr< Time > New()
Construct (dummy) Time - no functionObjects or libraries.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
static void resetInputMode()
Reset the globalInputMode to merge.
static inputMode globalInputMode
The current global input-mode.
inputMode
The input mode options.
@ OVERWRITE
Keep last entry. Silently remove previous ones.
@ PROTECT
Keep initial entry. Silently ignore subsequent ones.
@ WARN
Keep initial entry. Warn about subsequent ones.
@ MERGE
Merge sub-dictionaries when possible.
@ ERROR
FatalError for duplicate entries.
Class to handle errors and exceptions in a simple, consistent stream-based manner.
A functionEntry causes entries to be added/manipulated on the specified dictionary given an input str...
virtual bool execute()
Calculate the output fields.
A class for handling words, derived from Foam::string.
#define WarningInFunction
Report a warning using Foam::Warning.
Ostream & endl(Ostream &os)
Add newline and flush stream.