Definition at line 243 of file mainTable.cpp. 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::TableTem< Col1T, Col2T, Col3T, Col4T, Col5T, Col6T, Col7T, Col8T, Col9T >::Get3(), Impala::Core::Table::TableTem< Col1T, Col2T, Col3T, Col4T, Col5T, Col6T, Col7T, Col8T, Col9T >::Get4(), Impala::CmdOptions::GetArg(), Impala::Util::Database::GetInstance(), Impala::CmdOptions::GetInstance(), Impala::CmdOptions::GetInt(), ILOG_INFO, ILOG_VAR, Impala::Core::Table::Read(), and Impala::Core::Table::Table::Size(). Referenced by mainTable(). 00244 { 00245 typedef Core::VideoSet::StillsBaseType StillsBaseType; 00246 00247 ILOG_VAR(Impala.Application.Table.DoDiffStills); 00248 CmdOptions& options = CmdOptions::GetInstance(); 00249 Util::Database* db = &Util::Database::GetInstance(); 00250 String fName1 = options.GetArg(1); 00251 StillsBaseType table1(0); 00252 Core::Table::Read(&table1, fName1, db); 00253 String fName2 = options.GetArg(2); 00254 StillsBaseType table2(0); 00255 Core::Table::Read(&table2, fName2, db); 00256 if (table1.Size() != table2.Size()) 00257 { 00258 ILOG_INFO("Different table sizes: " << table1.Size() << " vs " 00259 << table2.Size()); 00260 return; 00261 } 00262 int verb = options.GetInt("verb"); 00263 int nDiff = 0; 00264 for (int i=0 ; i<table1.Size() ; i++) 00265 { 00266 if (table1.Get1(i) != table2.Get1(i)) 00267 { 00268 nDiff++; 00269 if (verb) 00270 ILOG_INFO("diff col1 " << i << ": " << table1.Get1(i) 00271 << " vs " << table2.Get1(i)); 00272 } 00273 if (table1.Get2(i) != table2.Get2(i)) 00274 { 00275 nDiff++; 00276 if (verb) 00277 ILOG_INFO("diff col2 " << i << ": " << table1.Get2(i) 00278 << " vs " << table2.Get2(i)); 00279 } 00280 if (table1.Get3(i) != table2.Get3(i)) 00281 { 00282 nDiff++; 00283 if (verb) 00284 ILOG_INFO("diff col3 " << i << ": " << table1.Get3(i) 00285 << " vs " << table2.Get3(i)); 00286 } 00287 if (table1.Get4(i) != table2.Get4(i)) 00288 { 00289 nDiff++; 00290 if (verb) 00291 ILOG_INFO("diff col4 " << i << ": " << table1.Get4(i) 00292 << " vs " << table2.Get4(i)); 00293 } 00294 } 00295 if (nDiff > 0) 00296 ILOG_INFO("Found " << nDiff << " differences"); 00297 }
Here is the call graph for this function:
|