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

void Impala::Application::Repository::DoCopyFeatureTable (  ) 

Definition at line 1487 of file mainRepository.cpp.

References Impala::CmdOptions::GetBool(), Impala::Persistency::FeatureLocator::GetContainer(), GetFeatureLocator(), Impala::CmdOptions::GetInstance(), GetRawDataSet(), ILOG_VAR, and Impala::Persistency::FeatureLocator::SetContainer().

Referenced by mainRepository().

01488 {
01489     ILOG_VAR(Impala.Application.Repository.DoCopyFeatureTable);
01490     CmdOptions& options = CmdOptions::GetInstance();
01491 
01492     FeatureLocator loc1 = GetFeatureLocator(options, true);
01493     FeatureLocator loc2 = GetFeatureLocator(options, false);
01494     RawDataSet* dataSet = GetRawDataSet(options, true);
01495     String container = loc1.GetContainer();
01496     int nrContainers = (container == "ALL") ? dataSet->GetNrContainers() : 1;
01497     for (int i=0 ; i<nrContainers ; i++)
01498     {
01499         String cur = (container == "ALL") ? dataSet->GetContainer(i) : container;
01500         loc1.SetContainer(cur);
01501         FeatureTable* tab = FeatureTableRepository().Get(loc1);
01502         loc2.SetContainer(cur);
01503         if (options.GetBool("sync"))
01504             FeatureTableRepository().Sync(loc2, tab);
01505         else
01506             FeatureTableRepository().Add(loc2, tab);
01507         delete tab;
01508     }
01509 }

Here is the call graph for this function:


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