23 #ifndef __MYGUI_FACTORY_MANAGER_H__
24 #define __MYGUI_FACTORY_MANAGER_H__
44 void registerFactory(
const std::string& _category,
const std::string& _type,
Delegate::IDelegate* _delegate);
45 void unregisterFactory(
const std::string& _category,
const std::string& _type);
46 void unregisterFactory(
const std::string& _category);
48 bool isFactoryExist(
const std::string& _category,
const std::string& _type);
50 template<
typename Type>
51 void registerFactory(
const std::string& _category)
56 template<
typename Type>
57 void registerFactory(
const std::string& _category,
const std::string& _type)
62 template<
typename Type>
63 void unregisterFactory(
const std::string& _category)
65 unregisterFactory(_category, Type::getClassTypeName());
68 IObject* createObject(
const std::string& _category,
const std::string& _type);
69 void destroyObject(
IObject* _object);
72 typedef std::map<std::string, Delegate> MapFactoryItem;
73 typedef std::map<std::string, MapFactoryItem> MapRegisterFactoryItem;
74 MapRegisterFactoryItem mRegisterFactoryItems;
79 #endif // __MYGUI_FACTORY_MANAGER_H__