39 if (
dict.found(
"format"))
41 const word readerType(
dict.lookup(
"format"));
43 typename dictionaryConstructorTable::iterator cstrIter =
44 dictionaryConstructorTablePtr_->find(readerType);
46 if (cstrIter == dictionaryConstructorTablePtr_->end())
49 <<
"Unknown reader type " << readerType
51 <<
"Valid reader types : " <<
nl
52 << dictionaryConstructorTablePtr_->sortedToc()
60 if (
dict.found(
"file"))
static autoPtr< TableReader< Type > > New(const word &name, const Function1s::unitConversions &units, const dictionary &dict)
Reads an interpolation table from the values entry in OpenFOAM-format.
Reads an interpolation table from a file in OpenFOAM-format. This is a list of Tuple2's where the fir...
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
A list of keyword definitions, which are a keyword followed by any number of values (e....
A class for handling words, derived from string.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
errorManipArg< error, int > exit(error &err, const int errNo=1)
word name(const bool)
Return a word representation of a bool.
const HashTable< unitConversion > & units()
Get the table of unit conversions.