36 #ifndef DYNAMICMODELLOADERREGISTRY_HPP_ 37 #define DYNAMICMODELLOADERREGISTRY_HPP_ 43 #include <boost/utility.hpp> 44 #include <boost/weak_ptr.hpp> 45 #include "DynamicCellModelLoader.hpp" 46 #include "FileFinder.hpp" 48 typedef boost::weak_ptr<DynamicCellModelLoader> DynamicCellModelLoaderWeakPtr;
66 DynamicCellModelLoaderPtr
GetLoader(
const std::string& rPath);
88 std::map<std::string, DynamicCellModelLoaderWeakPtr>
mLoaders;
94 static std::shared_ptr<DynamicModelLoaderRegistry>
mpInstance;
static DynamicModelLoaderRegistry * Instance()
static std::shared_ptr< DynamicModelLoaderRegistry > mpInstance
std::set< DynamicCellModelLoaderPtr > mDeletableLoaders
DynamicModelLoaderRegistry()
void ScheduleForDeletion(DynamicCellModelLoaderPtr pLoader)
DynamicCellModelLoaderPtr GetLoader(const std::string &rPath)
std::map< std::string, DynamicCellModelLoaderWeakPtr > mLoaders