|
vitrio 0.1.4
High-throughput image I/O for Cryo-Electron Microscopy (CryoEM)
|
Interface to serve image_reader given a key. More...
#include <vitrio/image_reader_provider.hpp>

Public Member Functions | |
| image_reader_provider (const image_reader_provider &other)=delete | |
| image_reader_provider (image_reader_provider &&other)=delete | |
| image_reader_provider & | operator= (const image_reader_provider &other)=delete |
| image_reader_provider & | operator= (image_reader_provider &&other)=delete |
| virtual std::shared_ptr< const image_reader > | acquire (const std::string &key)=0 |
| Get the reader a key names. | |
Interface to serve image_reader given a key.
What a key is and how the image_reader is created are left to the implementation. A key is often the path of a file, and need not be.
|
pure virtual |
Get the reader a key names.
Shared ownership rather than a reference, so that a reader the provider stops keeping stays alive for as long as it is still read through.
| key | Key of the file to read, such as its path. |
| image_file_error | If the file does not exist or can not be read. |
| unsupported_operation_error | If no format can read the file. |
| image_file_format_error | If the file is malformed or truncated. |
Implemented in vitrio::caching_image_reader_provider, vitrio::detector_event_image_reader_provider, vitrio::file_image_reader_provider, and vitrio::scratch_image_reader_provider.