Crazy Eddie's GUI System 0.8.7
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
44namespace CEGUI
45{
51class CEGUIEXPORT SchemeManager :
52 public Singleton<SchemeManager>,
53 public NamedXMLResourceManager<Scheme, Scheme_xmlHandler>,
54 public AllocatedObject<SchemeManager>
55{
56public:
59
62
65
72
87 void setAutoLoadResources(bool enabled);
88
97
98protected:
99 // override from base
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_
Definition: MemoryAllocatedObject.h:110
iterator class for maps
Definition: IteratorBase.h:197
Templatised manager class that loads and manages named XML based resources.
Definition: NamedXMLResourceManager.h:109
A class that manages the creation of, access to, and destruction of GUI Scheme objects.
Definition: SchemeManager.h:55
ConstMapIterator< ObjectRegistry > SchemeIterator
Definition of SchemeIterator type.
Definition: SchemeManager.h:64
SchemeIterator getIterator() const
Return a SchemeManager::SchemeIterator object to iterate over the available schemes.
bool d_autoLoadResources
If true, Scheme::loadResources is called after "create" is called for it.
Definition: SchemeManager.h:103
void setAutoLoadResources(bool enabled)
If this is enabled, Schemas will immediately load their resources after they are created.
bool getAutoLoadResources() const
Checks whether resources are loaded immediately after schemes are created.
SchemeManager()
Constructor.
~SchemeManager()
Destructor.
void doPostObjectAdditionAction(Scheme &object)
Function called each time a new object is added to the collection.
A class that groups a set of GUI elements and initialises the system to access those elements.
Definition: Scheme.h:60
Definition: Singleton.h:56
Main namespace for Crazy Eddie's GUI Library.
Definition: arch_overview.dox:1