#include <CQueryTreeBuilder.h>

Public Member Functions | |
| CQueryTreeNode * | getQueryByID (const string &inID) const |
Definition at line 18 of file CQueryTreeBuilder.h.
| CQueryTreeNode * CQueryContainer::getQueryByID | ( | const string & | inID | ) | const |
Translate an CAlgorithmID to the corresponding CQueryTreeNode
given an ID find the right item in the query tree
Definition at line 104 of file CQueryTreeBuilder.cc.
References my_throw.
00104 { 00105 00106 const_iterator lFound=find(inID); 00107 if(lFound==end()){ 00108 cout << "THROWING UP IN getQueryByID" 00109 << endl; 00110 00111 string lThrowString= 00112 string("Current content of mQueryContainer \n"); 00113 for(const_iterator i=begin(); 00114 i!=end(); 00115 i++){ 00116 lThrowString+=i->first + string(",\n"); 00117 } 00118 lThrowString+=string("\n and we were searching for ")+inID; 00119 // if(size()){ 00120 // cerr << lThrowString << flush << endl; 00121 // return begin()->second; 00122 // } 00123 my_throw(VENotFound(strdup(lThrowString.c_str()))); 00124 return 0; 00125 }else{ 00126 return lFound->second; 00127 } 00128 }
1.5.6