36 fileExtensionConstructorTable::iterator cstrIter =
37 fileExtensionConstructorTablePtr_->find(ext);
39 if (cstrIter == fileExtensionConstructorTablePtr_->end())
42 <<
"Unknown file extension " << ext
43 <<
" for file " << name <<
nl <<
nl 44 <<
"Valid extensions are :" <<
nl 45 << fileExtensionConstructorTablePtr_->sortedToc()
60 return New(name, ext);
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.
static autoPtr< edgeMesh > New(const fileName &, const word &ext)
Select constructed from filename (explicit extension)
word ext() const
Return file name extension (part after last .)
A class for handling words, derived from string.
word name(const complex &)
Return a string representation of a complex.
fileName lessExt() const
Return file name without extension (part before last .)