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

void Impala::Application::Util::DoTrecSet (  ) 

Definition at line 210 of file mainUtil.cpp.

References Impala::CmdOptions::GetArg(), Impala::CmdOptions::GetInstance(), Impala::CmdOptions::GetNrArg(), ILOG_ERROR, ILOG_VAR, Impala::StringToBool(), and Impala::Core::Trec::Collection::WriteVideoSet().

Referenced by mainUtil().

00211 {
00212     ILOG_VAR(Impala.Application.Util.DoTrecSet);
00213     CmdOptions& options = CmdOptions::GetInstance();
00214     if (options.GetNrArg() != 6)
00215     {
00216         ILOG_ERROR("Need 6 arguments");
00217         return;
00218     }
00219     String setName = options.GetArg(1);
00220     String use = options.GetArg(2);
00221     String collName = options.GetArg(3);
00222     String clipsKeys = options.GetArg(4);
00223     if (clipsKeys == "nil")
00224         clipsKeys = "";
00225     bool vidSetOnly = StringToBool(options.GetArg(5));
00226     Persistency::FileLocator loc(collName);
00227     Core::Trec::Collection coll(loc);
00228     //coll.WriteTo(std::cout);
00229     Locator setLoc(setName, options);
00230     coll.WriteVideoSet(setLoc, use, clipsKeys, vidSetOnly);
00231 }

Here is the call graph for this function:


Generated on Thu Jan 13 09:16:26 2011 for ImpalaSrc by  doxygen 1.5.1