| 83 | } |
| 84 | |
| 85 | std::vector<std::string> SceneInterface::supportedExtensions( IndexedIO::OpenMode modes ) |
| 86 | { |
| 87 | std::vector<std::string> extensions; |
| 88 | CreatorMap &m = fileCreators(); |
| 89 | for( CreatorMap::const_iterator it=m.begin(); it!=m.end(); it++ ) |
| 90 | { |
| 91 | if ( it->first.second & modes ) |
| 92 | { |
| 93 | std::string ext = it->first.first.substr( 1 ); |
| 94 | if ( std::find(extensions.begin(), extensions.end(), ext) == extensions.end() ) |
| 95 | { |
| 96 | extensions.push_back( ext ); |
| 97 | } |
| 98 | } |
| 99 | } |
| 100 | return extensions; |
| 101 | } |
| 102 | |
| 103 | SceneInterfacePtr SceneInterface::create( const std::string &path, IndexedIO::OpenMode mode ) |
| 104 | { |