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

void Impala::Core::Feature::Read ( WeightedFeatureList *  featList,
Util::IOBuffer *  buf 
)

Definition at line 131 of file WeightedFeatureList.h.

References ILOG_ERROR, ILOG_VAR, Impala::Core::Feature::WeightedFeatureList::ParseAndAdd(), Impala::Util::IOBuffer::ReadStrings(), and Impala::Util::IOBuffer::Valid().

00132 {
00133     ILOG_VAR(Impala.Core.Feature.WeightedFeatureList.Read);
00134     if (! (buf && buf->Valid()))
00135     {
00136         ILOG_ERROR("Invalid IOBuffer");
00137         return;
00138     }
00139 
00140     std::vector<String> lines;
00141     buf->ReadStrings(std::back_inserter(lines), true, -1);
00142     for (int i=0 ; i<lines.size() ; i++)
00143         featList->ParseAndAdd(lines[i]);
00144 }

Here is the call graph for this function:


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