45 fileExtensionConstructorTable::iterator cstrIter =
46 fileExtensionConstructorTablePtr_->find(ext);
48 if (cstrIter == fileExtensionConstructorTablePtr_->end())
51 <<
"Unknown file extension " << ext
52 <<
" for file " << name <<
nl <<
nl 53 <<
"Valid extensions are :" <<
nl 54 << fileExtensionConstructorTablePtr_->sortedToc()
72 return New(name, ext);
static autoPtr< extendedEdgeMesh > New(const fileName &, const word &ext)
Select constructed from filename (explicit extension)
A class for handling file names.
errorManipArg< error, int > exit(error &err, const int errNo=1)
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
word ext() const
Return file name extension (part after last .)
tmp< DimensionedField< TypeR, GeoMesh > > New(const tmp< DimensionedField< TypeR, GeoMesh >> &tdf1, const word &name, const dimensionSet &dimensions)
A class for handling words, derived from string.
defineRunTimeSelectionTable(reactionRateFlameArea, dictionary)
word name(const complex &)
Return a string representation of a complex.
fileName lessExt() const
Return file name without extension (part before last .)
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...