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

◆ create_writer()

std::unique_ptr< VolumeWriter > MayaFlux::IO::VolumeWriterRegistry::create_writer ( const std::string &  filepath) const
inline

Definition at line 144 of file VolumeWriter.hpp.

145 {
146 auto ext = std::filesystem::path(filepath).extension().string();
147 if (!ext.empty() && ext[0] == '.') {
148 ext = ext.substr(1);
149 }
150
151 auto it = m_factories.find(ext);
152 if (it != m_factories.end()) {
153 return it->second();
154 }
155 return nullptr;
156 }
std::unordered_map< std::string, VolumeWriterFactory > m_factories

Referenced by MayaFlux::IO::save_volume(), MayaFlux::IO::IOManager::save_volume(), and MayaFlux::IO::IOManager::save_volume().

+ Here is the caller graph for this function: