Assimp  v3.1.1 (June 2014)
Assimp::FBX::Util Namespace Reference

Classes

struct  delete_fun
 helper for std::for_each to delete all heap-allocated items in a container More...
 

Functions

std::string AddLineAndColumn (const std::string &prefix, const std::string &text, unsigned int line, unsigned int column)
 Format log/error messages using a given line location in the source file. More...
 
std::string AddOffset (const std::string &prefix, const std::string &text, unsigned int offset)
 Format log/error messages using a given offset in the source binary file. More...
 
std::string AddTokenText (const std::string &prefix, const std::string &text, const Token *tok)
 Format log/error messages using a given cursor token. More...
 
void DOMError (const std::string &message, const Token &token)
 
void DOMError (const std::string &message, const Element *element)
 
void DOMWarning (const std::string &message, const Token &token)
 
void DOMWarning (const std::string &message, const Element *element)
 
std::shared_ptr< const PropertyTable > GetPropertyTable (const Document &doc, const std::string &templateName, const Element &element, const Scope &sc, bool no_warn)
 
template<typename T >
const T * ProcessSimpleConnection (const Connection &con, bool is_object_property_conn, const char *name, const Element &element, const char **propNameOut=NULL)
 
const char * TokenTypeString (TokenType t)
 Get a string representation for a TokenType. More...
 

Function Documentation

◆ AddLineAndColumn()

std::string Assimp::FBX::Util::AddLineAndColumn ( const std::string &  prefix,
const std::string &  text,
unsigned int  line,
unsigned int  column 
)

Format log/error messages using a given line location in the source file.

Parameters
prefixMessage prefix to be preprended to the location info.
textMessage text
lineLine index, 1-based
columnColumn index, 1-based
Returns
A string of the following format: {prefix} (line {line}, col {column}) {text}

◆ AddOffset()

std::string Assimp::FBX::Util::AddOffset ( const std::string &  prefix,
const std::string &  text,
unsigned int  offset 
)

Format log/error messages using a given offset in the source binary file.

Parameters
prefixMessage prefix to be preprended to the location info.
textMessage text
lineLine index, 1-based
columnColumn index, 1-based
Returns
A string of the following format: {prefix} (offset 0x{offset}) {text}

◆ AddTokenText()

std::string Assimp::FBX::Util::AddTokenText ( const std::string &  prefix,
const std::string &  text,
const Token tok 
)

Format log/error messages using a given cursor token.

Parameters
prefixMessage prefix to be preprended to the location info.
textMessage text
tokToken where parsing/processing stopped
Returns
A string of the following format: {prefix} ({token-type}, line {line}, col {column}) {text}

◆ DOMError() [1/2]

AI_WONT_RETURN void Assimp::FBX::Util::DOMError ( const std::string &  message,
const Token token 
)

◆ DOMError() [2/2]

AI_WONT_RETURN void Assimp::FBX::Util::DOMError ( const std::string &  message,
const Element element 
)

◆ DOMWarning() [1/2]

void Assimp::FBX::Util::DOMWarning ( const std::string &  message,
const Token token 
)

◆ DOMWarning() [2/2]

void Assimp::FBX::Util::DOMWarning ( const std::string &  message,
const Element element 
)

◆ GetPropertyTable()

std::shared_ptr< const PropertyTable > Assimp::FBX::Util::GetPropertyTable ( const Document doc,
const std::string &  templateName,
const Element element,
const Scope sc,
bool  no_warn 
)

◆ ProcessSimpleConnection()

template<typename T >
const T* Assimp::FBX::Util::ProcessSimpleConnection ( const Connection con,
bool  is_object_property_conn,
const char *  name,
const Element element,
const char **  propNameOut = NULL 
)
inline

◆ TokenTypeString()

const char * Assimp::FBX::Util::TokenTypeString ( TokenType  t)

Get a string representation for a TokenType.