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

Impala::Core::VideoJob::StepScheme::StepScheme ( const std::vector< String > &  stepStrings  )  [inline]

Definition at line 35 of file StepScheme.h.

References Impala::Core::VideoJob::StepScheme::Step::cmdLineTemplate, Impala::Core::VideoJob::StepScheme::Step::isIndiv, mSteps, Impala::Core::VideoJob::StepScheme::Step::stepNr, Impala::Core::VideoJob::StepScheme::Step::text, and Impala::Core::VideoJob::StepScheme::Step::vidSetArgBeforeVidNrArg.

00036     {
00037         int nrOfSteps = stepStrings.size();
00038         for (int i = 0; i < nrOfSteps; i++)
00039         {
00040             CString stepStr = stepStrings[i];
00041             Step step;
00042             step.stepNr = i;
00043             step.text = stepStr;
00044 
00045             int setPos = stepStr.find("%VIDEO_SET%");
00046             if (setPos < 0)
00047             {
00048                 // a collective step! 
00049                 step.isIndiv = false;
00050                 step.cmdLineTemplate[0] = "";
00051                 step.cmdLineTemplate[1] = "";
00052                 step.cmdLineTemplate[2] = "";
00053             }
00054             else
00055             {
00056                 int nrPos = stepStr.find("%VIDEO_NR%");
00057                 if (nrPos < 0)
00058                 {
00059                     // a collective step
00060                     step.isIndiv = false;
00061                     step.cmdLineTemplate[0] = stepStr.substr(0, setPos);
00062                     step.cmdLineTemplate[1] = stepStr.substr(setPos + 11);
00063                     step.cmdLineTemplate[2] = "";
00064                 }
00065                 else
00066                 {
00067                     // an individual step
00068                     step.isIndiv = true;
00069                     if (setPos < nrPos)
00070                     {
00071                         step.vidSetArgBeforeVidNrArg = true;
00072                         step.cmdLineTemplate[0] = stepStr.substr(0, setPos);
00073                         step.cmdLineTemplate[1] =
00074                             stepStr.substr(setPos + 11, nrPos - (setPos + 11));
00075                         step.cmdLineTemplate[2] = stepStr.substr(nrPos + 10);
00076                     }
00077                     else
00078                     {
00079                         step.vidSetArgBeforeVidNrArg = false;
00080                         step.cmdLineTemplate[0] = stepStr.substr(0, nrPos);
00081                         step.cmdLineTemplate[1] =
00082                             stepStr.substr(nrPos + 10, setPos - (nrPos + 10));
00083                         step.cmdLineTemplate[2] = stepStr.substr(setPos + 11);
00084                     }
00085                 }
00086             }
00087 
00088             mSteps.push_back(step);
00089         }
00090     }


Generated on Fri Mar 19 11:28:06 2010 for ImpalaSrc by  doxygen 1.5.1