Changeset 2619
- Timestamp:
- 2001-07-02T17:19:35+12:00 (23 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gsdl/src/recpt/browseactiontools.cpp
r2612 r2619 99 99 outconvertclass outconvert) 100 100 { 101 101 102 ResultDocInfo_tarray::iterator check = response.docInfo.begin(); 102 103 ResultDocInfo_tarray::iterator done = response.docInfo.end(); 103 104 cout<<"set iterators"<<endl; 104 105 // look through all the returned documents 105 while(check != done){ 106 while(check != response.docInfo.end()){ 107 cout<<"in check loop"<<" end:"<<response.docInfo.end()<<endl; 108 106 109 //if the document doesn't have the metadata item classified on 107 110 //remove it. 108 if(*((*check).metadata.find(metaname)->second).values.begin()=="") 111 cout<<"getting title"<<endl; 112 text_t title = *((*check).metadata.find(metaname)->second).values.begin(); 113 cout<<"got title"<<endl; 114 if(title == "") 109 115 { 110 check = response.docInfo.erase(check); 116 117 response.docInfo.erase(check); 118 111 119 } 112 120 else { 113 check ++; 121 122 check ++; 123 114 124 } 115 125 116 126 } 117 127 return true;
Note:
See TracChangeset
for help on using the changeset viewer.