Definition at line 158 of file mainUtil.cpp. References Impala::CmdOptions::GetArg(), Impala::Util::Database::GetInstance(), Impala::CmdOptions::GetInstance(), Impala::CmdOptions::GetNrArg(), ILOG_ERROR, ILOG_VAR, and Impala::Core::Trec::Collection::WriteVideoSet(). Referenced by mainUtil(). 00159 { 00160 ILOG_VAR(Impala.Application.Util.DoTrecSet); 00161 CmdOptions& options = CmdOptions::GetInstance(); 00162 if (options.GetNrArg() < 4) 00163 { 00164 ILOG_ERROR("Need at least 4 arguments"); 00165 return; 00166 } 00167 String setName = options.GetArg(1); 00168 String use = options.GetArg(2); 00169 String collName = options.GetArg(3); 00170 String clipsKeys(""); 00171 if (options.GetNrArg() > 4) 00172 clipsKeys = options.GetArg(4); 00173 #ifndef REPOSITORY_USED // Here comes the deprecated stuff 00174 Core::Trec::Collection coll(collName, &Impala::Util::Database::GetInstance()); 00175 #else // REPOSITORY_USED 00176 Persistency::FileLocator loc(collName); 00177 Core::Trec::Collection coll(loc); 00178 #endif // REPOSITORY_USED 00179 //coll.WriteTo(std::cout); 00180 coll.WriteVideoSet(setName, use, clipsKeys); 00181 }
Here is the call graph for this function:
|