41 const word Function1Type(coeffsDict.lookup(
"type"));
43 typename dictionaryConstructorTable::iterator cstrIter =
44 dictionaryConstructorTablePtr_->find(Function1Type);
46 if (cstrIter == dictionaryConstructorTablePtr_->end())
49 <<
"Unknown Function1 type " 50 << Function1Type <<
" for Function1 " 52 <<
"Valid Function1 types are:" <<
nl 53 << dictionaryConstructorTablePtr_->sortedToc() <<
nl 57 return cstrIter()(
name, coeffsDict);
66 if (!firstToken.isWord())
68 is.putBack(firstToken);
76 Function1Type = firstToken.wordToken();
79 typename dictionaryConstructorTable::iterator cstrIter =
80 dictionaryConstructorTablePtr_->find(Function1Type);
82 if (cstrIter == dictionaryConstructorTablePtr_->end())
85 <<
"Unknown Function1 type " 86 << Function1Type <<
" for Function1 " 88 <<
"Valid Function1 types are:" <<
nl 89 << dictionaryConstructorTablePtr_->sortedToc() <<
nl 98 dict.
found(name +
"Coeffs")
104 if (dict.
found(name +
"Coeffs"))
107 <<
"Using deprecated " 108 << (name +
"Coeffs") <<
" sub-dictionary."<<
nl 109 <<
" Please use the simpler form" <<
endl;
110 funcPtr->write(
Info);
bool found(const word &, bool recursive=false, bool patternMatch=true) const
Search dictionary for given keyword.
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.
Ostream & endl(Ostream &os)
Add newline and flush stream.
bool isDict(const word &) const
Check if entry is a sub-dictionary.
const dictionary & subDict(const word &) const
Find and return a sub-dictionary.
A class for handling words, derived from string.
word name(const complex &)
Return a string representation of a complex.
Templated function that returns a constant value.
#define IOWarningInFunction(ios)
Report an IO warning using Foam::Warning.
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 &name, const dictionary &dict)
Selector.
ITstream & lookup(const word &, bool recursive=false, bool patternMatch=true) const
Find and return an entry data stream.