Definition at line 1366 of file mainRepository.cpp. References Impala::Persistency::ImageArchiveLocator::GetContainer(), GetImageArchiveSpecialLocator(), GetImageSetLocator(), Impala::CmdOptions::GetInstance(), ILOG_VAR, and Impala::Persistency::ImageArchiveLocator::SetContainer(). Referenced by mainRepository(). 01367 { 01368 ILOG_VAR(Impala.Application.Repository.DoCopyImageArchiveSpecial); 01369 CmdOptions& options = CmdOptions::GetInstance(); 01370 01371 ImageArchiveLocator loc1 = GetImageArchiveSpecialLocator(options, true); 01372 ImageArchiveLocator loc2 = GetImageArchiveSpecialLocator(options, false); 01373 ImageSetLocator imSetLoc = GetImageSetLocator(options, true); 01374 ImageSet* imSet = ImageSetRepository().Get(imSetLoc); 01375 String container = loc1.GetContainer(); 01376 int nrArchives = (container == "ALL") ? imSet->GetNrContainers() : 1; 01377 for (int i=0 ; i<nrArchives ; i++) 01378 { 01379 String cur = (container == "ALL") ? imSet->GetContainer(i) : container; 01380 loc1.SetContainer(cur); 01381 ImageArchive* archive = ImageArchiveRepository().Get(loc1); 01382 loc2.SetContainer(cur); 01383 ImageArchiveRepository().Add(loc2, archive); 01384 delete archive; 01385 } 01386 delete imSet; 01387 }
Here is the call graph for this function: ![]()
|