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

void Impala::Core::Feature::FeatureTable::ExportAscii ( Util::IOBuffer buf,
Core::Table::AnnotationTable truth,
bool  printQuid,
bool  printIndex 
) [inline]

Definition at line 340 of file FeatureTable.h.

References Impala::Core::Table::TableTem< Col1T, Col2T, Col3T, Col4T, Col5T, Col6T, Col7T, Col8T, Col9T >::Get1(), Impala::Core::Table::TableTem< Col1T, Col2T, Col3T, Col4T, Col5T, Col6T, Col7T, Col8T, Col9T >::Get2(), Impala::Core::Table::AnnotationTable::IsPositive(), Impala::MakeString(), Impala::Util::IOBuffer::Puts(), Impala::Core::Vector::VectorTem< ElemT >::Size(), Impala::Core::Table::Table::Size(), and Impala::Util::IOBuffer::Valid().

Referenced by WritePlainAsciiFile(), and WriteSvmFile().

00342     {
00343         if (! (buf && buf->Valid()))
00344             return;
00345 
00346         for (int i=0 ; i<Size() ; i++)
00347         {
00348             String s("");
00349             if (printQuid)
00350             {
00351                 Quid quid = Get1(i);
00352                 if (truth == 0)
00353                 {
00354                     s = QuidObj(quid).ToString() + " ";
00355                 }
00356                 else
00357                 {
00358                     s = (truth->IsPositive(quid)) ? "+1 " : "-1 ";
00359                 }
00360             }
00361             ColumnVectorSet::ColElemType v = Get2(i);
00362             for (int j=0 ; j<v.Size() ; j++)
00363             {
00364                 if (printIndex)
00365                     s += MakeString(j+1) + ":";
00366                 s += MakeString(v[j]) + " ";
00367             }
00368             buf->Puts(s);
00369         }
00370     }

Here is the call graph for this function:


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