Definition at line 1937 of file mainRepository.cpp. References GetAnnotationTableSetLocator(), Impala::CmdOptions::GetArg(), Impala::CmdOptions::GetInstance(), Impala::CmdOptions::GetNrArg(), ILOG_ERROR, ILOG_INFO, ILOG_VAR, and Impala::Persistency::AnnotationTableSetLocator::SetConceptSet(). Referenced by mainRepository(). 01938 { 01939 ILOG_VAR(Impala.Application.Repository.DoCorrectAnnotationTableSet); 01940 CmdOptions& options = CmdOptions::GetInstance(); 01941 01942 int nrArg = 7; 01943 if (options.GetNrArg() < nrArg) 01944 { 01945 ILOG_ERROR("Need at least " << nrArg << " parameters"); 01946 } 01947 01948 AnnotationTableSetLocator loc = GetAnnotationTableSetLocator(options, true); 01949 AnnotationTableSet* tSet = AnnotationTableSetRepository().Get(loc); 01950 if (tSet == 0) 01951 return; 01952 01953 int a = 5; 01954 String corrSetName = options.GetArg(a++); 01955 String resSetName = options.GetArg(a++); 01956 loc.SetConceptSet(corrSetName); 01957 AnnotationTableSet* corrSet = AnnotationTableSetRepository().Get(loc); 01958 if (corrSet == 0) 01959 return; 01960 01961 tSet->Correct(corrSet); 01962 delete corrSet; 01963 loc.SetConceptSet(resSetName); 01964 ILOG_INFO("Saving result in " << loc); 01965 AnnotationTableSetRepository().Add(loc, tSet); 01966 delete tSet; 01967 }
Here is the call graph for this function: ![]()
|