Crazy Eddies GUI System
0.6.2
Main Page
Related Pages
Namespaces
Classes
Files
File List
include
CEGUIWindowRendererManager.h
1
/***********************************************************************
2
filename: CEGUIWindowRenderer.h
3
created: Jan 11 2006
4
author: Tomas Lindquist Olsen
5
6
purpose: Defines interface for the WindowRendererManager class
7
*************************************************************************/
8
/***************************************************************************
9
* Copyright (C) 2004 - 2006 Paul D Turner & The CEGUI Development Team
10
*
11
* Permission is hereby granted, free of charge, to any person obtaining
12
* a copy of this software and associated documentation files (the
13
* "Software"), to deal in the Software without restriction, including
14
* without limitation the rights to use, copy, modify, merge, publish,
15
* distribute, sublicense, and/or sell copies of the Software, and to
16
* permit persons to whom the Software is furnished to do so, subject to
17
* the following conditions:
18
*
19
* The above copyright notice and this permission notice shall be
20
* included in all copies or substantial portions of the Software.
21
*
22
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
23
* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
24
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
25
* IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR
26
* OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
27
* ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
28
* OTHER DEALINGS IN THE SOFTWARE.
29
***************************************************************************/
30
#ifndef _CEGUIWindowRendererManager_h_
31
#define _CEGUIWindowRendererManager_h_
32
33
#include "CEGUIWindowRenderer.h"
34
#include "CEGUISingleton.h"
35
//#include "CEGUIIteratorBase.h"
36
#include <map>
37
38
#if defined(_MSC_VER)
39
# pragma warning(push)
40
# pragma warning(disable : 4251)
41
#endif
42
43
// Start of CEGUI namespace section
44
namespace
CEGUI
45
{
46
47
class
CEGUIEXPORT
WindowRendererManager
:
public
Singleton
<WindowRendererManager>
48
{
49
public
:
50
/*************************************************************************
51
Contructor / Destructor
52
*************************************************************************/
53
WindowRendererManager
();
54
~
WindowRendererManager
();
55
56
/*************************************************************************
57
Singleton
58
*************************************************************************/
59
static
WindowRendererManager
& getSingleton();
60
static
WindowRendererManager
* getSingletonPtr();
61
62
/*************************************************************************
63
Accessors
64
*************************************************************************/
65
bool
isFactoryPresent(
const
String
& name)
const
;
66
WindowRendererFactory
* getFactory(
const
String
& name)
const
;
67
68
/*************************************************************************
69
Manipulators
70
*************************************************************************/
71
void
addFactory(
WindowRendererFactory
* wr);
72
void
removeFactory(
const
String
& name);
73
74
/*************************************************************************
75
Factory usage
76
*************************************************************************/
77
WindowRenderer
* createWindowRenderer(
const
String
& name);
78
void
destroyWindowRenderer(
WindowRenderer
* wr);
79
80
private
:
81
/*************************************************************************
82
Private implementation
83
*************************************************************************/
84
85
/*************************************************************************
86
Implementation data
87
*************************************************************************/
88
typedef
std::map<String, WindowRendererFactory*, String::FastLessCompare> WR_Registry;
89
WR_Registry d_wrReg;
90
};
91
92
}
// End of CEGUI namespace
93
94
#if defined(_MSC_VER)
95
# pragma warning(pop)
96
#endif
97
98
#endif // _CEGUIWindowRendererManager_h_
Generated by
1.8.3.1