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

◆ can_read()

bool MayaFlux::IO::NpzReader::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 80 of file NpzFormat.cpp.

81{
82 return Detail::lower_extension(resolve_path(filepath)) == "npz";
83}
static std::string resolve_path(const std::string &filepath)
Resolve a filepath against the project source root if not found as-is.
std::string lower_extension(const std::string &path)
Lowercase extension of a path without its dot.

References MayaFlux::IO::Detail::lower_extension(), and MayaFlux::IO::FileReader::resolve_path().

Referenced by operator=().

Here is the call graph for this function:
Here is the caller graph for this function: