vitrio 0.1.4
High-throughput image I/O for Cryo-Electron Microscopy (CryoEM)
Loading...
Searching...
No Matches
Public Types | Public Member Functions | List of all members
vitrio::image_file_read_format_registry Class Reference

Collects image read format factories for bulk registration. More...

#include <vitrio/image_file_read_format_registry.hpp>

Public Types

using format_type = image_file_read_format
 

Public Member Functions

 image_file_read_format_registry (const image_file_read_format_registry &other)=delete
 
 image_file_read_format_registry (image_file_read_format_registry &&other)=delete
 
image_file_read_format_registry & operator= (const image_file_read_format_registry &other)=delete
 
image_file_read_format_registry & operator= (image_file_read_format_registry &&other)=delete
 
void add (image_file_read_format_factory factory)
 Append a format factory to the registry.
 
void register_all (image_file_read_format_selector &selector) const
 Instantiate one format per registered factory and register them into a selector.
 

Detailed Description

Collects image read format factories for bulk registration.

Registers one fresh format per factory into a selector, as many times and into as many selectors as asked.

Note
add must not run concurrently with any other call, while register_all may run concurrently with itself into different selectors.
See also
image_file_write_format_registry

Member Function Documentation

◆ add()

void vitrio::image_file_read_format_registry::add ( image_file_read_format_factory  factory)

Append a format factory to the registry.

Parameters
factoryFunction creating a fresh format instance. Null factories are ignored.

◆ register_all()

void vitrio::image_file_read_format_registry::register_all ( image_file_read_format_selector &  selector) const

Instantiate one format per registered factory and register them into a selector.

Parameters
selectorThe selector where the formats are registered.

The documentation for this class was generated from the following file: