Check if a file can be read by this reader.
- Parameters
-
| filepath | Path to the file. |
- Returns
- true if the file format is supported.
Implements MayaFlux::IO::FileReader.
Definition at line 30 of file RawTensorReader.cpp.
31{
32 std::error_code
error;
33 return std::filesystem::is_regular_file(
resolve_path(filepath), error);
34}
static std::string resolve_path(const std::string &filepath)
Resolve a filepath against the project source root if not found as-is.
void error(Component component, Context context, std::source_location location, std::string_view message)
Log an error message and optionally throw an exception.
References MayaFlux::IO::FileReader::resolve_path().