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

Method supportedExtensions

src/IECore/Reader.cpp:127–142  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

125}
126
127void Reader::supportedExtensions( std::vector<std::string> &extensions )
128{
129 extensions.clear();
130 ExtensionsToFnsMap *m = extensionsToFns();
131 assert( m );
132
133 std::set<std::string> uniqueExtensions;
134
135 for( ExtensionsToFnsMap::const_iterator it=m->begin(); it!=m->end(); it++ )
136 {
137 uniqueExtensions.insert( it->first.substr( 1 ) );
138 }
139
140 extensions.resize( uniqueExtensions.size() );
141 std::copy( uniqueExtensions.begin(), uniqueExtensions.end(), extensions.begin() );
142}
143
144void Reader::supportedExtensions( TypeId typeId, std::vector<std::string> &extensions )
145{

Callers

nothing calls this directly

Calls 9

derivedTypeIdsFunction · 0.85
findFunction · 0.85
insertMethod · 0.80
copyFunction · 0.70
clearMethod · 0.45
beginMethod · 0.45
endMethod · 0.45
resizeMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected