MCPcopy Create free account
hub / github.com/TorqueGameEngines/Torque3D / GetExtensionList

Method GetExtensionList

Engine/lib/assimp/code/Common/Importer.cpp:1045–1067  ·  view source on GitHub ↗

------------------------------------------------------------------------------------------------ Helper function to build a list of all file extensions supported by ASSIMP

Source from the content-addressed store, hash-verified

1043// ------------------------------------------------------------------------------------------------
1044// Helper function to build a list of all file extensions supported by ASSIMP
1045void Importer::GetExtensionList(aiString& szOut) const {
1046 ai_assert(nullptr != pimpl);
1047
1048 ASSIMP_BEGIN_EXCEPTION_REGION();
1049 std::set<std::string> str;
1050 for (std::vector<BaseImporter*>::const_iterator i = pimpl->mImporter.begin();i != pimpl->mImporter.end();++i) {
1051 (*i)->GetExtensionList(str);
1052 }
1053
1054 // List can be empty
1055 if( !str.empty() ) {
1056 for (std::set<std::string>::const_iterator it = str.begin();; ) {
1057 szOut.Append("*.");
1058 szOut.Append((*it).c_str());
1059
1060 if (++it == str.end()) {
1061 break;
1062 }
1063 szOut.Append(";");
1064 }
1065 }
1066 ASSIMP_END_EXCEPTION_REGION(void);
1067}
1068
1069// ------------------------------------------------------------------------------------------------
1070// Set a configuration property

Callers 4

aiGetExtensionListFunction · 0.45
RegisterLoaderMethod · 0.45
ReadFileMethod · 0.45
GetImporterIndexMethod · 0.45

Calls 5

beginMethod · 0.45
endMethod · 0.45
emptyMethod · 0.45
AppendMethod · 0.45
c_strMethod · 0.45

Tested by

no test coverage detected