#ifndef __RETRO_CFACTORYMGR_HPP__ #define __RETRO_CFACTORYMGR_HPP__ #include #include "RetroTypes.hpp" namespace Retro { class SObjectTag; class CVParamTransfer; class CInputStream; typedef void(*CFactoryFnReturn)(const SObjectTag&, CInputStream&, const CVParamTransfer&); class CFactoryMgr { std::unordered_map m_factories; public: MakeObjectFromMemory(const SObjectTag&, void*, int, bool, const CVParamTransfer&); void AddFactory(FourCC key, CFactoryFnReturn func) { m_factories[key] = func; } }; } #endif // __RETRO_CFACTORYMGR_HPP__