52 <<
"Cannot determine format from filename" <<
nl
57 return New(
name, ext, mandatory);
59 else if (fileType ==
"gz")
62 return New(
name.lessExt(),
name.stem().ext(), mandatory);
67 return New(
name.lessExt(), fileType, mandatory);
78 <<
"Construct UnsortedMeshedSurface (" << fileType <<
")\n";
80 auto* ctorPtr = fileExtensionConstructorTable(fileType);
91 if (delegate.
found(fileType))
102 <<
"Unknown surface format " << fileType <<
nl <<
nl
103 <<
"Valid types:" <<
nl
117 if (
name.has_ext(
"gz"))
Various functions to operate on Lists.
bool found(const Key &key) const
Same as contains().
static autoPtr< MeshedSurface > New(const fileName &name, const word &fileType, bool mandatory=true)
Read construct from filename with given file type.
static wordHashSet readTypes()
Known readable file-types, without friends or proxies.
static autoPtr< UnsortedMeshedSurface > New(const fileName &name, const word &fileType, bool mandatory=true)
Read construct from filename with given file type.
static wordHashSet readTypes()
Known readable file-types, without friends or proxies.
Pointer management similar to std::unique_ptr, with some additional methods and type checking.
A class for handling file names.
A class for handling words, derived from Foam::string.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
#define DebugInFunction
Report an information message using Foam::Info.
tmp< DimensionedField< TypeR, GeoMesh > > New(const tmp< DimensionedField< TypeR, GeoMesh > > &tf1, const word &name, const dimensionSet &dimensions, const bool initCopy=false)
Global function forwards to reuseTmpDimensionedField::New.
HashSet< word, Hash< word > > wordHashSet
A HashSet of words, uses string hasher.
FlatOutput::OutputAdaptor< Container, Delimiters > flatOutput(const Container &obj, Delimiters delim)
Global flatOutput() function with specified output delimiters.
error FatalError
Error stream (stdout output on all processes), with additional 'FOAM FATAL ERROR' header text and sta...
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for expressions::valueTypeCode::INVALID.
errorManipArg< error, int > exit(error &err, const int errNo=1)
constexpr char nl
The newline '\n' character (0x0a).