Definition at line 205 of file mainTable.cpp. References Impala::atol(), Impala::CmdOptions::GetArg(), Impala::Core::Feature::FeatureTable::GetFeatureVectorLength(), Impala::Util::Database::GetInstance(), Impala::CmdOptions::GetInstance(), ILOG_VAR, Impala::Util::Read(), Impala::Core::Table::Table::Size(), and Impala::Util::Write(). Referenced by mainTable(). 00206 { 00207 typedef Core::Feature::FeatureDefinition FeatureDef; 00208 typedef Core::Feature::FeatureTable FeatureTable; 00209 00210 ILOG_VAR(Impala.Application.Table.DoAppendFeatureTable); 00211 CmdOptions& options = CmdOptions::GetInstance(); 00212 String dstName = options.GetArg(1); 00213 String srcName = options.GetArg(2); 00214 int nr = atol(options.GetArg(3)); 00215 00216 Util::Database* db = &Util::Database::GetInstance(); 00217 FeatureTable srcTable(srcName); 00218 Core::Table::Read(&srcTable, srcName, db); 00219 00220 FeatureTable dstTable(dstName, nr*srcTable.Size(), 00221 srcTable.GetFeatureVectorLength()); 00222 for (int i=0 ; i<nr ; i++) 00223 dstTable.Append(&srcTable); 00224 00225 Core::Table::Write(&dstTable, dstName, db, true); 00226 }
Here is the call graph for this function: ![]()
|