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

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

Definition at line 86 of file AnnotationTableSetRepository.h.

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

Referenced by Replace(), and Sync().

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

Here is the call graph for this function:


Generated on Thu Jan 13 09:22:32 2011 for ImpalaSrc by  doxygen 1.5.1