Assimp  v3.1.1 (June 2014)
irr::io::CXMLReaderImpl< char_type, superclass > Class Template Reference

implementation of the IrrXMLReader More...

Inherits irr::io::IIrrXMLReader< char_type, superclass >.

Public Member Functions

 CXMLReaderImpl (IFileReadCallBack *callback, bool deleteCallBack=true)
 Constructor. More...
 
virtual int getAttributeCount () const
 Returns attribute count of the current XML node. More...
 
virtual const char_type * getAttributeName (int idx) const
 Returns name of an attribute. More...
 
virtual const char_type * getAttributeValue (int idx) const
 Returns the value of an attribute. More...
 
virtual const char_type * getAttributeValue (const char_type *name) const
 Returns the value of an attribute. More...
 
float getAttributeValueAsFloat (const char_type *name) const
 Returns the value of an attribute as float. More...
 
float getAttributeValueAsFloat (int idx) const
 Returns the value of an attribute as float. More...
 
int getAttributeValueAsInt (const char_type *name) const
 Returns the value of an attribute as integer. More...
 
int getAttributeValueAsInt (int idx) const
 Returns the value of an attribute as integer. More...
 
virtual const char_type * getAttributeValueSafe (const char_type *name) const
 Returns the value of an attribute. More...
 
virtual const char_type * getNodeData () const
 Returns data of the current node. More...
 
virtual const char_type * getNodeName () const
 Returns the name of the current node. More...
 
virtual EXML_NODE getNodeType () const
 Returns the type of the current XML node. More...
 
virtual ETEXT_FORMAT getParserFormat () const
 Returns format of the strings returned by the parser. More...
 
virtual 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 ~CXMLReaderImpl ()
 Destructor. More...
 
- Public Member Functions inherited from irr::io::IIrrXMLReader< char_type, superclass >
virtual ~IIrrXMLReader ()
 Destructor. More...
 

Detailed Description

template<class char_type, class superclass>
class irr::io::CXMLReaderImpl< char_type, superclass >

implementation of the IrrXMLReader

Constructor & Destructor Documentation

◆ CXMLReaderImpl()

template<class char_type , class superclass >
irr::io::CXMLReaderImpl< char_type, superclass >::CXMLReaderImpl ( IFileReadCallBack callback,
bool  deleteCallBack = true 
)
inline

Constructor.

◆ ~CXMLReaderImpl()

template<class char_type , class superclass >
virtual irr::io::CXMLReaderImpl< char_type, superclass >::~CXMLReaderImpl ( )
inlinevirtual

Destructor.

Member Function Documentation

◆ getAttributeCount()

template<class char_type , class superclass >
virtual int irr::io::CXMLReaderImpl< char_type, superclass >::getAttributeCount ( ) const
inlinevirtual

Returns attribute count of the current XML node.

Implements irr::io::IIrrXMLReader< char_type, superclass >.

◆ getAttributeName()

template<class char_type , class superclass >
virtual const char_type* irr::io::CXMLReaderImpl< char_type, superclass >::getAttributeName ( int  idx) const
inlinevirtual

Returns name of an attribute.

Implements irr::io::IIrrXMLReader< char_type, superclass >.

◆ getAttributeValue() [1/2]

template<class char_type , class superclass >
virtual const char_type* irr::io::CXMLReaderImpl< char_type, superclass >::getAttributeValue ( int  idx) const
inlinevirtual

Returns the value of an attribute.

Implements irr::io::IIrrXMLReader< char_type, superclass >.

◆ getAttributeValue() [2/2]

template<class char_type , class superclass >
virtual const char_type* irr::io::CXMLReaderImpl< char_type, superclass >::getAttributeValue ( const char_type *  name) const
inlinevirtual

Returns the value of an attribute.

Implements irr::io::IIrrXMLReader< char_type, superclass >.

◆ getAttributeValueAsFloat() [1/2]

template<class char_type , class superclass >
float irr::io::CXMLReaderImpl< char_type, superclass >::getAttributeValueAsFloat ( const char_type *  name) const
inlinevirtual

Returns the value of an attribute as float.

Implements irr::io::IIrrXMLReader< char_type, superclass >.

◆ getAttributeValueAsFloat() [2/2]

template<class char_type , class superclass >
float irr::io::CXMLReaderImpl< char_type, superclass >::getAttributeValueAsFloat ( int  idx) const
inlinevirtual

Returns the value of an attribute as float.

Implements irr::io::IIrrXMLReader< char_type, superclass >.

◆ getAttributeValueAsInt() [1/2]

template<class char_type , class superclass >
int irr::io::CXMLReaderImpl< char_type, superclass >::getAttributeValueAsInt ( const char_type *  name) const
inlinevirtual

Returns the value of an attribute as integer.

Implements irr::io::IIrrXMLReader< char_type, superclass >.

◆ getAttributeValueAsInt() [2/2]

template<class char_type , class superclass >
int irr::io::CXMLReaderImpl< char_type, superclass >::getAttributeValueAsInt ( int  idx) const
inlinevirtual

Returns the value of an attribute as integer.

Implements irr::io::IIrrXMLReader< char_type, superclass >.

◆ getAttributeValueSafe()

template<class char_type , class superclass >
virtual const char_type* irr::io::CXMLReaderImpl< char_type, superclass >::getAttributeValueSafe ( const char_type *  name) const
inlinevirtual

Returns the value of an attribute.

Implements irr::io::IIrrXMLReader< char_type, superclass >.

◆ getNodeData()

template<class char_type , class superclass >
virtual const char_type* irr::io::CXMLReaderImpl< char_type, superclass >::getNodeData ( ) const
inlinevirtual

Returns data of the current node.

Implements irr::io::IIrrXMLReader< char_type, superclass >.

◆ getNodeName()

template<class char_type , class superclass >
virtual const char_type* irr::io::CXMLReaderImpl< char_type, superclass >::getNodeName ( ) const
inlinevirtual

Returns the name of the current node.

Implements irr::io::IIrrXMLReader< char_type, superclass >.

◆ getNodeType()

template<class char_type , class superclass >
virtual EXML_NODE irr::io::CXMLReaderImpl< char_type, superclass >::getNodeType ( ) const
inlinevirtual

Returns the type of the current XML node.

Implements irr::io::IIrrXMLReader< char_type, superclass >.

◆ getParserFormat()

template<class char_type , class superclass >
virtual ETEXT_FORMAT irr::io::CXMLReaderImpl< char_type, superclass >::getParserFormat ( ) const
inlinevirtual

Returns format of the strings returned by the parser.

Implements irr::io::IIrrXMLReader< char_type, superclass >.

◆ getSourceFormat()

template<class char_type , class superclass >
virtual ETEXT_FORMAT irr::io::CXMLReaderImpl< char_type, superclass >::getSourceFormat ( ) const
inlinevirtual

Returns format of the source xml file.

Implements irr::io::IIrrXMLReader< char_type, superclass >.

◆ isEmptyElement()

template<class char_type , class superclass >
virtual bool irr::io::CXMLReaderImpl< char_type, superclass >::isEmptyElement ( ) const
inlinevirtual

Returns if an element is an empty element, like <foo>

Implements irr::io::IIrrXMLReader< char_type, superclass >.

◆ read()

template<class char_type , class superclass >
virtual bool irr::io::CXMLReaderImpl< char_type, superclass >::read ( )
inlinevirtual

Reads forward to the next xml node.

Returns
Returns false, if there was no further node.

Implements irr::io::IIrrXMLReader< char_type, superclass >.


The documentation for this class was generated from the following file: