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

SegmentationLocator Impala::Application::Repository::GetSegmentationLocator ( CmdOptions &  options,
bool  getSrcLoc 
)

Definition at line 264 of file mainRepository.cpp.

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

Referenced by DoCopySegmentation(), DoDiffSegmentation(), and DoDumpSegmentation().

00265 {
00266     ILOG_VAR(Impala.Application.Repository.GetSegmentationLocator);
00267 
00268     int nrArg = 2;
00269     if (!getSrcLoc)
00270         nrArg++;
00271     if (options.GetNrArg() < nrArg)
00272     {
00273         ILOG_ERROR("Need at least " << nrArg << " parameters");
00274     }
00275 
00276     int a = 1;
00277     String locString = options.GetArg(a++);
00278     String setName = options.GetArg(a++);
00279     if (!getSrcLoc)
00280         locString = options.GetArg(a++);
00281     return SegmentationLocator(locString, setName, "segmentation");
00282 }

Here is the call graph for this function:


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