A port of the irrlicht XML parser library.
CXMLReaderImpl< char_type, superclass > Class Template Reference
implementation of the IrrXMLReader More...
#include <CXMLReaderImpl.h>
Inherits IIrrXMLReader< char_type, superclass >.
Public Member Functions | |
CXMLReaderImpl (IFileReadCallBack *callback, bool deleteCallBack=true) | |
Constructor. | |
virtual | ~CXMLReaderImpl () |
Destructor. | |
virtual bool | read () |
Reads forward to the next xml node. | |
virtual EXML_NODE | getNodeType () const |
Returns the type of the current XML node. | |
virtual int | getAttributeCount () const |
Returns attribute count of the current XML node. | |
virtual const char_type * | getAttributeName (int idx) const |
Returns name of an attribute. | |
virtual const char_type * | getAttributeValue (int idx) const |
Returns the value of an attribute. | |
virtual const char_type * | getAttributeValue (const char_type *name) const |
Returns the value of an attribute. | |
virtual const char_type * | getAttributeValueSafe (const char_type *name) const |
Returns the value of an attribute. | |
virtual int | getAttributeValueAsInt (const char_type *name) const |
Returns the value of an attribute as integer. | |
virtual int | getAttributeValueAsInt (int idx) const |
Returns the value of an attribute as integer. | |
virtual float | getAttributeValueAsFloat (const char_type *name) const |
Returns the value of an attribute as float. | |
virtual float | getAttributeValueAsFloat (int idx) const |
Returns the value of an attribute as float. | |
virtual const char_type * | getNodeName () const |
Returns the name of the current node. | |
virtual const char_type * | getNodeData () const |
Returns data of the current node. | |
virtual bool | isEmptyElement () const |
Returns if an element is an empty element, like <foo> | |
virtual ETEXT_FORMAT | getSourceFormat () const |
Returns format of the source xml file. | |
virtual ETEXT_FORMAT | getParserFormat () const |
Returns format of the strings returned by the parser. |
Detailed Description
template<class char_type, class superclass>
class irr::io::CXMLReaderImpl< char_type, superclass >
implementation of the IrrXMLReader
Definition at line 28 of file CXMLReaderImpl.h.
Constructor & Destructor Documentation
CXMLReaderImpl | ( | IFileReadCallBack * | callback, |
bool | deleteCallBack = true |
||
) |
Constructor.
Definition at line 33 of file CXMLReaderImpl.h.
virtual ~CXMLReaderImpl | ( | ) | [virtual] |
Destructor.
Definition at line 61 of file CXMLReaderImpl.h.
Member Function Documentation
virtual int getAttributeCount | ( | ) | const [virtual] |
Returns attribute count of the current XML node.
Implements IIrrXMLReader< char_type, superclass >.
Definition at line 91 of file CXMLReaderImpl.h.
virtual const char_type* getAttributeName | ( | int | idx ) | const [virtual] |
Returns name of an attribute.
Implements IIrrXMLReader< char_type, superclass >.
Definition at line 98 of file CXMLReaderImpl.h.
virtual const char_type* getAttributeValue | ( | int | idx ) | const [virtual] |
Returns the value of an attribute.
Implements IIrrXMLReader< char_type, superclass >.
Definition at line 108 of file CXMLReaderImpl.h.
virtual const char_type* getAttributeValue | ( | const char_type * | name ) | const [virtual] |
Returns the value of an attribute.
Implements IIrrXMLReader< char_type, superclass >.
Definition at line 118 of file CXMLReaderImpl.h.
virtual float getAttributeValueAsFloat | ( | const char_type * | name ) | const [virtual] |
Returns the value of an attribute as float.
Implements IIrrXMLReader< char_type, superclass >.
Definition at line 155 of file CXMLReaderImpl.h.
virtual float getAttributeValueAsFloat | ( | int | idx ) | const [virtual] |
Returns the value of an attribute as float.
Implements IIrrXMLReader< char_type, superclass >.
Definition at line 167 of file CXMLReaderImpl.h.
virtual int getAttributeValueAsInt | ( | const char_type * | name ) | const [virtual] |
Returns the value of an attribute as integer.
Implements IIrrXMLReader< char_type, superclass >.
Definition at line 141 of file CXMLReaderImpl.h.
virtual int getAttributeValueAsInt | ( | int | idx ) | const [virtual] |
Returns the value of an attribute as integer.
Implements IIrrXMLReader< char_type, superclass >.
Definition at line 148 of file CXMLReaderImpl.h.
virtual const char_type* getAttributeValueSafe | ( | const char_type * | name ) | const [virtual] |
Returns the value of an attribute.
Implements IIrrXMLReader< char_type, superclass >.
Definition at line 129 of file CXMLReaderImpl.h.
virtual const char_type* getNodeData | ( | ) | const [virtual] |
Returns data of the current node.
Implements IIrrXMLReader< char_type, superclass >.
Definition at line 186 of file CXMLReaderImpl.h.
virtual const char_type* getNodeName | ( | ) | const [virtual] |
Returns the name of the current node.
Implements IIrrXMLReader< char_type, superclass >.
Definition at line 179 of file CXMLReaderImpl.h.
virtual EXML_NODE getNodeType | ( | ) | const [virtual] |
Returns the type of the current XML node.
Implements IIrrXMLReader< char_type, superclass >.
Definition at line 84 of file CXMLReaderImpl.h.
virtual ETEXT_FORMAT getParserFormat | ( | ) | const [virtual] |
Returns format of the strings returned by the parser.
Implements IIrrXMLReader< char_type, superclass >.
Definition at line 205 of file CXMLReaderImpl.h.
virtual ETEXT_FORMAT getSourceFormat | ( | ) | const [virtual] |
Returns format of the source xml file.
Implements IIrrXMLReader< char_type, superclass >.
Definition at line 199 of file CXMLReaderImpl.h.
virtual bool isEmptyElement | ( | ) | const [virtual] |
Returns if an element is an empty element, like <foo>
Implements IIrrXMLReader< char_type, superclass >.
Definition at line 193 of file CXMLReaderImpl.h.
virtual bool read | ( | ) | [virtual] |
Reads forward to the next xml node.
- Returns:
- Returns false, if there was no further node.
Implements IIrrXMLReader< char_type, superclass >.
Definition at line 69 of file CXMLReaderImpl.h.
Generated on Tue Jul 12 2022 22:10:58 by 1.7.2