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

void Impala::Persistency::AnnotationTableSetRepository::Add ( const AnnotationTableSetLocator loc,
AnnotationTableSet tSet 
) [inline]

Definition at line 82 of file AnnotationTableSetRepository.h.

References Exists(), Impala::Persistency::AnnotationTableSetLocator::GetConceptSet(), Impala::Core::Table::AnnotationTableSet::GetLabels(), Impala::Core::Table::AnnotationTable::GetQuidClass(), Impala::Core::Table::AnnotationTableSet::GetTable(), and Impala::Core::Table::AnnotationTableSet::Size().

00083     {
00084         KeywordListLocator keyListLoc(loc, loc.GetConceptSet());
00085         if (!KeywordListRepository().Exists(keyListLoc))
00086         {
00087             KeywordList keys = tSet->GetLabels();
00088             KeywordListRepository().Add(keyListLoc, &keys);
00089         }
00090         for (int i=0 ; i<tSet->Size() ; i++)
00091         {
00092             AnnotationTable* tab = tSet->GetTable(i);
00093             if (tab->Size() == 0)
00094                 continue;
00095             int qClass = tab->GetQuidClass();
00096             //if (qClass != loc.GetQuidClass())
00097             //    ILOG_WARN("Table and Locator have different QuidClass");
00098             AnnotationTableLocator tabLoc(loc, qClass, loc.GetConceptSet(),
00099                                           tab->GetLabel());
00100             AnnotationTableRepository().Add(tabLoc, tab);
00101         }
00102     }

Here is the call graph for this function:


Generated on Fri Mar 19 11:34:39 2010 for ImpalaSrc by  doxygen 1.5.1