------------------------------------------------------------------------------------------------ Helper function to build a list of all file extensions supported by ASSIMP
| 1043 | // ------------------------------------------------------------------------------------------------ |
| 1044 | // Helper function to build a list of all file extensions supported by ASSIMP |
| 1045 | void 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 |
no test coverage detected