Definition at line 816 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(). 00817 { 00818 ILOG_VAR(Impala.Application.Repository.DoDumpAnnotationTableSet); 00819 CmdOptions& options = CmdOptions::GetInstance(); 00820 00821 int a = 5; 00822 bool dumpTable = atol(options.GetArg(a++)); 00823 int maxV = -1; 00824 if (options.GetNrArg() > a) 00825 maxV = atol(options.GetArg(a++)); 00826 int maxP = -1; 00827 if (options.GetNrArg() > a) 00828 maxP = atol(options.GetArg(a++)); 00829 int maxN = -1; 00830 if (options.GetNrArg() > a) 00831 maxN = atol(options.GetArg(a++)); 00832 00833 AnnotationTableSetLocator loc = GetAnnotationTableSetLocator(options, true); 00834 AnnotationTableSet* tSet = AnnotationTableSetRepository().Get(loc); 00835 if (tSet == 0) 00836 return; 00837 RawDataSet* dataSet = GetRawDataSet(options, false); 00838 00839 for (int i=0 ; i<tSet->Size() ; i++) 00840 { 00841 AnnotationTable* tab = tSet->GetTable(i); 00842 tab->DumpSummary(); 00843 tab->DumpSummaryObject(); 00844 if (dumpTable) 00845 tab->Dump(dataSet, options.GetInt("start"), options.GetInt("end")); 00846 if (maxV != -1) 00847 { 00848 tab->SelectQuidObjectMaxId(maxV); 00849 tab->SetLabel(tab->GetLabel() + "_maxV_" + MakeString(maxV)); 00850 tab->DumpSummary(); 00851 tab->DumpSummaryObject(); 00852 } 00853 if (maxP != -1) 00854 { 00855 tab->SelectQuidObjectMaxPositive(maxP); 00856 tab->SetLabel(tab->GetLabel() + "_maxP_" + MakeString(maxP)); 00857 tab->DumpSummary(); 00858 tab->DumpSummaryObject(); 00859 } 00860 if (maxN != -1) 00861 { 00862 tab->SelectQuidObjectMaxNegative(maxN); 00863 tab->SetLabel(tab->GetLabel() + "_maxN_" + MakeString(maxN)); 00864 tab->DumpSummary(); 00865 tab->DumpSummaryObject(); 00866 } 00867 } 00868 00869 delete tSet; 00870 if (dataSet) 00871 delete dataSet; 00872 }
Here is the call graph for this function:
|