43 const word& entryName,
47 if (entryName.empty() || !dictPtr)
62 const word csName(finder.ref().stream());
68 <<
"--> FOAM IOWarning :" <<
nl
69 <<
" Ignoring '" << entryName <<
"' as a keyword."
70 " Perhaps you meant this instead?" <<
nl
72 <<
" type " << coordSystem::indirect::typeName_()
74 <<
" name " << csName <<
';' <<
nl
98 if (modelType.empty())
100 modelType = coordSystem::cartesian::typeName_();
104 auto* ctorPtr = registryConstructorTable(modelType);
111 auto* ctorPtr = dictionaryConstructorTable(modelType);
122 *dictionaryConstructorTablePtr_
136 if (modelType.empty())
138 modelType = coordSystem::cartesian::typeName_();
141 auto* ctorPtr = dictionaryConstructorTable(modelType);
150 *dictionaryConstructorTablePtr_
174 dictPtr =
subDictCompat(coordinateSystem::typeName_(), dictPtr);
180 coordSystem::cartesian::typeName_()
202 dictPtr =
subDictCompat(coordinateSystem::typeName_(), dictPtr);
208 coordSystem::cartesian::typeName_()
217 const word csName(is);
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.
Pointer management similar to std::unique_ptr, with some additional methods and type checking.
dict_pointer dictPtr() const noexcept
Pointer to the found entry as a dictionary, nullptr otherwise.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
const dictionary & subDict(const word &keyword, enum keyType::option matchOpt=keyType::REGEX) const
Find and return a sub-dictionary.
T getOrDefault(const word &keyword, const T &deflt, enum keyType::option matchOpt=keyType::REGEX) const
const_searcher csearch(const word &keyword, enum keyType::option matchOpt=keyType::REGEX) const
Search dictionary for given keyword.
static bool warnAboutAge(const int version) noexcept
Test if an age warning should be emitted.
Registry of regIOobjects.
splitCell * master() const
A class for handling words, derived from Foam::string.
#define FatalIOErrorInLookup(ios, lookupTag, lookupName, lookupTable)
Report an error message using Foam::FatalIOError.
const word dictName("faMeshDefinition")
static const dictionary * subDictCompat(const word &entryName, const dictionary *dictPtr)
errorManipArg< error, int > exit(error &err, const int errNo=1)
constexpr char nl
The newline '\n' character (0x0a)