Definition at line 1535 of file mainRepository.cpp. References Impala::atol(), Impala::CmdOptions::GetArg(), Impala::Persistency::FeatureLocator::GetContainer(), GetFeatureLocator(), Impala::CmdOptions::GetInstance(), Impala::CmdOptions::GetNrArg(), GetRawDataSet(), ILOG_ERROR, ILOG_INFO, ILOG_VAR, Impala::Persistency::FeatureLocator::SetContainer(), and Impala::Core::Table::SetQuidSet(). Referenced by mainRepository(). 01536 { 01537 ILOG_VAR(Impala.Application.Repository.DoSetQuidSetFeatureTable); 01538 CmdOptions& options = CmdOptions::GetInstance(); 01539 01540 int a = 8; 01541 if (options.GetNrArg() < a + 1) 01542 { 01543 ILOG_ERROR("Need at least " << a + 1 << " parameters"); 01544 } 01545 int setId = atol(options.GetArg(a)); 01546 ILOG_INFO("Setting id to " << setId); 01547 01548 FeatureLocator loc = GetFeatureLocator(options, true); 01549 RawDataSet* dataSet = GetRawDataSet(options, true); 01550 String container = loc.GetContainer(); 01551 int nrContainers = (container == "ALL") ? dataSet->GetNrContainers() : 1; 01552 for (int i=0 ; i<nrContainers ; i++) 01553 { 01554 String cur = (container == "ALL") ? dataSet->GetContainer(i) : container; 01555 ILOG_INFO("Doing i=" << i << ", cur=" << cur); 01556 loc.SetContainer(cur); 01557 FeatureTable* tab = FeatureTableRepository().Get(loc); 01558 SetQuidSet(tab, setId); 01559 FeatureTableRepository().Add(loc, tab); // Should be Replace 01560 delete tab; 01561 } 01562 }
Here is the call graph for this function: ![]()
|