35 const bool haveModelDict =
dict.isDict(typeName);
41 modelDictPtr = &
dict.subDict(typeName);
42 modelType = modelDictPtr->
lookup<
word>(
"type");
46 modelType =
dict.lookup<
word>(typeName);
47 modelDictPtr = &
dict.optionalSubDict(modelType +
"Coeffs");
51 Info<<
"Selecting " << typeName <<
" " << modelType <<
endl;
53 dictionaryConstructorTable::iterator cstrIter =
54 dictionaryConstructorTablePtr_->find(modelType);
56 if (cstrIter == dictionaryConstructorTablePtr_->end())
59 <<
"Unknown " << typeName <<
" type "
60 << modelType <<
nl <<
nl
61 <<
"Valid " << typeName <<
" types are :" <<
nl
62 << dictionaryConstructorTablePtr_->sortedToc() <<
nl
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
A list of keywords followed by any number of values (e.g. words and numbers) or sub-dictionaries.
ITstream & lookup(const word &, bool recursive=false, bool patternMatch=true) const
Find and return an entry data stream.
static autoPtr< extrudeModel > New(const dictionary &)
Select null constructed.
A class for handling words, derived from string.
#define FatalIOErrorInFunction(ios)
Report an error message using Foam::FatalIOError.
errorManipArg< error, int > exit(error &err, const int errNo=1)
Ostream & endl(Ostream &os)
Add newline and flush stream.