Definition at line 871 of file mainMonetTest.cpp. References Impala::Util::DatabaseReadString(), Impala::CmdOptions::GetArg(), Impala::Core::Database::RawDataSet::GetDatabase(), Impala::Core::Database::RawDataSet::GetFilePathAnnotation(), Impala::CmdOptions::GetInstance(), Impala::CmdOptions::GetNrArg(), ILOG_ERROR, ILOG_VAR, Impala::Core::Table::KeywordListDiff(), MakeKeywordListMapi(), and Impala::Core::VideoSet::MakeVideoSet(). Referenced by mainMonetTest(). 00872 { 00873 ILOG_VAR(Impala.Samples.MonetTest.DoCheckKeywords); 00874 CmdOptions& options = CmdOptions::GetInstance(); 00875 if (options.GetNrArg() < 6) 00876 { 00877 ILOG_ERROR("Need more parameters"); 00878 return; 00879 } 00880 00881 String vidSetName = options.GetArg(4); 00882 VideoSet* vidSet = Core::VideoSet::MakeVideoSet(vidSetName); 00883 String conceptSet = options.GetArg(5); 00884 String path = vidSet->GetFilePathAnnotation(conceptSet, false, false); 00885 if (path.empty()) 00886 return; 00887 KeywordList concepts; 00888 Util::Database* db = vidSet->GetDatabase(); 00889 Util::DatabaseReadString(std::back_inserter(concepts), path, db, true); 00890 00891 00892 KeywordList concepts2 = MakeKeywordListMapi(vidSetName, conceptSet, conn); 00893 Core::Table::KeywordListDiff(concepts, concepts2); 00894 delete vidSet; 00895 }
Here is the call graph for this function:
|