|
virtual | ~IIrrXMLReader () |
| Destructor.
|
|
virtual bool | read ()=0 |
| Reads forward to the next xml node.
|
|
virtual EXML_NODE | getNodeType () const =0 |
| Returns the type of the current XML node.
|
|
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 (int idx) const =0 |
| Returns the value of an attribute.
|
|
virtual const char_type * | getAttributeValue (const char_type *name) const =0 |
| Returns the value of an attribute.
|
|
virtual const char_type * | getAttributeValueSafe (const char_type *name) const =0 |
| Returns the value of an attribute in a safe way.
|
|
virtual int | getAttributeValueAsInt (const char_type *name, int defaultNotFound=0) const =0 |
| Returns the value of an attribute as integer.
|
|
virtual int | getAttributeValueAsInt (int idx, int defaultNotFound=0) const =0 |
| Returns the value of an attribute as integer.
|
|
virtual float | getAttributeValueAsFloat (const char_type *name, float defaultNotFound=0.f) const =0 |
| Returns the value of an attribute as float.
|
|
virtual float | getAttributeValueAsFloat (int idx, float defaultNotFound=0.f) const =0 |
| Returns the value of an attribute as float.
|
|
virtual const char_type * | getNodeName () const =0 |
| Returns the name of the current node.
|
|
virtual const char_type * | getNodeData () const =0 |
| Returns data of the current node.
|
|
virtual bool | isEmptyElement () const =0 |
| Returns if an element is an empty element, like <foo />
|
|
virtual ETEXT_FORMAT | getSourceFormat () const =0 |
| Returns format of the source xml file.
|
|
virtual ETEXT_FORMAT | getParserFormat () const =0 |
| Returns format of the strings returned by the parser.
|
|
template<class char_type, class super_class>
class nirt::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 Nirtcpp 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:
#include <irrXML.h>
using namespace io;
void main()
{
if (xml == 0)
return;
{
}
delete xml;
}
Interface providing easy read access to a XML file.
Definition irrXML.hpp:277
virtual bool read()=0
Reads forward to the next xml node.
As of Nirtcpp 1.6, position2d is a synonym for vector2d.
Definition vector3d.hpp:11
See Example for a more detailed example.