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

virtual PositionType Impala::Util::IOBuffer::Seek ( PositionType  offset,
int  whence 
) [inline, virtual]

Definition at line 433 of file IOBuffer.h.

References GetPosition(), SetPosition(), and Size().

Referenced by Impala::Application::DataServer::AcceptRequest(), Impala::Core::Table::Read(), Impala::Sandbox::Koen::ReadPointListFromFile(), Impala::Core::Stream::LavcProtocolImpl::Seek(), Impala::Core::Feature::InterestPointFeature::SetCodebook(), and Impala::Core::Table::Write().

00434     {
00435         if (whence == SEEK_CUR)
00436             SetPosition(GetPosition() + offset);
00437         else if (whence == SEEK_END)
00438             SetPosition(Size() + offset);
00439         else if (whence == SEEK_SET)
00440             SetPosition(offset);
00441         else
00442             return -1;
00443 
00444         return GetPosition();
00445     }

Here is the call graph for this function:


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