36 fileExtensionConstructorTable::iterator cstrIter =
37 fileExtensionConstructorTablePtr_->find(ext);
39 if (cstrIter == fileExtensionConstructorTablePtr_->end())
42 <<
"Unknown file extension " << ext
44 <<
"Valid extensions are :" <<
nl
45 << fileExtensionConstructorTablePtr_->sortedToc()
58 ext =
name.lessExt().ext();
static autoPtr< edgeMesh > New(const fileName &, const word &ext)
Select constructed from filename (explicit extension)
A class for handling file names.
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.
tmp< DimensionedField< TypeR, GeoMesh > > New(const tmp< DimensionedField< TypeR, GeoMesh >> &tdf1, const word &name, const dimensionSet &dimensions)