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

Method fileNames

src/IECore/FileSequence.cpp:222–238  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

220}
221
222void FileSequence::fileNames( std::vector< std::string > &f ) const
223{
224 f.clear();
225
226 boost::format posFmt = fileNameTemplate( false );
227 boost::format negFmt = fileNameTemplate( true );
228
229 std::vector< FrameList::Frame > frames;
230
231 m_frameList->asList( frames );
232
233 for ( std::vector< FrameList::Frame >::const_iterator it = frames.begin(); it != frames.end(); ++it )
234 {
235 boost::format &fmt = *it < 0 ? negFmt : posFmt ;
236 f.push_back( ( fmt % *it ).str() );
237 }
238}
239
240void FileSequence::clumpedFileNames( unsigned clumpSize, std::vector< std::vector < std::string > > &f ) const
241{

Callers 15

testConstructorMethod · 0.95
testPaddingMethod · 0.95
testSpacesInFilenameMethod · 0.95
testAmbiguousPaddingMethod · 0.95
testMinLengthMethod · 0.95
testMethod · 0.95
testOverlappingMethod · 0.95
testMethod · 0.95

Calls 4

clearMethod · 0.45
asListMethod · 0.45
beginMethod · 0.45
endMethod · 0.45

Tested by 1

testModificationTimeMethod · 0.76