40 typename fileExtensionConstructorTable::iterator cstrIter =
41 fileExtensionConstructorTablePtr_->find(ext);
43 if (cstrIter == fileExtensionConstructorTablePtr_->end())
47 if (supported.
found(ext))
57 supported += readTypes();
60 <<
"Unknown file extension " << ext <<
nl <<
nl 61 <<
"Valid types are :" <<
nl 79 return New(name, ext);
A HashTable with keys but without contents.
A class for handling file names.
autoPtr< CompressibleMomentumTransportModel > New(const volScalarField &rho, const volVectorField &U, const surfaceScalarField &phi, const viscosity &viscosity)
errorManipArg< error, int > exit(error &err, const int errNo=1)
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
A surface geometry mesh with zone information, not to be confused with the similarly named surfaceMes...
Ostream & endl(Ostream &os)
Add newline and flush stream.
word ext() const
Return file name extension (part after last .)
static autoPtr< MeshedSurface > New(const fileName &, const word &ext)
Select constructed from filename (explicit extension)
bool found(const Key &) const
Return true if hashedEntry is found in table.
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 .)
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
#define InfoInFunction
Report an information message using Foam::Info.