Definition at line 242 of file PropertySet.h. References Impala::Util::PropertySet::Add(), Append(), ILOG_ERROR, ILOG_FUNCTION, Impala::Util::IOBuffer::ReadLine(), and Impala::Util::IOBuffer::Valid(). Referenced by Read(). 00243 { 00244 ILOG_FUNCTION(Impala.Util.PropertySet.Read); 00245 if (buf == 0 || !buf->Valid()) 00246 { 00247 ILOG_ERROR("Invalid io buffer"); 00248 return; 00249 } 00250 String line = buf->ReadLine(); 00251 if (line.find(':', 0) != String::npos) 00252 { 00253 // old style best file 00254 StringParser p(line); 00255 String s = p.GetString(':', true); 00256 if (s != "value") 00257 { 00258 ILOG_ERROR("Parse error in bestfile: "<< s <<" unexpected"); 00259 return; 00260 } 00261 props->Add("value", p.GetDouble()); 00262 line = buf->ReadLine(); 00263 } 00264 00265 // read normal propertyset; assume all is on one line 00266 PropertySet readProps(line); 00267 Append(props, &readProps); 00268 }
Here is the call graph for this function: ![]()
|