Assimp  v4.1. (December 2018)
ACLoader.cpp File Reference

Macros

#define AI_AC_CHECKED_LOAD_FLOAT_ARRAY(name, name_length, num, out)
 
#define AI_AC_GET_STRING(out)
 
#define AI_AC_SKIP_TO_NEXT_TOKEN()
 

Variables

static const aiImporterDesc desc
 

Macro Definition Documentation

◆ AI_AC_CHECKED_LOAD_FLOAT_ARRAY

#define AI_AC_CHECKED_LOAD_FLOAT_ARRAY (   name,
  name_length,
  num,
  out 
)
Value:
if (name_length) \
{ \
if (strncmp(buffer,name,name_length) || !IsSpace(buffer[name_length])) \
{ \
ASSIMP_LOG_ERROR("AC3D: Unexpexted token. " name " was expected."); \
continue; \
} \
buffer += name_length+1; \
} \
for (unsigned int i = 0; i < num;++i) \
{ \
AI_AC_SKIP_TO_NEXT_TOKEN(); \
buffer = fast_atoreal_move<float>(buffer,((float*)out)[i]); \
}

◆ AI_AC_GET_STRING

#define AI_AC_GET_STRING (   out)
Value:
if (*buffer == '\0') { \
throw DeadlyImportError("AC3D: Unexpected EOF in string"); \
} \
++buffer; \
const char* sz = buffer; \
while ('\"' != *buffer) \
{ \
if (IsLineEnd( *buffer )) \
{ \
ASSIMP_LOG_ERROR("AC3D: Unexpected EOF/EOL in string"); \
out = "ERROR"; \
break; \
} \
++buffer; \
} \
if (IsLineEnd( *buffer ))continue; \
out = std::string(sz,(unsigned int)(buffer-sz)); \
++buffer;

◆ AI_AC_SKIP_TO_NEXT_TOKEN

#define AI_AC_SKIP_TO_NEXT_TOKEN ( )
Value:
if (!SkipSpaces(&buffer)) \
{ \
ASSIMP_LOG_ERROR("AC3D: Unexpected EOF/EOL"); \
continue; \
}

Variable Documentation

◆ desc

const aiImporterDesc desc
static
Initial value:
= {
"AC3D Importer",
"",
"",
"",
0,
0,
0,
0,
"ac acc ac3d"
}
num
static unsigned int num[10][4]
Definition: utSortByPType.cpp:72
Assimp::SkipSpaces
AI_FORCE_INLINE bool SkipSpaces(const char_t *in, const char_t **out)
Definition: ParsingUtils.h:119
Assimp::IsLineEnd
AI_FORCE_INLINE bool IsLineEnd(char_t in)
Definition: ParsingUtils.h:105
testing::internal::string
::std::string string
Definition: gtest-port.h:1097
out
FILE * out
Definition: WriteDumb.cpp:64
glTFCommon::DeadlyImportError
std::runtime_error DeadlyImportError
Definition: glTFCommon.h:95
testing::internal::IsSpace
bool IsSpace(char ch)
Definition: gtest-port.h:2263
AI_AC_SKIP_TO_NEXT_TOKEN
#define AI_AC_SKIP_TO_NEXT_TOKEN()
Definition: ACLoader.cpp:85
Assimp::D3MF::XmlTag::name
static const std::string name
Definition: 3MFXmlTags.h:72
aiImporterFlags_SupportTextFlavour
@ aiImporterFlags_SupportTextFlavour
Indicates that there is a textual encoding of the file format; and that it is supported.
Definition: importerdesc.h:58