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

Impala::Core::VideoJob::ProcessDefinition::ProcessDefinition ( CString  fileName  )  [inline]

Definition at line 28 of file ProcessDefinition.h.

References ILOG_ERROR, ILOG_INFO, mStages, mSteps, StageCount(), and StepCount().

00028                                         : mFileName(fileName)
00029     {
00030         std::vector<String> stepDefinitions;
00031 
00032         File procDefFile(fileName, "r");
00033         if (! procDefFile.Valid())
00034         {
00035             ILOG_ERROR("Failed to open file: " << fileName);
00036             return;
00037         }
00038 
00039         while (! procDefFile.Eof())
00040         {
00041             String line = procDefFile.ReadLine(true);
00042             if (! line.empty())
00043                 stepDefinitions.push_back(line);
00044         }
00045         procDefFile.Close();
00046 
00047         mSteps = new StepScheme(stepDefinitions);
00048         mStages = new StageScheme(*mSteps);
00049         ILOG_INFO("Process definition consists of " 
00050                   << StepCount() << " steps, to be grouped into "
00051                   << StageCount() << " stage(s)");
00052     }

Here is the call graph for this function:


Generated on Thu Jan 13 09:21:41 2011 for ImpalaSrc by  doxygen 1.5.1