/usr/include/CEGUI/CEGUIXMLParser.h is in libcegui-mk2-dev 0.7.6-3.3.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 | /***********************************************************************
filename: CEGUIXMLParser.h
created: 12/3/2005
author: Paul D Turner
*************************************************************************/
/***************************************************************************
* Copyright (C) 2004 - 2006 Paul D Turner & The CEGUI Development Team
*
* Permission is hereby granted, free of charge, to any person obtaining
* a copy of this software and associated documentation files (the
* "Software"), to deal in the Software without restriction, including
* without limitation the rights to use, copy, modify, merge, publish,
* distribute, sublicense, and/or sell copies of the Software, and to
* permit persons to whom the Software is furnished to do so, subject to
* the following conditions:
*
* The above copyright notice and this permission notice shall be
* included in all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
* IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR
* OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
* ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
* OTHER DEALINGS IN THE SOFTWARE.
***************************************************************************/
#ifndef _CEGUIXMLParser_h_
#define _CEGUIXMLParser_h_
#include "CEGUIBase.h"
#include "CEGUIString.h"
#include "CEGUIPropertySet.h"
// Start of CEGUI namespace section
namespace CEGUI
{
/*!
\brief
This is an abstract class that is used by CEGUI to interface with XML parser libraries.
*/
class CEGUIEXPORT XMLParser : public PropertySet
{
public:
/*!
\brief
XMLParser base class constructor.
*/
XMLParser(void);
/*!
\brief
XMLParser base class destructor.
*/
virtual ~XMLParser(void);
/*!
\brief
Initialises the XMLParser module ready for use.
Note that this calls the protected abstract method 'initialiseImpl', which should
be provided in your implementation to perform any required initialisation.
\return
- true if the module initialised successfully.
- false if the module initialisation failed.
*/
bool initialise(void);
/*!
\brief
Cleans up the XMLParser module after use.
Note that this calls the protected abstract method 'cleanupImpl', which should
be provided in your implementation to perform any required cleanup.
\return
Nothing.
*/
void cleanup(void);
/*!
\brief
abstract method which initiates parsing of an XML file.
\param handler
XMLHandler based object which will process the XML elements.
\param filename
String object holding the filename of the XML file to be parsed.
\param schemaName
String object holding the name of the XML schema file to use for validating the XML.
Note that whether this is used or not is dependant upon the XMLParser in use.
\param resourceGroup
String object holding the resource group identifier which will be passed to the
ResourceProvider when loading the XML and schema files.
\return
Nothing.
*/
virtual void parseXMLFile(XMLHandler& handler, const String& filename, const String& schemaName, const String& resourceGroup) = 0;
/*!
\brief
Return identification string for the XML parser module. If the internal id string has not been
set by the XML parser module creator, a generic string of "Unknown XML parser" will be returned.
\return
String object holding a string that identifies the XML parser in use.
*/
const String& getIdentifierString() const;
protected:
/*!
\brief
abstract method which initialises the XMLParser ready for use.
\return
- true if the module initialised successfully.
- false if the module initialisation failed.
*/
virtual bool initialiseImpl(void) = 0;
/*!
\brief
abstract method which cleans up the XMLParser after use.
\return
Nothing.
*/
virtual void cleanupImpl(void) = 0;
// data fields
String d_identifierString; //!< String that holds some id information about the module.
private:
bool d_initialised; //!< true if the parser module has been initialised,
};
} // End of CEGUI namespace section
#endif // end of guard _CEGUIXMLParser_h_
|