Assimp  v4.1. (December 2018)
Assimp::Blender::DNAParser Class Reference

Factory to extract a #DNA from the DNA1 file block in a BLEND file. More...

Public Member Functions

 DNAParser (FileDatabase &db)
 Bind the parser to a empty DNA and an input stream. More...
 
const Blender::DNAGetDNA () const
 Obtain a reference to the extracted DNA information. More...
 
void Parse ()
 Locate the DNA in the file and parse it. More...
 

Detailed Description

Factory to extract a #DNA from the DNA1 file block in a BLEND file.

Constructor & Destructor Documentation

◆ DNAParser()

Assimp::Blender::DNAParser::DNAParser ( FileDatabase db)
inline

Bind the parser to a empty DNA and an input stream.

Member Function Documentation

◆ GetDNA()

const Blender::DNA& Assimp::Blender::DNAParser::GetDNA ( ) const
inline

Obtain a reference to the extracted DNA information.

◆ Parse()

void DNAParser::Parse ( )

Locate the DNA in the file and parse it.

The input stream is expected to point to the beginning of the DN1 chunk at the time this method is called and is undefined afterwards.

Exceptions
DeadlyImportErrorif the DNA cannot be read.
Note
The position of the stream pointer is undefined afterwards.

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