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

double Impala::Util::StringParser::GetDouble ( char  delim = ' ',
bool  delimRequired = false,
bool  eatDelim = false 
) [inline]

Definition at line 46 of file StringParser.h.

References Impala::atof(), mP, mSize, mText, and SkipWhitespace().

Referenced by Impala::Core::Feature::GetColorChannels(), Impala::Core::Feature::FeatureTable::ImportAscii(), Impala::Core::Feature::InterestPointFeature::InterestPointFeature(), Impala::Core::Feature::WeightedFeatureList::ParseAndAdd(), Impala::Application::Videolympics::ServerConnector::ParsePoll(), Impala::Application::Videolympics::ServerConnector::ParseStat(), Impala::Core::Trec::TrecTopic::ParseTime(), and Impala::Core::Feature::ReadBINDESC1FromBuffer().

00048     {
00049         SkipWhitespace(delim);
00050         String::size_type end = mText.find(delim, mP);
00051         if ((end == String::npos) && delimRequired)
00052             std::cout << "StringParser::getDouble: delim not found" <<std::endl;
00053         String fStr = mText.substr(mP, end - mP);
00054         //std::cout << "fStr = " << fStr << std::endl;
00055         if (eatDelim)
00056         {
00057             mP = (end == String::npos) ? mSize : end+1;
00058         }
00059         else
00060         {
00061             mP = (end == String::npos) ? mSize : end;
00062         }
00063         return atof(fStr);
00064     }

Here is the call graph for this function:


Generated on Thu Jan 13 09:24:22 2011 for ImpalaSrc by  doxygen 1.5.1