Crazy Eddie's GUI System  0.8.6
SchemeManager.h
1 /***********************************************************************
2  created: Mon Jul 20 2009
3  author: Paul D Turner <paul@cegui.org.uk>
4 *************************************************************************/
5 /***************************************************************************
6  * Copyright (C) 2004 - 2009 Paul D Turner & The CEGUI Development Team
7  *
8  * Permission is hereby granted, free of charge, to any person obtaining
9  * a copy of this software and associated documentation files (the
10  * "Software"), to deal in the Software without restriction, including
11  * without limitation the rights to use, copy, modify, merge, publish,
12  * distribute, sublicense, and/or sell copies of the Software, and to
13  * permit persons to whom the Software is furnished to do so, subject to
14  * the following conditions:
15  *
16  * The above copyright notice and this permission notice shall be
17  * included in all copies or substantial portions of the Software.
18  *
19  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
20  * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
21  * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
22  * IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR
23  * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
24  * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
25  * OTHER DEALINGS IN THE SOFTWARE.
26  ***************************************************************************/
27 #ifndef _CEGUISchemeManager_h_
28 #define _CEGUISchemeManager_h_
29 
30 #include "CEGUI/Base.h"
31 #include "CEGUI/Singleton.h"
32 #include "CEGUI/NamedXMLResourceManager.h"
33 #include "CEGUI/Scheme.h"
34 #include "CEGUI/Scheme_xmlHandler.h"
35 #include "CEGUI/IteratorBase.h"
36 
37 #if defined(_MSC_VER)
38 # pragma warning(push)
39 # pragma warning(disable : 4275)
40 # pragma warning(disable : 4251)
41 #endif
42 
43 // Start of CEGUI namespace section
44 namespace CEGUI
45 {
51 class CEGUIEXPORT SchemeManager :
52  public Singleton<SchemeManager>,
53  public NamedXMLResourceManager<Scheme, Scheme_xmlHandler>,
54  public AllocatedObject<SchemeManager>
55 {
56 public:
58  SchemeManager();
59 
61  ~SchemeManager();
62 
65 
71  SchemeIterator getIterator() const;
72 
87  void setAutoLoadResources(bool enabled);
88 
96  bool getAutoLoadResources() const;
97 
98 protected:
99  // override from base
100  void doPostObjectAdditionAction(Scheme& object);
101 
104 };
105 
106 } // End of CEGUI namespace section
107 
108 #if defined(_MSC_VER)
109 # pragma warning(pop)
110 #endif
111 
112 #endif // end of guard _CEGUISchemeManager_h_
A class that manages the creation of, access to, and destruction of GUI Scheme objects.
Definition: SchemeManager.h:51
bool d_autoLoadResources
If true, Scheme::loadResources is called after "create" is called for it.
Definition: SchemeManager.h:103
Definition: MemoryAllocatedObject.h:109
Main namespace for Crazy Eddie's GUI Library.
Definition: arch_overview.dox:1
ConstMapIterator< ObjectRegistry > SchemeIterator
Definition of SchemeIterator type.
Definition: SchemeManager.h:64
Definition: Singleton.h:55
iterator class for maps
Definition: IteratorBase.h:196
Templatised manager class that loads and manages named XML based resources.
Definition: NamedXMLResourceManager.h:108
A class that groups a set of GUI elements and initialises the system to access those elements...
Definition: Scheme.h:58