33 const word& entryName,
42 if (firstToken.isWord())
45 if (firstToken.wordToken() == entryName)
47 DataEntryType =
"CompatibilityConstant";
51 DataEntryType = firstToken.wordToken();
57 DataEntryType =
"CompatibilityConstant";
60 typename dictionaryConstructorTable::iterator cstrIter =
61 dictionaryConstructorTablePtr_->find(DataEntryType);
63 if (cstrIter == dictionaryConstructorTablePtr_->end())
65 FatalErrorIn(
"DataEntry<Type>::New(const word&, const dictionary&)")
66 <<
"Unknown DataEntry type " 67 << DataEntryType <<
" for DataEntry " 68 << entryName <<
nl <<
nl 69 <<
"Valid DataEntry types are:" <<
nl 70 << dictionaryConstructorTablePtr_->sortedToc() <<
nl
An Istream is an abstract base class for all input systems (streams, files, token lists etc)...
A class for handling words, derived from string.
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...
A token holds items read from Istream.
#define FatalErrorIn(functionName)
Report an error message using Foam::FatalError.
ITstream & lookup(const word &, bool recursive=false, bool patternMatch=true) const
Find and return an entry data stream.
static autoPtr< DataEntry< Type > > New(const word &entryName, const dictionary &dict)
Selector.
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...