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

Method listToEntryIds

src/IECorePython/IndexedIOBinding.cpp:72–84  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

70struct IndexedIOHelper
71{
72 static void listToEntryIds( const list &path, IndexedIO::EntryIDList &entries )
73 {
74 int rootLen = IECorePython::len( path );
75 for (int i = 0; i < rootLen; i++ )
76 {
77 extract< std::string > ex( path[i] );
78 if ( !ex.check() )
79 {
80 throw InvalidArgumentException( std::string( "Invalid root! Should be a list of strings!" ) );
81 }
82 entries.push_back( ex() );
83 }
84 }
85
86 static list entryIDsToList( const IndexedIO::EntryIDList &l )
87 {

Callers

nothing calls this directly

Calls 3

InvalidArgumentExceptionFunction · 0.85
lenFunction · 0.70
checkMethod · 0.45

Tested by

no test coverage detected