22 #ifndef __MYGUI_FACTORY_MANAGER_H__
23 #define __MYGUI_FACTORY_MANAGER_H__
44 void registerFactory(
const std::string& _category,
const std::string& _type,
Delegate::IDelegate* _delegate);
46 void unregisterFactory(
const std::string& _category,
const std::string& _type);
48 void unregisterFactory(
const std::string& _category);
51 bool isFactoryExist(
const std::string& _category,
const std::string& _type);
54 template<
typename Type>
55 void registerFactory(
const std::string& _category)
61 template<
typename Type>
62 void registerFactory(
const std::string& _category,
const std::string& _type)
68 template<
typename Type>
69 void unregisterFactory(
const std::string& _category)
71 unregisterFactory(_category, Type::getClassTypeName());
75 IObject* createObject(
const std::string& _category,
const std::string& _type);
77 void destroyObject(
IObject* _object);
80 typedef std::map<std::string, Delegate> MapFactoryItem;
81 typedef std::map<std::string, MapFactoryItem> MapRegisterFactoryItem;
82 MapRegisterFactoryItem mRegisterFactoryItems;
89 #endif // __MYGUI_FACTORY_MANAGER_H__