33 const word& entryName,
42 if (!firstToken.isWord())
44 is.putBack(firstToken);
52 Function1Type = firstToken.wordToken();
55 typename dictionaryConstructorTable::iterator cstrIter =
56 dictionaryConstructorTablePtr_->find(Function1Type);
58 if (cstrIter == dictionaryConstructorTablePtr_->end())
61 <<
"Unknown Function1 type " 62 << Function1Type <<
" for Function1 " 63 << entryName <<
nl <<
nl 64 <<
"Valid Function1 types are:" <<
nl 65 << dictionaryConstructorTablePtr_->sortedToc() <<
nl 69 return cstrIter()(entryName,
dict);
errorManipArg< error, int > exit(error &err, const int errNo=1)
A list of keyword definitions, which are a keyword followed by any number of values (e...
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
An Istream is an abstract base class for all input systems (streams, files, token lists etc)...
A token holds items read from Istream.
A class for handling words, derived from string.
Templated basic entry that holds a constant value.
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
static autoPtr< Function1< Type > > New(const word &entryName, const dictionary &dict)
Selector.
ITstream & lookup(const word &, bool recursive=false, bool patternMatch=true) const
Find and return an entry data stream.