MayaFlux 1.0.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches

◆ can_read()

bool MayaFlux::IO::RawTensorReader::can_read ( const std::string & filepath) const
nodiscardoverridevirtual

Check if a file can be read by this reader.

Parameters
filepathPath 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().

Here is the call graph for this function: