| 268 | } |
| 269 | |
| 270 | void FileSequence::mapTo( const FileSequence *other, std::vector< std::pair< std::string, std::string > > &result ) const |
| 271 | { |
| 272 | assert( other ); |
| 273 | result.clear(); |
| 274 | |
| 275 | std::vector< std::string > names, otherNames; |
| 276 | |
| 277 | fileNames( names ); |
| 278 | other->fileNames( otherNames ); |
| 279 | |
| 280 | if ( names.size() != otherNames.size() ) |
| 281 | { |
| 282 | throw InvalidArgumentException( "FileSequence.mapTo() : FileSequence objects contain different numbers of frames." ); |
| 283 | } |
| 284 | |
| 285 | size_t numNames = names.size(); |
| 286 | |
| 287 | result.reserve( numNames ); |
| 288 | for ( size_t i = 0; i < numNames; i++) |
| 289 | { |
| 290 | result.push_back( std::pair< std::string, std::string >( names[i], otherNames[i] ) ); |
| 291 | } |
| 292 | } |
| 293 | |
| 294 | void FileSequence::mapTo( const FileSequence *other, std::map< std::string, std::string > &result ) const |
| 295 | { |
no test coverage detected