Crazy Eddie's GUI System  ${CEGUI_VERSION}
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Pages
Samples_xmlHandler.h
1 /***********************************************************************
2  created: 31/5/2012
3  author: Lukas E Meindl
4 *************************************************************************/
5 /***************************************************************************
6  * Copyright (C) 2004 - 2012 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 _Samples_xmlHandler_h_
28 #define _Samples_xmlHandler_h_
29 
30 #include "CEGUI/ChainedXMLHandler.h"
31 #include "CEGUI/String.h"
32 
33 class SamplesFramework;
34 
35 using namespace CEGUI;
36 
38 {
39 public:
40  Samples_xmlHandler(SamplesFramework* samplesFramework);
41  virtual ~Samples_xmlHandler();
42 
44  static const String ElementName;
45 
46  // XMLHandler overrides
47  const String& getSchemaName() const;
48 
49 protected:
50  // implement ChainedXMLHandler interface.
51  void elementStartLocal(const String& element,
52  const XMLAttributes& attributes);
53  void elementEndLocal(const String& element);
54 
55  SamplesFramework* d_samplesFramework;
56 };
57 
58 //----------------------------------------------------------------------------//
61 {
62 public:
64  static const String ElementName;
65 
66  static const String NameAttribute;
67  static const String SummaryAttribute;
68  static const String DescriptionAttribute;
69  static const String CreditsAttribute;
70 
71  static const String SampleTypeAttribute;
72  static const String SampleTypeCppModule;
73  static const String SampleTypeLua;
74  static const String SampleTypePython;
75 
76 
77  SampleDataHandler(const XMLAttributes& attributes,
78  SamplesFramework* samplesFramework);
79  virtual ~SampleDataHandler();
80 
81 protected:
82  // implement ChainedXMLHandler interface.
83  void elementStartLocal(const String& element,
84  const XMLAttributes& attributes);
85  void elementEndLocal(const String& element);
86 
87  SamplesFramework* d_samplesFramework;
88 };
89 
90 #endif
91 
Main namespace for Crazy Eddie's GUI Library.
Definition: cegui/include/CEGUI/Affector.h:42
static const String ElementName
String holding the element handled by this class.
Definition: Samples_xmlHandler.h:44
This is.
Definition: SamplesFramework.h:48
static const String ElementName
String holding the element handled by this class.
Definition: Samples_xmlHandler.h:64
Class representing a block of attributes associated with an XML element.
Definition: cegui/include/CEGUI/XMLAttributes.h:46
Abstract XMLHandler based class.
Definition: cegui/include/CEGUI/ChainedXMLHandler.h:36
Chained sub-handler for AnimationDefinition XML elements.
Definition: Samples_xmlHandler.h:60
Definition: Samples_xmlHandler.h:37
String class used within the GUI system.
Definition: cegui/include/CEGUI/String.h:62