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

void Impala::Core::Array::SkipEmpty ( Util::IOBuffer *  buf  )  [inline]

Definition at line 16 of file ReadPgm.h.

References Impala::Util::IOBuffer::GetPosition(), ILOG_VAR, Impala::Util::IOBuffer::Read(), Impala::Util::IOBuffer::ReadLine(), and Impala::Util::IOBuffer::SetPosition().

Referenced by ReadPgm().

00016                                         {
00017     ILOG_VAR(Impala.Core.Array.SkipEmpty);
00018    char c;
00019     while(1){
00020         buf->Read(&c,1);
00021         //If it's a linefeed or space character, advance to next
00022         if((c == '\n')||(c == ' '))
00023         {
00024             continue;
00025         }
00026         else
00027         {
00028             //If it's a comment line, go uptill the next line
00029             if(c=='#'){
00030                 String comment=buf->ReadLine();
00031             }
00032             else
00033             {
00034                 break;
00035             }
00036         }
00037     }
00038     buf->SetPosition(buf->GetPosition()-1);
00039 }

Here is the call graph for this function:


Generated on Fri Mar 19 10:58:07 2010 for ImpalaSrc by  doxygen 1.5.1