45 if constexpr (std::is_void_v<Type>)
47 return readAndCheckHeader
58 return readAndCheckHeader
70template<
class Type,
bool Searching>
82 return this->globalFilePath(Type::typeName,
search);
97 << Type::typeName <<
' ' <<
name()
98 <<
" constructed with READ_MODIFIED but "
99 << Type::typeName <<
" does not support automatic rereading."
Useful combination of include files which define Sin, Sout and Serr and the use of IO streams general...
readOption readOpt() const noexcept
Get the read option.
void warnNoRereading() const
Helper: warn that type does not support re-reading.
fileName typeFilePath(const bool search=true) const
Call localFilePath or globalFilePath for given type depending on its is_globalIOobject trait.
bool typeHeaderOk(const bool checkType=true, const bool search=true, const bool verbose=true)
Read header (respects is_globalIOobject trait) and check its info. A void type suppresses trait and t...
fileName globalFilePath(const word &typeName, const bool search=true) const
Redirect to fileHandler filePath, searching up if in parallel.
fileName localFilePath(const word &typeName, const bool search=true) const
Redirect to fileHandler filePath, searching locally.
A class for handling file names.
static const word null
An empty word.
#define WarningInFunction
Report a warning using Foam::Warning.
Ostream & endl(Ostream &os)
Add newline and flush stream.
fileName search(const word &file, const fileName &directory)
Recursively search the given directory for the file.
Trait for specifying global vs. local IOobject file types.