|
virtual | ~IIrrXMLReader () |
| Destructor.
|
|
virtual unsigned int | getAttributeCount () const =0 |
| Returns attribute count of the current XML node.
|
|
virtual const char_type * | getAttributeName (int idx) const =0 |
| Returns name of an attribute.
|
|
virtual const char_type * | getAttributeValue (const char_type *name) const =0 |
| Returns the value of an attribute.
|
|
virtual const char_type * | getAttributeValue (int idx) const =0 |
| Returns the value of an attribute.
|
|
virtual float | getAttributeValueAsFloat (const char_type *name) const =0 |
| Returns the value of an attribute as float.
|
|
virtual float | getAttributeValueAsFloat (int idx) const =0 |
| Returns the value of an attribute as float.
|
|
virtual int | getAttributeValueAsInt (const char_type *name) const =0 |
| Returns the value of an attribute as integer.
|
|
virtual int | getAttributeValueAsInt (int idx) const =0 |
| Returns the value of an attribute as integer.
|
|
virtual const char_type * | getAttributeValueSafe (const char_type *name) const =0 |
| Returns the value of an attribute in a safe way.
|
|
virtual const char_type * | getNodeData () const =0 |
| Returns data of the current node.
|
|
virtual const char_type * | getNodeName () const =0 |
| Returns the name of the current node.
|
|
virtual EXML_NODE | getNodeType () const =0 |
| Returns the type of the current XML node.
|
|
virtual ETEXT_FORMAT | getParserFormat () const =0 |
| Returns format of the strings returned by the parser.
|
|
virtual ETEXT_FORMAT | getSourceFormat () const =0 |
| Returns format of the source xml file.
|
|
virtual bool | isEmptyElement () const =0 |
| Returns if an element is an empty element, like <foo />
|
|
virtual bool | read ()=0 |
| Reads forward to the next xml node.
|
|
template<class char_type, class super_class>
class irr::io::IIrrXMLReader< char_type, super_class >
Interface providing easy read access to a XML file.
You can create an instance of this reader using one of the factory functions createIrrXMLReader(), createIrrXMLReaderUTF16() and createIrrXMLReaderUTF32(). If using the parser from the Irrlicht Engine, please use IFileSystem::createXMLReader() instead. For a detailed intro how to use the parser, see Example and Features.
The typical usage of this parser looks like this:
using namespace io;
void main()
{
if (xml == 0)
return;
{
}
delete xml;
}
Interface providing easy read access to a XML file.
virtual bool read()=0
Reads forward to the next xml node.
Header file of the irrXML, the Irrlicht XML parser.
IRRLICHT_API IrrXMLReader *IRRCALLCONV createIrrXMLReader(const char *filename)
Creates an instance of an UFT-8 or ASCII character xml parser.
Everything in the Irrlicht Engine can be found in this namespace.
See Example for a more detailed example.
Definition at line 275 of file irrXML.h.