Definition at line 1781 of file mainRepository.cpp. References Impala::atol(), GetAnnotationTableSetLocator(), Impala::CmdOptions::GetArg(), Impala::CmdOptions::GetInstance(), Impala::CmdOptions::GetInt(), Impala::CmdOptions::GetNrArg(), GetRawDataSet(), ILOG_VAR, and Impala::MakeString(). Referenced by mainRepository(). 01782 { 01783 ILOG_VAR(Impala.Application.Repository.DoDumpAnnotationTableSet); 01784 CmdOptions& options = CmdOptions::GetInstance(); 01785 01786 int a = 5; 01787 bool dumpTable = atol(options.GetArg(a++)) != 0; 01788 int maxV = -1; 01789 if (options.GetNrArg() > a) 01790 maxV = atol(options.GetArg(a++)); 01791 int maxP = -1; 01792 if (options.GetNrArg() > a) 01793 maxP = atol(options.GetArg(a++)); 01794 int maxN = -1; 01795 if (options.GetNrArg() > a) 01796 maxN = atol(options.GetArg(a++)); 01797 01798 AnnotationTableSetLocator loc = GetAnnotationTableSetLocator(options, true); 01799 AnnotationTableSet* tSet = AnnotationTableSetRepository().Get(loc); 01800 if (tSet == 0) 01801 return; 01802 RawDataSet* dataSet = GetRawDataSet(options, false); 01803 01804 for (int i=0 ; i<tSet->Size() ; i++) 01805 { 01806 AnnotationTable* tab = tSet->GetTable(i); 01807 tab->DumpSummary(); 01808 //tab->DumpSummaryObject(); 01809 if (dumpTable) 01810 tab->Dump(dataSet, options.GetInt("start"), options.GetInt("end")); 01811 if (maxV != -1) 01812 { 01813 tab->SelectQuidObjectMaxId(maxV); 01814 tab->SetLabel(tab->GetLabel() + "_maxV_" + MakeString(maxV)); 01815 tab->DumpSummary(); 01816 tab->DumpSummaryObject(); 01817 } 01818 if (maxP != -1) 01819 { 01820 tab->SelectQuidObjectMaxPositive(maxP); 01821 tab->SetLabel(tab->GetLabel() + "_maxP_" + MakeString(maxP)); 01822 tab->DumpSummary(); 01823 tab->DumpSummaryObject(); 01824 } 01825 if (maxN != -1) 01826 { 01827 tab->SelectQuidObjectMaxNegative(maxN); 01828 tab->SetLabel(tab->GetLabel() + "_maxN_" + MakeString(maxN)); 01829 tab->DumpSummary(); 01830 tab->DumpSummaryObject(); 01831 } 01832 } 01833 01834 delete tSet; 01835 if (dataSet) 01836 delete dataSet; 01837 }
Here is the call graph for this function: ![]()
|