Definition at line 529 of file mainRepository.cpp. References Impala::Persistency::ImageArchiveLocator::GetContainer(), GetImageArchiveLocator(), Impala::CmdOptions::GetInstance(), GetVideoSet(), ILOG_VAR, Impala::Persistency::ImageArchiveLocator::SetContainer(), and Impala::Persistency::ImageArchiveLocator::SetQuid(). Referenced by mainRepository(). 00530 { 00531 ILOG_VAR(Impala.Application.Repository.DoCopyImageArchive); 00532 CmdOptions& options = CmdOptions::GetInstance(); 00533 00534 ImageArchiveLocator loc1 = GetImageArchiveLocator(options, true); 00535 ImageArchiveLocator loc2 = GetImageArchiveLocator(options, false); 00536 VideoSet* vidSet = GetVideoSet(options, true); 00537 String container = loc1.GetContainer(); 00538 int nrArchives = (container == "ALL") ? vidSet->NrFiles() : 1; 00539 for (int i=0 ; i<nrArchives ; i++) 00540 { 00541 String cur = (container == "ALL") ? vidSet->GetFile(i) : container; 00542 int v = vidSet->GetFileId(cur); 00543 Quid quid = (v != -1) ? vidSet->GetQuidVideo(v, false) : 0; 00544 loc1.SetContainer(cur); 00545 loc1.SetQuid(quid); 00546 ImageArchive* archive = ImageArchiveRepository().Get(loc1); 00547 loc2.SetContainer(cur); 00548 loc2.SetQuid(quid); 00549 ImageArchiveRepository().Add(loc2, archive); 00550 delete archive; 00551 } 00552 delete vidSet; 00553 }
Here is the call graph for this function:
|