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

void Impala::Core::Column::Read ( ColumnTem< Geometry::Rectangle > *  col,
String  fileName,
Util::Database *  db 
) [inline]

Definition at line 203 of file Read.h.

References Impala::Core::Column::ColumnTem< ElemT >::GetData(), ILOG_ERROR, ILOG_VAR, and Impala::Core::Column::ColumnTem< ElemT >::Reserve().

00204 {
00205     ILOG_VAR(Impala.Core.Column.Read);
00206     std::ifstream f(fileName.c_str());
00207     if (!f.is_open())
00208         return;
00209     String s1,s2,s3;
00210     f >> s1 >> s2 >> s3;
00211     if (s1 == "nr" && s2 == "rects" && s3 == ":")
00212     {
00213         int nrElem;
00214         f >> nrElem;
00215         col->Reserve(nrElem, false);
00216         Geometry::Rectangle* data = col->GetData();
00217         for (int i=0 ; i<nrElem ; i++)
00218             f >> data[i];
00219     }
00220     else
00221     {
00222         ILOG_ERROR("Parsing error in " << fileName);
00223     }
00224     f.close();
00225 }

Here is the call graph for this function:


Generated on Thu Jan 13 09:18:49 2011 for ImpalaSrc by  doxygen 1.5.1