CQueryContainer Class Reference

#include <CQueryTreeBuilder.h>

Inheritance diagram for CQueryContainer:

CMagic

List of all members.

Public Member Functions

CQueryTreeNodegetQueryByID (const string &inID) const


Detailed Description

A type helping in the translation from CAlgorithmID to CQuery*

Definition at line 18 of file CQueryTreeBuilder.h.


Member Function Documentation

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 }


The documentation for this class was generated from the following files:

Generated on Wed Jan 7 00:31:14 2009 for Gift by  doxygen 1.5.6