Go to the documentation of this file.
52 <<
"Cannot determine format from filename" <<
nl
57 return New(
name, ext, mandatory);
59 else if (fileType ==
"gz")
63 return New(unzipName, unzipName.ext(), mandatory);
79 <<
"Construct UnsortedMeshedSurface (" << fileType <<
")\n";
81 auto* ctorPtr = fileExtensionConstructorTable(fileType);
90 const wordHashSet delegate(MeshReference::readTypes());
92 if (delegate.found(fileType))
103 <<
"Unknown surface format " << fileType <<
nl <<
nl
104 <<
"Valid types:" <<
nl
105 <<
flatOutput((delegate | readTypes()).sortedToc()) <<
nl
124 return New(unzipName, unzipName.ext());
word lessExt() const
Return word without extension (part before last .)
A class for handling words, derived from Foam::string.
A class for handling file names.
word ext() const
Return file name extension (part after last .)
#define DebugInFunction
Report an information message using Foam::Info.
static autoPtr< UnsortedMeshedSurface > New(const fileName &name, const word &fileType, bool mandatory=true)
Read construct from filename with given file type.
FlatOutput::OutputAdaptor< Container, Delimiters > flatOutput(const Container &obj, Delimiters delim)
Global flatOutput() function with specified output delimiters.
errorManipArg< error, int > exit(error &err, const int errNo=1)
tmp< DimensionedField< TypeR, GeoMesh > > New(const tmp< DimensionedField< TypeR, GeoMesh >> &tdf1, const word &name, const dimensionSet &dimensions)
Global function forwards to reuseTmpDimensionedField::New.
Pointer management similar to std::unique_ptr, with some additional methods and type checking.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for INVALID.
Various functions to operate on Lists.