53 <<
"Cannot determine format from filename" <<
nl 58 return New(
name, ext, mandatory);
60 else if (fileType ==
"gz")
80 <<
"Construct MeshedSurface (" << fileType <<
")\n";
82 auto* ctorPtr = fileExtensionConstructorTable(fileType);
91 const wordHashSet delegate(FriendType::readTypes());
93 if (delegate.
found(fileType))
104 <<
"Unknown surface format " << fileType <<
nl <<
nl 105 <<
"Valid types:" <<
nl
A class for handling file names.
errorManipArg< error, int > exit(error &err, const int errNo=1)
error FatalError
Error stream (stdout output on all processes), with additional 'FOAM FATAL ERROR' header text and sta...
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
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.
constexpr char nl
The newline '\n' character (0x0a)
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.
Various functions to operate on Lists.
word ext() const
Return file name extension (part after last .)
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for expressions::valueTypeCode::INVALID.
bool has_ext() const
Various checks for extensions.
A class for handling words, derived from Foam::string.
#define DebugInFunction
Report an information message using Foam::Info.
word lessExt() const
Return word without extension (part before last .)
List< label > sortedToc(const UList< bool > &bools)
Return the (sorted) values corresponding to 'true' entries.
Pointer management similar to std::unique_ptr, with some additional methods and type checking...
FlatOutput::OutputAdaptor< Container, Delimiters > flatOutput(const Container &obj, Delimiters delim)
Global flatOutput() function with specified output delimiters.