MCPcopy Create free account
hub / github.com/ImageEngine/cortex / supportedExtensions

Method supportedExtensions

src/IECoreScene/SceneInterface.cpp:85–101  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

83}
84
85std::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
103SceneInterfacePtr SceneInterface::create( const std::string &path, IndexedIO::OpenMode mode )
104{

Callers

nothing calls this directly

Calls 3

findFunction · 0.85
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected