Definition at line 343 of file mainTable.cpp. References Impala::atol(), Impala::Core::Feature::FeatureTable::Dump(), Impala::CmdOptions::GetArg(), Impala::Core::Database::RawDataSet::GetDatabase(), Impala::Util::Database::GetInstance(), Impala::CmdOptions::GetInstance(), Impala::CmdOptions::GetInt(), Impala::CmdOptions::GetNrArg(), Impala::CmdOptions::GetString(), ILOG_INFO, ILOG_VAR, Impala::Core::ImageSet::MakeImageSet(), Impala::Core::VideoSet::MakeVideoSet(), Impala::Core::Table::Read(), and Impala::Core::Table::Write(). Referenced by mainTable(). 00344 { 00345 ILOG_VAR(Impala.Application.Table.DoDumpFeatureTable); 00346 typedef Core::Feature::FeatureTable FeatureTable; 00347 00348 CmdOptions& options = CmdOptions::GetInstance(); 00349 String fName = options.GetArg(1); 00350 bool doWrite = false; 00351 if (options.GetNrArg() > 2) 00352 doWrite = atol(options.GetArg(2)); 00353 00354 Core::Database::RawDataSet* dataSet = 0; 00355 String setName = options.GetString("videoSet"); 00356 if (! setName.empty()) 00357 dataSet = Core::VideoSet::MakeVideoSet(setName); 00358 setName = options.GetString("imageSet"); 00359 if (! setName.empty()) 00360 dataSet = Core::ImageSet::MakeImageSet(setName); 00361 Util::Database* db = &Util::Database::GetInstance(); 00362 if (dataSet) 00363 db = dataSet->GetDatabase(); 00364 FeatureTable table(fName); 00365 Core::Table::Read(&table, fName, db); 00366 table.Dump(dataSet, options.GetInt("start"), options.GetInt("end")); 00367 if (doWrite) 00368 { 00369 ILOG_INFO("Rewriting " << fName); 00370 Core::Table::Write(&table, fName, db, true); 00371 } 00372 }
Here is the call graph for this function:
|