30 #ifndef _CEGUIWindowRendererManager_h_
31 #define _CEGUIWindowRendererManager_h_
33 #include "CEGUISingleton.h"
34 #include "CEGUIWindowRenderer.h"
35 #include "CEGUILogger.h"
36 #include "CEGUIExceptions.h"
41 # pragma warning(push)
42 # pragma warning(disable : 4251)
66 bool isFactoryPresent(
const String& name)
const;
86 static void addFactory();
88 void removeFactory(
const String& name);
104 typedef std::map<String, WindowRendererFactory*, String::FastLessCompare> WR_Registry;
108 typedef std::vector<WindowRendererFactory*> OwnedFactoryList;
110 static OwnedFactoryList d_ownedFactories;
114 template <
typename T>
121 if (WindowRendererManager::getSingletonPtr())
123 Logger::getSingleton().logEvent(
"Created WindowRendererFactory for '" +
125 "' WindowRenderers.");
129 WindowRendererManager::getSingleton().addFactory(factory);
131 CEGUI_CATCH (Exception&)
133 Logger::getSingleton().logEvent(
"Deleted WindowRendererFactory for "
135 "' WindowRenderers.");
142 d_ownedFactories.push_back(factory);
150 #if defined(_MSC_VER)
151 # pragma warning(pop)
154 #endif // _CEGUIWindowRendererManager_h_