Definition at line 1970 of file mainRepository.cpp. References Impala::atol(), Impala::Core::Table::Copy(), Impala::FileNameBase(), GetAnnotationTableSetLocator(), Impala::CmdOptions::GetArg(), Impala::Persistency::AnnotationTableSetLocator::GetConceptSet(), Impala::CmdOptions::GetInstance(), Impala::CmdOptions::GetNrArg(), ILOG_ERROR, ILOG_INFO, ILOG_VAR, and Impala::Persistency::AnnotationTableSetLocator::SetConceptSet(). Referenced by mainRepository(). 01971 { 01972 ILOG_VAR(Impala.Application.Repository.DoSelectAnnotationTableSet); 01973 CmdOptions& options = CmdOptions::GetInstance(); 01974 01975 int nrArg = 7; 01976 if (options.GetNrArg() < nrArg) 01977 { 01978 ILOG_ERROR("Need at least " << nrArg << " parameters"); 01979 } 01980 01981 AnnotationTableSetLocator loc = GetAnnotationTableSetLocator(options, true); 01982 AnnotationTableSet* tSet = AnnotationTableSetRepository().Get(loc); 01983 if (tSet == 0) 01984 return; 01985 01986 int a = 5; 01987 String concept = options.GetArg(a++); 01988 String iteration = options.GetArg(a++); 01989 AnnotationTable* src = tSet->GetTable(concept); 01990 if (!src) 01991 { 01992 ILOG_ERROR("No annotations for " << concept); 01993 return; 01994 } 01995 01996 std::vector<String> labels; 01997 labels.push_back(concept); 01998 AnnotationTableSet resSet(labels, 0); 01999 AnnotationTable* res = resSet.GetTable(concept); 02000 Copy(res, src); 02001 res->SelectQuidObjectMaxPositive(5 * atol(iteration)); 02002 res->SelectQuidObjectMaxNegative(5 * atol(iteration)); 02003 res->SelectQuidObjectMaxSkip(0); 02004 02005 String resSetName = FileNameBase(loc.GetConceptSet()) + "_" + concept + "_" 02006 + iteration + ".txt"; 02007 loc.SetConceptSet(resSetName); 02008 ILOG_INFO("Saving result in " << loc); 02009 AnnotationTableSetRepository().Add(loc, &resSet); 02010 delete tSet; 02011 }
Here is the call graph for this function: ![]()
|