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

int Impala::Core::Table::KeywordListDiff ( KeywordList &  l1,
KeywordList &  l2 
) [inline]

Definition at line 15 of file KeywordListDiff.h.

References ILOG_DEBUG, ILOG_ERROR, and ILOG_VAR.

Referenced by Impala::Samples::MonetTest::DoCheckKeywords(), and Impala::Application::Repository::DoDiffKeywordList().

00016 {
00017     ILOG_VAR(Impala.Core.Table.KeywordListDiff);
00018 
00019     if (l1.size() != l2.size())
00020     {
00021         ILOG_ERROR("sizes differs: " << l1.size() << " vs " << l2.size());
00022         return 1;
00023     }
00024     int nDiff = 0;
00025     for (int i=0 ; i<l1.size() ; i++)
00026     {
00027         if (l1[i] != l2[i])
00028         {
00029             ILOG_DEBUG("nr " << i << " differs " << l1[i] << " vs " << l2[i]);
00030             nDiff++;
00031         }
00032     }
00033     if (nDiff > 0)
00034         ILOG_ERROR("Found " << nDiff << " differences");
00035     return nDiff;
00036 }


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