MCPcopy Create free account
hub / github.com/assimp/assimp / GetExtensionList

Method GetExtensionList

code/Common/Importer.cpp:1037–1059  ·  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

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

Callers 6

mainFunction · 0.45
TEST_FFunction · 0.45
aiGetExtensionListFunction · 0.45
RegisterLoaderMethod · 0.45
ReadFileMethod · 0.45
GetImporterIndexMethod · 0.45

Calls 4

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

Tested by

no test coverage detected