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