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

virtual String Impala::Util::IOBuffer::ReadLine (  )  [inline, virtual]

only for ascii (not binary) entities

Reimplemented in Impala::Util::IOBufferChannel, and Impala::Util::IOBufferFile.

Definition at line 193 of file IOBuffer.h.

References Available(), GetPosition(), mBuffer, and SetPosition().

Referenced by Impala::Core::Geometry::DatabaseReadIxRectangle(), Impala::Util::DatabaseReadString(), Impala::Core::Geometry::DatabaseReadVxRectangle(), Impala::Application::Util::DoDumpParameter(), Impala::Persistency::VideoSetRepositoryInFile::Get(), Impala::Persistency::ImageSetRepositoryInFile::Get(), Impala::Core::Training::Factory::GetBestFileParams(), Impala::Persistency::VideoSetsRepository::GetFromFileSystem(), Impala::Persistency::ImageSetsRepository::GetFromFileSystem(), Impala::Core::VideoSet::ShotSegmenter::HandleNewFile(), Impala::Core::ImageSet::ImageSetRepository::ImageSetRepository(), Impala::Core::Feature::FeatureTable::ImportAscii(), Impala::Core::Database::RawDataSet::Init(), Impala::Core::Feature::LabelSet::Load(), Impala::Core::Training::ApplyConceptsHelperKernels::LoadInfoFile(), Impala::Core::Feature::ConceptSet::MakeFromFile(), Impala::Core::VideoJob::Manager::Prepare(), Impala::Core::Feature::LabelSet::Read(), Impala::Core::Table::Read(), Impala::Core::Column::Read(), Impala::Core::Matrix::DistributedAccess::ReadInfoFile(), Impala::Util::IOBufferFile::ReadLine(), Impala::Core::Array::ReadRaw(), ReadStrings(), Impala::Persistency::File::ReadStrings(), Impala::Core::Array::SkipEmpty(), and Impala::Core::VideoSet::VideoSetRepository::VideoSetRepository().

00194     {
00195         Int64 start = GetPosition();
00196         Int64 i = 0;
00197         Int64 available = Available();
00198         while ((i < available) && (mBuffer[start+i] != '\n'))
00199             i++;
00200         Int64 skipN = (mBuffer[start+i] == '\n') ? 1 : 0;
00201         SetPosition(start + i + skipN);
00202         if (mBuffer[start+i-1] == '\r') // strip '\r' if present
00203             i--;
00204         const char* p = reinterpret_cast<const char*>(mBuffer + start);
00205         return String(p, i);
00206     }

Here is the call graph for this function:


Generated on Fri Mar 19 11:40:07 2010 for ImpalaSrc by  doxygen 1.5.1