53 <<
"Cannot determine format from filename" <<
nl
58 return New(
name, ext, mandatory);
60 else if (fileType ==
"gz")
64 return New(unzipName, unzipName.
ext(), mandatory);
81 <<
"Construct MeshedSurface (" << fileType <<
")\n";
83 auto* ctorPtr = fileExtensionConstructorTable(fileType);
92 const wordHashSet delegate(FriendType::readTypes());
94 if (delegate.
found(fileType))
98 surf->transfer(*FriendType::New(
name, fileType));
105 <<
"Unknown surface format " << fileType <<
nl <<
nl
106 <<
"Valid types:" <<
nl
107 <<
flatOutput((delegate | readTypes()).sortedToc()) <<
nl
126 return New(unzipName, unzipName.
ext());
Various functions to operate on Lists.
bool found(const Key &key) const
Return true if hashed entry is found in table.
static autoPtr< Time > New()
Construct (dummy) Time - no functionObjects or libraries.
Pointer management similar to std::unique_ptr, with some additional methods and type checking.
A class for handling file names.
word ext() const
Return file name extension (part after last .)
A class for handling words, derived from Foam::string.
word ext() const
Return file name extension (part after last .)
word lessExt() const
Return word without extension (part before last .)
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
#define DebugInFunction
Report an information message using Foam::Info.
FlatOutput::OutputAdaptor< Container, Delimiters > flatOutput(const Container &obj, Delimiters delim)
Global flatOutput() function with specified output delimiters.
tmp< DimensionedField< TypeR, GeoMesh > > New(const tmp< DimensionedField< TypeR, GeoMesh > > &tdf1, const word &name, const dimensionSet &dimensions)
Global function forwards to reuseTmpDimensionedField::New.
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for INVALID.
errorManipArg< error, int > exit(error &err, const int errNo=1)
constexpr char nl
The newline '\n' character (0x0a)