Assimp
v4.1. (December 2018)
|
Interface providing easy read access to a XML file. More...
Inherits super_class.
Public Member Functions | |
virtual int | getAttributeCount () const =0 |
Returns attribute count of the current XML node. More... | |
virtual const char_type * | getAttributeName (int idx) const =0 |
Returns name of an attribute. More... | |
virtual const char_type * | getAttributeValue (const char_type *name) const =0 |
Returns the value of an attribute. More... | |
virtual const char_type * | getAttributeValue (int idx) const =0 |
Returns the value of an attribute. More... | |
virtual float | getAttributeValueAsFloat (const char_type *name) const =0 |
Returns the value of an attribute as float. More... | |
virtual float | getAttributeValueAsFloat (int idx) const =0 |
Returns the value of an attribute as float. More... | |
virtual int | getAttributeValueAsInt (const char_type *name) const =0 |
Returns the value of an attribute as integer. More... | |
virtual int | getAttributeValueAsInt (int idx) const =0 |
Returns the value of an attribute as integer. More... | |
virtual const char_type * | getAttributeValueSafe (const char_type *name) const =0 |
Returns the value of an attribute in a safe way. More... | |
virtual const char_type * | getNodeData () const =0 |
Returns data of the current node. More... | |
virtual const char_type * | getNodeName () const =0 |
Returns the name of the current node. More... | |
virtual EXML_NODE | getNodeType () const =0 |
Returns the type of the current XML node. More... | |
virtual ETEXT_FORMAT | getParserFormat () const =0 |
Returns format of the strings returned by the parser. More... | |
virtual ETEXT_FORMAT | getSourceFormat () const =0 |
Returns format of the source xml file. More... | |
virtual bool | isEmptyElement () const =0 |
Returns if an element is an empty element, like <foo > More... | |
virtual bool | read ()=0 |
Reads forward to the next xml node. More... | |
virtual | ~IIrrXMLReader () |
Destructor. More... | |
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:
See Example for a more detailed example.
|
inlinevirtual |
Destructor.
|
pure virtual |
Returns attribute count of the current XML node.
This is usually non null if the current node is EXN_ELEMENT, and the element has attributes.
|
pure virtual |
Returns name of an attribute.
idx | Zero based index, should be something between 0 and getAttributeCount()-1. |
Implemented in Assimp::CXMLReaderImpl, Assimp::CFIReaderImpl, and irr::io::CXMLReaderImpl< char_type, superclass >.
|
pure virtual |
Returns the value of an attribute.
name | Name of the attribute. |
Implemented in irr::io::CXMLReaderImpl< char_type, superclass >, Assimp::CXMLReaderImpl, and Assimp::CFIReaderImpl.
|
pure virtual |
Returns the value of an attribute.
idx | Zero based index, should be something between 0 and getAttributeCount()-1. |
Implemented in Assimp::CXMLReaderImpl, Assimp::CFIReaderImpl, and irr::io::CXMLReaderImpl< char_type, superclass >.
|
pure virtual |
Returns the value of an attribute as float.
name | Name of the attribute. |
Implemented in irr::io::CXMLReaderImpl< char_type, superclass >, Assimp::CXMLReaderImpl, and Assimp::CFIReaderImpl.
|
pure virtual |
Returns the value of an attribute as float.
idx | Zero based index, should be something between 0 and getAttributeCount()-1. |
Implemented in Assimp::CXMLReaderImpl, Assimp::CFIReaderImpl, and irr::io::CXMLReaderImpl< char_type, superclass >.
|
pure virtual |
Returns the value of an attribute as integer.
name | Name of the attribute. |
Implemented in irr::io::CXMLReaderImpl< char_type, superclass >, Assimp::CXMLReaderImpl, and Assimp::CFIReaderImpl.
|
pure virtual |
Returns the value of an attribute as integer.
idx | Zero based index, should be something between 0 and getAttributeCount()-1. |
Implemented in Assimp::CXMLReaderImpl, Assimp::CFIReaderImpl, and irr::io::CXMLReaderImpl< char_type, superclass >.
|
pure virtual |
Returns the value of an attribute in a safe way.
Like getAttributeValue(), but does not return 0 if the attribute does not exist. An empty string ("") is returned then.
name | Name of the attribute. |
Implemented in irr::io::CXMLReaderImpl< char_type, superclass >, Assimp::CXMLReaderImpl, and Assimp::CFIReaderImpl.
|
pure virtual |
Returns data of the current node.
Only non null if the node has some data and it is of type EXN_TEXT or EXN_UNKNOWN.
|
pure virtual |
Returns the name of the current node.
Only non null, if the node type is EXN_ELEMENT.
|
pure virtual |
Returns the type of the current XML node.
|
pure virtual |
|
pure virtual |
Returns format of the source xml file.
It is not necessary to use this method because the parser will convert the input file format to the format wanted by the user when creating the parser. This method is useful to get/display additional informations.
|
pure virtual |
Returns if an element is an empty element, like <foo >
|
pure virtual |
Reads forward to the next xml node.
Implemented in Assimp::CXMLReaderImpl, Assimp::CFIReaderImpl, and irr::io::CXMLReaderImpl< char_type, superclass >.