Assimp
v4.1. (December 2018)
|
Inherits Assimp::FIReader.
Public Member Functions | |
CFIReaderImpl (std::unique_ptr< uint8_t[]> data_, size_t size) | |
virtual int | getAttributeCount () const |
Returns attribute count of the current XML node. More... | |
virtual std::shared_ptr< const FIValue > | getAttributeEncodedValue (const char *name) const |
virtual std::shared_ptr< const FIValue > | getAttributeEncodedValue (int idx) const |
virtual const char * | getAttributeName (int idx) const |
Returns name of an attribute. More... | |
virtual const char * | getAttributeValue (const char *name) const |
Returns the value of an attribute. More... | |
virtual const char * | getAttributeValue (int idx) const |
Returns the value of an attribute. More... | |
virtual float | getAttributeValueAsFloat (const char *name) const |
Returns the value of an attribute as float. More... | |
virtual float | getAttributeValueAsFloat (int idx) const |
Returns the value of an attribute as float. More... | |
virtual int | getAttributeValueAsInt (const char *name) const |
Returns the value of an attribute as integer. More... | |
virtual int | getAttributeValueAsInt (int idx) const |
Returns the value of an attribute as integer. More... | |
virtual const char * | getAttributeValueSafe (const char *name) const |
Returns the value of an attribute in a safe way. More... | |
virtual const char * | getNodeData () const |
Returns data of the current node. More... | |
virtual const char * | getNodeName () const |
Returns the name of the current node. More... | |
virtual irr::io::EXML_NODE | getNodeType () const |
Returns the type of the current XML node. More... | |
virtual irr::io::ETEXT_FORMAT | getParserFormat () const |
Returns format of the strings returned by the parser. More... | |
virtual irr::io::ETEXT_FORMAT | getSourceFormat () const |
Returns format of the source xml file. More... | |
virtual bool | isEmptyElement () const |
Returns if an element is an empty element, like <foo> More... | |
virtual bool | read () |
Reads forward to the next xml node. More... | |
virtual void | registerDecoder (const std::string &algorithmUri, std::unique_ptr< FIDecoder > decoder) |
virtual void | registerVocabulary (const std::string &vocabularyUri, const FIVocabulary *vocabulary) |
virtual | ~CFIReaderImpl () |
![]() | |
virtual | ~FIReader () |
![]() | |
virtual | ~IIrrXMLReader () |
Destructor. More... | |
Additional Inherited Members | |
![]() | |
static std::unique_ptr< FIReader > | create (IOStream *stream) |
|
inline |
|
inlinevirtual |
|
inlinevirtual |
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.
Implements irr::io::IIrrXMLReader< char, irr::io::IXMLBase >.
|
inlinevirtual |
Implements Assimp::FIReader.
|
inlinevirtual |
Implements Assimp::FIReader.
|
inlinevirtual |
Returns name of an attribute.
idx | Zero based index, should be something between 0 and getAttributeCount()-1. |
Implements irr::io::IIrrXMLReader< char, irr::io::IXMLBase >.
|
inlinevirtual |
Returns the value of an attribute.
name | Name of the attribute. |
Implements irr::io::IIrrXMLReader< char, irr::io::IXMLBase >.
|
inlinevirtual |
Returns the value of an attribute.
idx | Zero based index, should be something between 0 and getAttributeCount()-1. |
Implements irr::io::IIrrXMLReader< char, irr::io::IXMLBase >.
|
inlinevirtual |
Returns the value of an attribute as float.
name | Name of the attribute. |
Implements irr::io::IIrrXMLReader< char, irr::io::IXMLBase >.
|
inlinevirtual |
Returns the value of an attribute as float.
idx | Zero based index, should be something between 0 and getAttributeCount()-1. |
Implements irr::io::IIrrXMLReader< char, irr::io::IXMLBase >.
|
inlinevirtual |
Returns the value of an attribute as integer.
name | Name of the attribute. |
Implements irr::io::IIrrXMLReader< char, irr::io::IXMLBase >.
|
inlinevirtual |
Returns the value of an attribute as integer.
idx | Zero based index, should be something between 0 and getAttributeCount()-1. |
Implements irr::io::IIrrXMLReader< char, irr::io::IXMLBase >.
|
inlinevirtual |
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. |
Implements irr::io::IIrrXMLReader< char, irr::io::IXMLBase >.
|
inlinevirtual |
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.
Implements irr::io::IIrrXMLReader< char, irr::io::IXMLBase >.
|
inlinevirtual |
Returns the name of the current node.
Only non null, if the node type is EXN_ELEMENT.
Implements irr::io::IIrrXMLReader< char, irr::io::IXMLBase >.
|
inlinevirtual |
Returns the type of the current XML node.
Implements irr::io::IIrrXMLReader< char, irr::io::IXMLBase >.
|
inlinevirtual |
Returns format of the strings returned by the parser.
This will be UTF8 for example when you created a parser with IrrXMLReaderUTF8() and UTF32 when it has been created using IrrXMLReaderUTF32. It should not be necessary to call this method and only exists for informational purposes.
Implements irr::io::IIrrXMLReader< char, irr::io::IXMLBase >.
|
inlinevirtual |
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.
Implements irr::io::IIrrXMLReader< char, irr::io::IXMLBase >.
|
inlinevirtual |
Returns if an element is an empty element, like <foo>
Implements irr::io::IIrrXMLReader< char, irr::io::IXMLBase >.
|
inlinevirtual |
Reads forward to the next xml node.
Implements irr::io::IIrrXMLReader< char, irr::io::IXMLBase >.
|
inlinevirtual |
Implements Assimp::FIReader.
|
inlinevirtual |
Implements Assimp::FIReader.