|
vitrio 0.1.4
High-throughput image I/O for Cryo-Electron Microscopy (CryoEM)
|
The ability of one image file format to be read. More...
#include <vitrio/image_file_read_format.hpp>
Public Member Functions | |
| image_file_read_format (const image_file_read_format &other)=delete | |
| image_file_read_format (image_file_read_format &&other)=delete | |
| image_file_read_format & | operator= (const image_file_read_format &other)=delete |
| image_file_read_format & | operator= (image_file_read_format &&other)=delete |
| virtual std::string | get_name () const =0 |
| Get the name of this format. | |
| virtual image_file_format_suitability | get_suitability (const image_file_probe &probe) const =0 |
| Report how well this format fits a file. | |
| virtual std::shared_ptr< image_reader > | open (const image_file_probe &probe) const =0 |
| Open a file for reading. | |
The ability of one image file format to be read.
Judges from an image_file_probe how well it fits a file, and opens a file it fits as an image_reader.
|
pure virtual |
Get the name of this format.
|
pure virtual |
Report how well this format fits a file.
Decide from probe alone, without opening the file: the probe carries its path, its lower case extension and its leading bytes.
Return image_file_format_suitability::unsupported for a file this format does not recognize, and something higher than image_file_format_suitability::normal only to displace another format that recognizes the same file.
| probe | The file under consideration. |
probe.
|
pure virtual |
Open a file for reading.
probe as image_file_format_suitability::unsupported.| probe | The file to open. |
| image_file_error | If the file can not be reached. |
| image_file_format_error | If the file is malformed or truncated. |