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

void Impala::Core::Trec::SearchJudge::Load ( String  fileName  )  [inline]

Definition at line 27 of file SearchJudge.h.

References Impala::File::Eof(), Impala::Util::StringParser::GetInt(), Impala::Util::StringParser::GetString(), mJudgeShot, mJudgeTopic, mJudgeValue, mValid, Impala::File::ReadLine(), and Impala::File::Valid().

Referenced by SearchJudge().

00028     {
00029         File f(fileName, "r");
00030         mValid = f.Valid();
00031         if (! mValid)
00032             return;
00033         int nr = 0;
00034         while (! f.Eof())
00035         {
00036             String line = f.ReadLine(true);
00037             if (! line[0])
00038                 continue;
00039             Util::StringParser p(line);
00040             mJudgeTopic.push_back(p.GetString(' '));
00041             int junk = p.GetInt();
00042             mJudgeShot.push_back(p.GetString(' '));
00043             mJudgeValue.push_back(p.GetInt(' ', false));
00044             nr++;
00045         }
00046         std::cout << "done reading " << nr << " qrels" << std::endl;
00047     }

Here is the call graph for this function:


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