Assimp
v4.1. (December 2018)
|
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, size_t 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... | |
size_t | ComputeDecodedSizeBase64 (const char *in, size_t inLength) |
Compute decoded size of a Base64-encoded string. More... | |
uint8_t | DecodeBase64 (char ch) |
Decode a single Base64-encoded character. More... | |
size_t | DecodeBase64 (const char *in, size_t inLength, uint8_t *out, size_t maxOutLength) |
Decode a Base64-encoded string. More... | |
void | DOMError (const std::string &message, const Element *element) |
void | DOMError (const std::string &message, const Token &token) |
void | DOMWarning (const std::string &message, const Element *element) |
void | DOMWarning (const std::string &message, const Token &token) |
char | EncodeBase64 (char byte) |
std::string | EncodeBase64 (const char *data, size_t length) |
Encode bytes in base64-encoding. More... | |
void | EncodeByteBlock (const char *bytes, std::string &out_string, size_t string_pos) |
Encodes a block of 4 bytes to base64 encoding. More... | |
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=nullptr) |
const char * | TokenTypeString (TokenType t) |
Get a string representation for a TokenType. More... | |
Variables | |
static const uint8_t | base64DecodeTable [128] |
static const char | to_base64_string [] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/" |
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.
prefix | Message prefix to be preprended to the location info. |
text | Message text |
line | Line index, 1-based |
column | Column index, 1-based |
std::string Assimp::FBX::Util::AddOffset | ( | const std::string & | prefix, |
const std::string & | text, | ||
size_t | offset | ||
) |
Format log/error messages using a given offset in the source binary file.
prefix | Message prefix to be preprended to the location info. |
text | Message text |
line | Line index, 1-based |
column | Column index, 1-based |
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.
prefix | Message prefix to be preprended to the location info. |
text | Message text |
tok | Token where parsing/processing stopped |
size_t Assimp::FBX::Util::ComputeDecodedSizeBase64 | ( | const char * | in, |
size_t | inLength | ||
) |
Compute decoded size of a Base64-encoded string.
in | Characters to decode. |
inLength | Number of characters to decode. |
uint8_t Assimp::FBX::Util::DecodeBase64 | ( | char | ch | ) |
Decode a single Base64-encoded character.
ch | Character to decode (from base64 to binary). |
size_t Assimp::FBX::Util::DecodeBase64 | ( | const char * | in, |
size_t | inLength, | ||
uint8_t * | out, | ||
size_t | maxOutLength | ||
) |
Decode a Base64-encoded string.
in | Characters to decode. |
inLength | Number of characters to decode. |
out | Pointer where we will store the decoded data. |
maxOutLength | Size of output buffer. |
AI_WONT_RETURN void Assimp::FBX::Util::DOMError | ( | const std::string & | message, |
const Element * | element | ||
) |
AI_WONT_RETURN void Assimp::FBX::Util::DOMError | ( | const std::string & | message, |
const Token & | token | ||
) |
void Assimp::FBX::Util::DOMWarning | ( | const std::string & | message, |
const Element * | element | ||
) |
void Assimp::FBX::Util::DOMWarning | ( | const std::string & | message, |
const Token & | token | ||
) |
char Assimp::FBX::Util::EncodeBase64 | ( | char | byte | ) |
std::string Assimp::FBX::Util::EncodeBase64 | ( | const char * | data, |
size_t | length | ||
) |
Encode bytes in base64-encoding.
data | Binary data to encode. |
inLength | Number of bytes to encode. |
void Assimp::FBX::Util::EncodeByteBlock | ( | const char * | bytes, |
std::string & | out_string, | ||
size_t | string_pos | ||
) |
Encodes a block of 4 bytes to base64 encoding.
bytes | Bytes to encode. |
out_string | String to write encoded values to. |
string_pos | Position in out_string. |
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 | ||
) |
|
inline |
const char * Assimp::FBX::Util::TokenTypeString | ( | TokenType | t | ) |
Get a string representation for a TokenType.
|
static |
|
static |