Assimp  v4.1. (December 2018)
Assimp::CFIReaderImpl Class Reference

Inherits Assimp::FIReader.

Public Member Functions

 CFIReaderImpl (std::unique_ptr< uint8_t[]> data_, size_t size)
 
virtual int getAttributeCount () const
 
virtual std::shared_ptr< const FIValuegetAttributeEncodedValue (const char *name) const
 
virtual std::shared_ptr< const FIValuegetAttributeEncodedValue (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
 
virtual const char * getNodeName () const
 
virtual irr::io::EXML_NODE getNodeType () const
 
virtual irr::io::ETEXT_FORMAT getParserFormat () const
 
virtual irr::io::ETEXT_FORMAT getSourceFormat () const
 
virtual bool isEmptyElement () const
 
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 ()
 
- Public Member Functions inherited from Assimp::FIReader
virtual ~FIReader ()
 
- Public Member Functions inherited from irr::io::IIrrXMLReader< char, irr::io::IXMLBase >
virtual int getAttributeCount () const=0
 Returns attribute count of the current XML node. More...
 
virtual const char * getNodeData () const=0
 Returns data of the current node. More...
 
virtual const char * 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 ~IIrrXMLReader ()
 Destructor. More...
 

Additional Inherited Members

- Static Public Member Functions inherited from Assimp::FIReader
static std::unique_ptr< FIReadercreate (IOStream *stream)
 

Constructor & Destructor Documentation

◆ CFIReaderImpl()

Assimp::CFIReaderImpl::CFIReaderImpl ( std::unique_ptr< uint8_t[]>  data_,
size_t  size 
)
inline

◆ ~CFIReaderImpl()

virtual Assimp::CFIReaderImpl::~CFIReaderImpl ( )
inlinevirtual

Member Function Documentation

◆ getAttributeCount()

virtual int Assimp::CFIReaderImpl::getAttributeCount ( ) const
inlinevirtual

◆ getAttributeEncodedValue() [1/2]

virtual std::shared_ptr<const FIValue> Assimp::CFIReaderImpl::getAttributeEncodedValue ( const char *  name) const
inlinevirtual

Implements Assimp::FIReader.

◆ getAttributeEncodedValue() [2/2]

virtual std::shared_ptr<const FIValue> Assimp::CFIReaderImpl::getAttributeEncodedValue ( int  idx) const
inlinevirtual

Implements Assimp::FIReader.

◆ getAttributeName()

virtual const char* Assimp::CFIReaderImpl::getAttributeName ( int  idx) const
inlinevirtual

Returns name of an attribute.

Parameters
idxZero based index, should be something between 0 and getAttributeCount()-1.
Returns
Name of the attribute, 0 if an attribute with this index does not exist.

Implements irr::io::IIrrXMLReader< char, irr::io::IXMLBase >.

◆ getAttributeValue() [1/2]

virtual const char* Assimp::CFIReaderImpl::getAttributeValue ( const char *  name) const
inlinevirtual

Returns the value of an attribute.

Parameters
nameName of the attribute.
Returns
Value of the attribute, 0 if an attribute with this name does not exist.

Implements irr::io::IIrrXMLReader< char, irr::io::IXMLBase >.

◆ getAttributeValue() [2/2]

virtual const char* Assimp::CFIReaderImpl::getAttributeValue ( int  idx) const
inlinevirtual

Returns the value of an attribute.

Parameters
idxZero based index, should be something between 0 and getAttributeCount()-1.
Returns
Value of the attribute, 0 if an attribute with this index does not exist.

Implements irr::io::IIrrXMLReader< char, irr::io::IXMLBase >.

◆ getAttributeValueAsFloat() [1/2]

virtual float Assimp::CFIReaderImpl::getAttributeValueAsFloat ( const char *  name) const
inlinevirtual

Returns the value of an attribute as float.

Parameters
nameName of the attribute.
Returns
Value of the attribute as float, and 0 if an attribute with this name does not exist or the value could not be interpreted as float.

Implements irr::io::IIrrXMLReader< char, irr::io::IXMLBase >.

◆ getAttributeValueAsFloat() [2/2]

virtual float Assimp::CFIReaderImpl::getAttributeValueAsFloat ( int  idx) const
inlinevirtual

Returns the value of an attribute as float.

Parameters
idxZero based index, should be something between 0 and getAttributeCount()-1.
Returns
Value of the attribute as float, and 0 if an attribute with this index does not exist or the value could not be interpreted as float.

Implements irr::io::IIrrXMLReader< char, irr::io::IXMLBase >.

◆ getAttributeValueAsInt() [1/2]

virtual int Assimp::CFIReaderImpl::getAttributeValueAsInt ( const char *  name) const
inlinevirtual

Returns the value of an attribute as integer.

Parameters
nameName of the attribute.
Returns
Value of the attribute as integer, and 0 if an attribute with this name does not exist or the value could not be interpreted as integer.

Implements irr::io::IIrrXMLReader< char, irr::io::IXMLBase >.

◆ getAttributeValueAsInt() [2/2]

virtual int Assimp::CFIReaderImpl::getAttributeValueAsInt ( int  idx) const
inlinevirtual

Returns the value of an attribute as integer.

Parameters
idxZero based index, should be something between 0 and getAttributeCount()-1.
Returns
Value of the attribute as integer, and 0 if an attribute with this index does not exist or the value could not be interpreted as integer.

Implements irr::io::IIrrXMLReader< char, irr::io::IXMLBase >.

◆ getAttributeValueSafe()

virtual const char* Assimp::CFIReaderImpl::getAttributeValueSafe ( const char *  name) const
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.

Parameters
nameName of the attribute.
Returns
Value of the attribute, and "" if an attribute with this name does not exist

Implements irr::io::IIrrXMLReader< char, irr::io::IXMLBase >.

◆ getNodeData()

virtual const char* Assimp::CFIReaderImpl::getNodeData ( ) const
inlinevirtual

◆ getNodeName()

virtual const char* Assimp::CFIReaderImpl::getNodeName ( ) const
inlinevirtual

◆ getNodeType()

virtual irr::io::EXML_NODE Assimp::CFIReaderImpl::getNodeType ( ) const
inlinevirtual

◆ getParserFormat()

virtual irr::io::ETEXT_FORMAT Assimp::CFIReaderImpl::getParserFormat ( ) const
inlinevirtual

◆ getSourceFormat()

virtual irr::io::ETEXT_FORMAT Assimp::CFIReaderImpl::getSourceFormat ( ) const
inlinevirtual

◆ isEmptyElement()

virtual bool Assimp::CFIReaderImpl::isEmptyElement ( ) const
inlinevirtual

◆ read()

virtual bool Assimp::CFIReaderImpl::read ( )
inlinevirtual

Reads forward to the next xml node.

Returns
Returns false, if there was no further node.

Implements irr::io::IIrrXMLReader< char, irr::io::IXMLBase >.

◆ registerDecoder()

virtual void Assimp::CFIReaderImpl::registerDecoder ( const std::string &  algorithmUri,
std::unique_ptr< FIDecoder decoder 
)
inlinevirtual

Implements Assimp::FIReader.

◆ registerVocabulary()

virtual void Assimp::CFIReaderImpl::registerVocabulary ( const std::string &  vocabularyUri,
const FIVocabulary vocabulary 
)
inlinevirtual

Implements Assimp::FIReader.


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