Home || Visual Search || Applications || Architecture || Important Messages || OGL || Src

void Impala::Application::IDo::CleanAverages ( CString  kernel  )  [inline]

Definition at line 2305 of file mainIDo.cpp.

References Impala::Core::Feature::WeightedFeatureList::GetFeature(), ILOG_INFO, mLocation, mSetName, Impala::Util::Read(), Impala::Persistency::RepositoryGetFile(), ResolveExports(), and Impala::Core::Feature::WeightedFeatureList::Size().

Referenced by HandleCmd().

02306     {
02307         ILOG_INFO("Cleaning averages");
02308         String iniFile = "${IMPALAROOT}/src/script/" + kernel + ".ini";
02309         String fileName = ResolveExports(iniFile);
02310         Persistency::File file = Persistency::RepositoryGetFile(fileName, false,
02311                                                                 false);
02312         Core::Feature::WeightedFeatureList fList;
02313         Read(&fList, file);
02314         for (int i=0 ; i<fList.Size() ; i++)
02315         {
02316             Persistency::FeatureLocator fLoc(mLocation, mSetName, false, true,
02317                                              "", fList.GetFeature(i), "");
02318             fLoc.SetSuffix(".average.raw");
02319             std::cout << "hack: deleting average " << fLoc << std::endl;
02320             Persistency::FeatureTableRepository().Delete(fLoc);
02321         }
02322     }

Here is the call graph for this function:


Generated on Thu Jan 13 09:14:27 2011 for ImpalaSrc by  doxygen 1.5.1