Home || Visual Search || Applications || Architecture || Important Messages || OGL || Src

void Impala::Application::Repository::DoDeleteFeatureTable (  ) 

Definition at line 1512 of file mainRepository.cpp.

References GetFeatureLocator(), Impala::Persistency::FeatureLocator::GetFeatureName(), Impala::CmdOptions::GetInstance(), GetRawDataSet(), and ILOG_VAR.

Referenced by mainRepository().

01513 {
01514     ILOG_VAR(Impala.Application.Repository.DoDeleteFeatureTable);
01515     CmdOptions& options = CmdOptions::GetInstance();
01516 
01517     FeatureLocator loc = GetFeatureLocator(options, true);
01518     if (loc.GetFeatureName() == "ALL") // This is a bit rude, use with care
01519         return FeatureTableRepository().Delete(loc);
01520     RawDataSet* dataSet = GetRawDataSet(options, false);
01521     if (!dataSet)
01522         return;
01523 
01524     String container = loc.GetContainer();
01525     int nrContainers = (container == "ALL") ? dataSet->GetNrContainers() : 1;
01526     for (int i=0 ; i<nrContainers ; i++)
01527     {
01528         String cur = (container == "ALL") ? dataSet->GetContainer(i) : container;
01529         loc.SetContainer(cur);
01530         FeatureTableRepository().Delete(loc);
01531     }
01532 }

Here is the call graph for this function:


Generated on Thu Jan 13 09:15:48 2011 for ImpalaSrc by  doxygen 1.5.1