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

Method clumpedFileNames

src/IECore/FileSequence.cpp:240–263  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

238}
239
240void FileSequence::clumpedFileNames( unsigned clumpSize, std::vector< std::vector < std::string > > &f ) const
241{
242 f.clear();
243
244 boost::format posFmt = fileNameTemplate( false );
245 boost::format negFmt = fileNameTemplate( true );
246
247 std::vector< std::vector< FrameList::Frame > > clumpedFrames;
248
249 m_frameList->asClumpedList( clumpedFrames, clumpSize );
250
251 for ( std::vector< std::vector< FrameList::Frame > >::const_iterator it = clumpedFrames.begin(); it != clumpedFrames.end(); ++it )
252 {
253 const std::vector< FrameList::Frame > &clump = *it;
254
255 f.push_back( std::vector< std::string >() );
256
257 for ( std::vector< FrameList::Frame > ::const_iterator cit = clump.begin(); cit != clump.end(); ++cit )
258 {
259 boost::format &fmt = *cit < 0 ? negFmt : posFmt ;
260 f.back().push_back( ( fmt % *cit ).str() );
261 }
262 }
263}
264
265FileSequencePtr FileSequence::copy() const
266{

Callers 1

testClumpingMethod · 0.95

Calls 4

clearMethod · 0.45
asClumpedListMethod · 0.45
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected