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

FeatureLocator Impala::Application::Repository::GetFeatureLocator ( CmdOptions &  options,
bool  getSrcLoc 
)

Definition at line 558 of file mainRepository.cpp.

References Impala::CmdOptions::GetArg(), Impala::CmdOptions::GetNrArg(), ILOG_ERROR, ILOG_VAR, and Impala::StringToBool().

Referenced by DoCopyFeatureTable(), DoDiffFeatureTable(), and DoDumpFeatureTable().

00559 {
00560     ILOG_VAR(Impala.Application.Repository.GetFeatureLocator);
00561 
00562     int nrArg = 8;
00563     if (!getSrcLoc)
00564         nrArg++;
00565     if (options.GetNrArg() < nrArg)
00566     {
00567         ILOG_ERROR("Need at least " << nrArg << " parameters");
00568     }
00569 
00570     int a = 1;
00571     String locString = options.GetArg(a++);
00572     String setName = options.GetArg(a++);
00573     bool isCodebook = StringToBool(options.GetArg(a++));
00574     bool isIndex = StringToBool(options.GetArg(a++));
00575     String walkType = options.GetArg(a++);
00576     String feature = options.GetArg(a++);
00577     String container = options.GetArg(a++);
00578     if (!getSrcLoc)
00579         locString = options.GetArg(a++);
00580     return FeatureLocator(locString, setName, isCodebook, isIndex, walkType,
00581                           feature, container);
00582 }

Here is the call graph for this function:


Generated on Fri Mar 19 10:47:58 2010 for ImpalaSrc by  doxygen 1.5.1