Definition at line 2815 of file mainRepository.cpp. References Impala::CmdOptions::GetArg(), Impala::CmdOptions::GetBool(), Impala::Persistency::KernelMatrixLocator::GetContainer(), Impala::CmdOptions::GetInstance(), GetKernelMatrixLocator(), Impala::CmdOptions::GetNrArg(), GetRawDataSet(), ILOG_INFO, ILOG_VAR, Impala::Persistency::KernelMatrixLocator::SetContainer(), Impala::Persistency::KernelMatrixLocator::SetDoParts(), Impala::Persistency::KernelMatrixLocator::SetWalkType(), and Impala::StringToBool(). Referenced by mainRepository(). 02816 { 02817 ILOG_VAR(Impala.Application.Repository.DoCopyKernelMatrix); 02818 CmdOptions& options = CmdOptions::GetInstance(); 02819 02820 KernelMatrixLocator loc1 = GetKernelMatrixLocator(options, true); 02821 KernelMatrixLocator loc2 = GetKernelMatrixLocator(options, false); 02822 int a = 10; 02823 if (options.GetNrArg() > a) 02824 { 02825 String walkType2 = options.GetArg(a++); 02826 ILOG_INFO("walkType2 = " << walkType2); 02827 loc2.SetWalkType(walkType2); 02828 } 02829 if (options.GetNrArg() > a) 02830 { 02831 bool writeMerged = StringToBool(options.GetArg(a++)); 02832 ILOG_INFO("writeMerged = " << writeMerged); 02833 if (writeMerged) 02834 loc2.SetDoParts(3); 02835 } 02836 RawDataSet* dataSet = GetRawDataSet(options, true); 02837 String container = loc1.GetContainer(); 02838 int nrContainers = (container == "ALL") ? dataSet->GetNrContainers() : 1; 02839 for (int i=0 ; i<nrContainers ; i++) 02840 { 02841 String cur = (container == "ALL") ? dataSet->GetContainer(i) : container; 02842 ILOG_INFO("Checking " << i << " = " << cur); 02843 loc1.SetContainer(cur); 02844 KernelMatrix* mat = KernelMatrixRepository().Get(loc1); 02845 loc2.SetContainer(cur); 02846 if (options.GetBool("sync")) 02847 KernelMatrixRepository().Sync(loc2, mat); 02848 else 02849 KernelMatrixRepository().Add(loc2, mat); 02850 delete mat; 02851 } 02852 }
Here is the call graph for this function: ![]()
|