Definition at line 838 of file mainMonetTest.cpp. References Impala::Util::DatabaseReadString(), Impala::FileNameBase(), Impala::CmdOptions::GetArg(), Impala::Core::Database::RawDataSet::GetDatabase(), Impala::Core::Database::RawDataSet::GetFilePathAnnotation(), Impala::CmdOptions::GetInstance(), Impala::CmdOptions::GetNrArg(), Impala::Core::Database::RawDataSet::GetSetNameBase(), ILOG_ERROR, ILOG_INFO, ILOG_VAR, and Impala::Core::VideoSet::MakeVideoSet(). Referenced by mainMonetTest(). 00839 { 00840 ILOG_VAR(Impala.Samples.MonetTest.DoInsertKeywords); 00841 CmdOptions& options = CmdOptions::GetInstance(); 00842 if (options.GetNrArg() < 6) 00843 { 00844 ILOG_ERROR("Need more parameters"); 00845 return; 00846 } 00847 00848 String vidSetName = options.GetArg(4); 00849 VideoSet* vidSet = Core::VideoSet::MakeVideoSet(vidSetName); 00850 String conceptSet = options.GetArg(5); 00851 String path = vidSet->GetFilePathAnnotation(conceptSet, false, false); 00852 if (path.empty()) 00853 return; 00854 KeywordList concepts; 00855 Util::Database* db = vidSet->GetDatabase(); 00856 Util::DatabaseReadString(std::back_inserter(concepts), path, db, true); 00857 00858 String vidSetBase = vidSet->GetSetNameBase(); 00859 String conceptSetBase = FileNameBase(conceptSet); 00860 for (int i=0 ; i<concepts.size() ; i++) 00861 { 00862 String q = "select i_add_keyword('" + vidSetBase + "', '" + 00863 conceptSetBase + "', '" + concepts[i] + "');"; 00864 ILOG_INFO("q = [" + q + "]"); 00865 conn->Query(q, false, false); 00866 } 00867 }
Here is the call graph for this function:
|