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

◆ create_writer()

std::unique_ptr< ModelWriter > MayaFlux::IO::ModelWriterRegistry::create_writer ( const std::string &  filepath) const
inline

Definition at line 114 of file ModelWriter.hpp.

115 {
116 auto ext = std::filesystem::path(filepath).extension().string();
117 if (!ext.empty() && ext[0] == '.') {
118 ext = ext.substr(1);
119 }
120
121 auto it = m_factories.find(ext);
122 if (it != m_factories.end()) {
123 return it->second();
124 }
125 return nullptr;
126 }
std::unordered_map< std::string, ModelWriterFactory > m_factories

Referenced by MayaFlux::IO::IOManager::save_mesh().

+ Here is the caller graph for this function: