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

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

Definition at line 26 of file StringParser.h.

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

Referenced by Impala::Job::Server::AcceptJobStatus(), Impala::Job::Server::AcceptRequestForStatus(), Impala::Persistency::VideoSetRepositoryInFile::Get(), Impala::Persistency::ImageSetRepositoryInFile::Get(), Impala::Core::VideoSet::Mpeg7DocAudio::GetFractions(), Impala::Core::VideoSet::Mpeg7Doc::GetFractions(), Impala::Persistency::VideoSetsRepository::GetFromFileSystem(), Impala::Persistency::ImageSetsRepository::GetFromFileSystem(), Impala::Core::VideoJob::ServerProxy::GetJobState(), Impala::Core::VideoSet::Mpeg7DocAudio::GetMediaDuration(), Impala::Core::VideoSet::Mpeg7Doc::GetMediaDuration(), Impala::Core::VideoSet::Mpeg7DocAudio::GetMediaTimePoint(), Impala::Core::VideoSet::Mpeg7Doc::GetMediaTimePoint(), Impala::Core::Database::RawDataSet::Init(), Impala::Core::Trec::SearchJudge::Load(), Impala::Core::VideoJob::ServerProxy::MonitorJobState(), Impala::Application::Videolympics::ServerConnector::ParsePoll(), Impala::Application::Videolympics::ServerConnector::ParseStat(), Impala::Core::Trec::TrecTopic::ParseTime(), Impala::Application::SDash::CameraMovementReader::Read(), and Impala::Core::Stream::RgbDataSrcInfo::ReadInfo().

00027     {
00028         SkipWhitespace(delim);
00029         String::size_type end = mText.find(delim, mP);
00030         if ((end == String::npos) && delimRequired)
00031             std::cout << "StringParser::getInt: delim not found" << std::endl;
00032         String iStr = mText.substr(mP, end - mP);
00033         //std::cout << "iStr = " << iStr << std::endl;
00034         if (eatDelim)
00035         {
00036             mP = (end == String::npos) ? mSize : end+1;
00037         }
00038         else
00039         {
00040             mP = (end == String::npos) ? mSize : end;
00041         }
00042         return atoi(iStr);
00043     }

Here is the call graph for this function:


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