Changeset 12262
- Timestamp:
- 2006-07-20T11:16:20+12:00 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gsdl/src/colservr/expat_resultset.cpp
r9620 r12262 15 15 #include "text_t.h" 16 16 #include "queryinfo.h" 17 #include "gsdlunicode.h" 17 18 18 19 struct queryresultpack { … … 42 43 text_t element_name = (char*)name; 43 44 45 if (element_name == "Term") { 46 char* term_value_str = get_attribute(attributes, "value"); 47 char* term_frequency_str = get_attribute(attributes, "freq"); 48 49 termfreqclass termfreqobj; 50 termfreqobj.termstr = to_uni(term_value_str); 51 termfreqobj.termfreq = atoi(term_frequency_str); 52 queryresult_ptr->orgterms.push_back(termfreqobj); 53 } 54 44 55 if (element_name=="MatchingDocsInfo") { 45 56 char* num_match_docs_str = get_attribute(attributes,"num"); … … 51 62 } 52 63 else { 53 64 queryresult_ptr->docs_matched = 0; 54 65 } 55 56 66 } 57 67
Note:
See TracChangeset
for help on using the changeset viewer.