Definition at line 786 of file mainTable.cpp. References Impala::atol(), Impala::CmdOptions::GetArg(), Impala::CmdOptions::GetInstance(), Impala::CmdOptions::GetInt(), Impala::CmdOptions::GetNrArg(), ILOG_ERROR, ILOG_VAR, Impala::Core::Table::AnnotationTableSet::MakeFromFile(), Impala::MakeString(), Impala::Core::VideoSet::MakeVideoSet(), and Impala::StringToQuidClass(). Referenced by mainTable(). 00787 { 00788 typedef Core::Table::AnnotationTableSet AnnotationTableSet; 00789 typedef Core::Table::AnnotationTable AnnotationTable; 00790 00791 ILOG_VAR(Impala.Application.Table.DoDumpAnnotationTableSet); 00792 CmdOptions& options = CmdOptions::GetInstance(); 00793 if (options.GetNrArg() < 5) 00794 { 00795 ILOG_ERROR("Need more arguments"); 00796 return; 00797 } 00798 00799 String setName = options.GetArg(1); 00800 Core::VideoSet::VideoSet* vidSet = Core::VideoSet::MakeVideoSet(setName); 00801 String conceptSet = options.GetArg(2); 00802 String quid = options.GetArg(3); 00803 bool dumpTable = atol(options.GetArg(4)); 00804 int maxV = -1; 00805 if (options.GetNrArg() > 5) 00806 maxV = atol(options.GetArg(5)); 00807 int maxP = -1; 00808 if (options.GetNrArg() > 6) 00809 maxP = atol(options.GetArg(6)); 00810 int maxN = -1; 00811 if (options.GetNrArg() > 7) 00812 maxN = atol(options.GetArg(7)); 00813 00814 AnnotationTableSet* tSet = 00815 Core::Table::AnnotationTableSet::MakeFromFile(vidSet, conceptSet, true, 00816 StringToQuidClass(quid)); 00817 for (int i=0 ; i<tSet->Size() ; i++) 00818 { 00819 AnnotationTable* tab = tSet->GetTable(i); 00820 if (dumpTable) 00821 tab->Dump(vidSet, options.GetInt("start"), options.GetInt("end")); 00822 tab->DumpSummary(); 00823 tab->DumpSummaryObject(); 00824 if (maxV != -1) 00825 { 00826 tab->SelectQuidObjectMaxId(maxV); 00827 tab->SetLabel(tab->GetLabel() + "_maxV_" + MakeString(maxV)); 00828 tab->DumpSummary(); 00829 tab->DumpSummaryObject(); 00830 } 00831 if (maxP != -1) 00832 { 00833 tab->SelectQuidObjectMaxPositive(maxP); 00834 tab->SetLabel(tab->GetLabel() + "_maxP_" + MakeString(maxP)); 00835 tab->DumpSummary(); 00836 tab->DumpSummaryObject(); 00837 } 00838 if (maxN != -1) 00839 { 00840 tab->SelectQuidObjectMaxNegative(maxN); 00841 tab->SetLabel(tab->GetLabel() + "_maxN_" + MakeString(maxN)); 00842 tab->DumpSummary(); 00843 tab->DumpSummaryObject(); 00844 } 00845 } 00846 delete tSet; 00847 }
Here is the call graph for this function:
|