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::Core::Geometry::DatabaseReadVxRectangle(), 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::VideoSet::TestBlocksFile::HandleNewFile(), Impala::Core::VideoSet::ReadBlocksFile::HandleNewFile(), Impala::Core::ImageSet::ImageSetRepository::ImageSetRepository(), Impala::Core::Database::RawDataSet::Init(), Impala::Core::Geometry::InterestRectangleZ::InterestRectangleZ(), 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(), Impala::Core::Stream::RgbDataSrcInfo::ReadInfo(), Impala::Sandbox::Koen::ReadRegionsFromStreamFormatKoen(), and Impala::Core::VideoSet::VideoSetRepository::VideoSetRepository().
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
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: