MayaFlux 0.5.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches
MayaFlux::IO::VolumeWriterRegistry Class Reference

Singleton registry dispatching volume writes by file extension. More...

#include <VolumeWriter.hpp>

+ Collaboration diagram for MayaFlux::IO::VolumeWriterRegistry:

Public Member Functions

std::unique_ptr< VolumeWritercreate_writer (const std::string &filepath) const
 
std::vector< std::string > get_registered_extensions () const
 
void register_writer (const std::vector< std::string > &extensions, const VolumeWriterFactory &factory)
 

Static Public Member Functions

static VolumeWriterRegistryinstance ()
 

Private Attributes

std::unordered_map< std::string, VolumeWriterFactorym_factories
 

Detailed Description

Singleton registry dispatching volume writes by file extension.

Mirrors ImageWriterRegistry. Concrete writers register themselves during subsystem init. create_writer(path) looks up the extension and returns a fresh instance, or nullptr if none is registered.

The nullptr is the whole point of the indirection: a format whose backing library is not present on a given build simply has no entry, and the caller gets a logged miss at the call site rather than a link error at startup.

Definition at line 127 of file VolumeWriter.hpp.


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