The XFileParser reads a XFile either in text or binary form and builds a temporary data structure out of it.
More...
The XFileParser reads a XFile either in text or binary form and builds a temporary data structure out of it.
XFileParser::XFileParser |
( |
const std::vector< char > & |
pBuffer | ) |
|
|
explicit |
Constructor.
Creates a data structure out of the XFile given in the memory block.
- Parameters
-
pBuffer | Null-terminated memory buffer containing the XFile |
XFileParser::~XFileParser |
( |
| ) |
|
Destructor.
Destroys all imported data along with it
void XFileParser::CheckForClosingBrace |
( |
| ) |
|
|
protected |
checks for closing curly brace, throws exception if not there
checks for closing curly brace
void XFileParser::CheckForSemicolon |
( |
| ) |
|
|
protected |
checks for one following semicolon, throws exception if not there
checks for one following semicolon
void XFileParser::CheckForSeparator |
( |
| ) |
|
|
protected |
checks for a separator char, either a ',' or a ';'
Filters the imported hierarchy for some degenerated cases that some exporters produce.
- Parameters
-
pData | The sub-hierarchy to filter |
void XFileParser::FindNextNoneWhiteSpace |
( |
| ) |
|
|
protected |
places pointer to next begin of a token, and ignores comments
XFile::Scene* Assimp::XFileParser::GetImportedData |
( |
| ) |
const |
|
inline |
Returns the temporary representation of the imported data.
std::string XFileParser::GetNextToken |
( |
| ) |
|
|
protected |
returns next parseable token. Returns empty string if no token there
void XFileParser::GetNextTokenAsString |
( |
std::string & |
poString | ) |
|
|
protected |
reads a x file style string
void XFileParser::ParseDataObjectAnimationSet |
( |
| ) |
|
|
protected |
void XFileParser::ParseDataObjectAnimTicksPerSecond |
( |
| ) |
|
|
protected |
void XFileParser::ParseDataObjectTemplate |
( |
| ) |
|
|
protected |
void XFileParser::ParseDataObjectTextureFilename |
( |
std::string & |
pName | ) |
|
|
protected |
void XFileParser::ParseDataObjectTransformationMatrix |
( |
aiMatrix4x4 & |
pMatrix | ) |
|
|
protected |
void XFileParser::ParseFile |
( |
| ) |
|
|
protected |
void XFileParser::ParseUnknownDataObject |
( |
| ) |
|
|
protected |
unsigned int XFileParser::ReadBinDWord |
( |
| ) |
|
|
protected |
unsigned short XFileParser::ReadBinWord |
( |
| ) |
|
|
protected |
float XFileParser::ReadFloat |
( |
| ) |
|
|
protected |
void XFileParser::readHeadOfDataObject |
( |
std::string * |
poName = NULL | ) |
|
|
protected |
reads header of dataobject including the opening brace.
returns false if error happened, and writes name of object if there is one
unsigned int XFileParser::ReadInt |
( |
| ) |
|
|
protected |
void XFileParser::ReadUntilEndOfLine |
( |
| ) |
|
|
protected |
void XFileParser::TestForSeparator |
( |
| ) |
|
|
protected |
tests and possibly consumes a separator char, but does nothing if there was no separator
Throws an exception with a line number and the given text.
const char* Assimp::XFileParser::End |
|
protected |
unsigned int Assimp::XFileParser::mBinaryFloatSize |
|
protected |
float size in bytes, either 4 or 8
unsigned int Assimp::XFileParser::mBinaryNumCount |
|
protected |
bool Assimp::XFileParser::mIsBinaryFormat |
|
protected |
true if the file is in binary, false if it's in text form
unsigned int Assimp::XFileParser::mLineNumber |
|
protected |
Line number when reading in text format.
unsigned int Assimp::XFileParser::mMajorVersion |
|
protected |
unsigned int Assimp::XFileParser::mMinorVersion |
|
protected |
const char* Assimp::XFileParser::P |
|
protected |
The documentation for this class was generated from the following files: