Definition at line 1080 of file mainRepository.cpp. References Impala::FileNameBase(), Impala::Persistency::Mpeg7DocLocator::GetContainer(), Impala::CmdOptions::GetInstance(), GetMpeg7ShotLocator(), GetVideoSet(), and ILOG_VAR. Referenced by mainRepository(). 01081 { 01082 ILOG_VAR(Impala.Application.Repository.DoDeleteMpeg7Shot); 01083 CmdOptions& options = CmdOptions::GetInstance(); 01084 01085 Mpeg7DocLocator loc = GetMpeg7ShotLocator(options, true); 01086 if (loc.GetContainer() == "ALL") // This is a bit rude, use with care 01087 return Mpeg7DocRepository().Delete(loc); 01088 VideoSet* videoSet = GetVideoSet(options, false); 01089 if (!videoSet) 01090 return; 01091 01092 int nrDocs = videoSet->GetNrContainers(); 01093 for (int i=0 ; i<nrDocs ; i++) 01094 { 01095 String cur = videoSet->GetContainer(i); 01096 loc.SetContainer(cur); 01097 String name = FileNameBase(cur) + ".xml"; 01098 loc.SetName(name); 01099 Mpeg7DocRepository().Delete(loc); 01100 } 01101 delete videoSet; 01102 }
Here is the call graph for this function: ![]()
|