Assimp  v3.1.1 (June 2014)
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

#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])) \
{ \
DefaultLogger::get()->error("AC3D: Unexpexted token. " name " was expected."); \
continue; \
} \
buffer += name_length+1; \
} \
for (unsigned int i = 0; i < num;++i) \
{ \
buffer = fast_atoreal_move<float>(buffer,((float*)out)[i]); \
}
static unsigned int num[10][4]
Definition: utSortByPType.cpp:65
const std::string name
Definition: D3MFImporter.cpp:91
FILE * out
Definition: WriteDumb.cpp:62
#define AI_AC_SKIP_TO_NEXT_TOKEN()
Definition: ACLoader.cpp:82
AI_FORCE_INLINE bool IsSpace(char_t in)
Definition: ParsingUtils.h:94
#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 )) \
{ \
DefaultLogger::get()->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_FORCE_INLINE bool IsLineEnd(char_t in)
Definition: ParsingUtils.h:101
FILE * out
Definition: WriteDumb.cpp:62
std::runtime_error DeadlyImportError
Definition: glTFAsset.h:97
#define AI_AC_SKIP_TO_NEXT_TOKEN ( )
Value:
if (!SkipSpaces(&buffer)) \
{ \
DefaultLogger::get()->error("AC3D: Unexpected EOF/EOL"); \
continue; \
}
AI_FORCE_INLINE bool SkipSpaces(const char_t *in, const char_t **out)
Definition: ParsingUtils.h:115

Variable Documentation

const aiImporterDesc desc
static
Initial value:
= {
"AC3D Importer",
"",
"",
"",
0,
0,
0,
0,
"ac acc ac3d"
}
Indicates that there is a textual encoding of the file format; and that it is supported.
Definition: importerdesc.h:55