Definition at line 982 of file mainRepository.cpp. References Impala::Persistency::SimilarityTableSetLocator::GetContainer(), Impala::CmdOptions::GetInstance(), GetSimilarityTableSetLocator(), GetVideoSet(), ILOG_VAR, and Impala::Persistency::SimilarityTableSetLocator::SetContainer(). Referenced by mainRepository(). 00983 { 00984 ILOG_VAR(Impala.Application.Repository.DoCopySimilarityTableSet); 00985 CmdOptions& options = CmdOptions::GetInstance(); 00986 00987 SimilarityTableSetLocator loc1 = GetSimilarityTableSetLocator(options, true); 00988 SimilarityTableSetLocator loc2 = GetSimilarityTableSetLocator(options, false); 00989 VideoSet* vidSet = GetVideoSet(options, true); 00990 String container = loc1.GetContainer(); 00991 int nrFiles = (container == "ALL") ? vidSet->NrFiles() : 1; 00992 for (int i=0 ; i<nrFiles ; i++) 00993 { 00994 String cur = (container == "ALL") ? vidSet->GetFile(i) : container; 00995 loc1.SetContainer(cur); 00996 SimilarityTableSet* simSet = SimilarityTableSetRepository().Get(loc1); 00997 00998 loc2.SetContainer(cur); 00999 SimilarityTableSetRepository().Add(loc2, simSet); 01000 delete simSet; 01001 } 01002 }
Here is the call graph for this function:
|