Definition at line 52 of file AnnotationTableSetRepository.h. References Impala::Core::Table::AnnotationTableSet::Add(), Impala::Persistency::AnnotationTableSetLocator::GetConceptSet(), Impala::Persistency::AnnotationTableSetLocator::GetQuidClass(), and ILOG_ERROR. 00053 { 00054 KeywordListLocator keyListLoc(loc, loc.GetConceptSet()); 00055 KeywordList keyList = *(KeywordListRepository().Get(keyListLoc)); 00056 if (keyList.size() == 0) 00057 { 00058 ILOG_ERROR("Could find keywords"); 00059 return 0; 00060 } 00061 00062 AnnotationTableSet* res = new AnnotationTableSet(); 00063 int nrFound = 0; 00064 AnnotationTableLocator tabLoc(loc, loc.GetQuidClass(), 00065 loc.GetConceptSet(), "dummy"); 00066 for (int i=0 ; i<keyList.size() ; i++) 00067 { 00068 tabLoc.SetKeyword(keyList[i]); 00069 AnnotationTable* table = AnnotationTableRepository().Get(tabLoc); 00070 if (table) 00071 nrFound++; 00072 else 00073 table = new AnnotationTable(keyList[i], 0); 00074 res->Add(table); 00075 } 00076 if (nrFound == 0) 00077 ILOG_ERROR("No tables found"); 00078 return res; 00079 }
Here is the call graph for this function:
|