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

template<class BackInsertIterator>
void Impala::Core::Geometry::FileReadIxRectangle ( BackInsertIterator  bi,
std::string  fileName 
) [inline]

Definition at line 18 of file FileReadIxRectangle.h.

References Impala::Core::Geometry::IxRectangle::mAnno, Impala::Core::Geometry::IxRectangle::mDir, Impala::Core::Geometry::IxRectangle::mExtra, Impala::Core::Geometry::IxRectangle::mImageName, Impala::Core::Geometry::IxRectangle::mRect, and Impala::Core::Geometry::IxRectangle::mSection.

Referenced by Impala::Core::ImageSet::Walker::LoadBookmarks(), and Impala::Core::Table::TableIxs::ReadIxsFile().

00019 {
00020     File f(fileName, "r");
00021     if (! f.Valid())
00022         return;
00023     while (! f.Eof())
00024     {
00025         std::string line = f.ReadLine(true);
00026         if (! line[0])
00027             continue;
00028         Util::StringParser p(line);
00029         IxRectangle vr;
00030         vr.mImageName = p.GetString();
00031         vr.mAnno = p.GetString();
00032         vr.mRect = p.GetRectangle();
00033         vr.mSection = p.GetString();
00034         vr.mDir = p.GetString();
00035         if (! p.TheEnd())
00036             vr.mExtra = p.GetString();
00037         *bi++ = vr;
00038     }
00039 }


Generated on Thu Jan 13 09:19:36 2011 for ImpalaSrc by  doxygen 1.5.1