| 238 | } |
| 239 | |
| 240 | void 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 | |
| 265 | FileSequencePtr FileSequence::copy() const |
| 266 | { |
no test coverage detected