Changeset 16126
- Timestamp:
- 2008-06-24T16:46:29+12:00 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
gsdl/trunk/src/recpt/dynamicclassifieraction.cpp
r16123 r16126 200 200 // args["dcn"] may have been modified by output_hlist_classifier_nodes() above 201 201 text_t classifier_node_OID = args["dcn"]; 202 logout << "Classifier node OID: " << classifier_node_OID << endl; 203 204 // Split the classifier node OID into its components, then remove any we've already dealt with 205 text_tlist classifier_node_OID_parts_remaining; 206 splitchar(classifier_node_OID.begin(), classifier_node_OID.end(), '|', classifier_node_OID_parts_remaining); 207 if (classifier_options["-group_by_first_character"] == "1") 208 { 209 classifier_node_OID_parts_remaining.pop_front(); 210 } 211 if (classifier_options["-use_hlist_at_top"] == "1") 212 { 213 classifier_node_OID_parts_remaining.pop_front(); 214 } 202 215 203 216 // Simple case at the top level: just output the child classifier nodes … … 217 230 } 218 231 219 // This is the classifier node OID without any hlist nodes220 text_t classifier_node_OID_sans_hlists = classifier_node_OID;221 if (classifier_node_OID == selected_hlist_node_OID)222 {223 classifier_node_OID_sans_hlists = "";224 }225 else if (starts_with (classifier_node_OID, selected_hlist_node_OID + "|"))226 {227 classifier_node_OID_sans_hlists = substr (classifier_node_OID.begin() + (selected_hlist_node_OID + "|").size(), classifier_node_OID.end());228 }229 230 // Determine the parent classifier node labels231 text_tlist parent_classifier_node_labels;232 splitchar(classifier_node_OID_sans_hlists.begin(), classifier_node_OID_sans_hlists.end(), '|', parent_classifier_node_labels);233 234 232 // Output the parent classifier nodes and the current classifier node 235 output_upper_classifier_nodes ( selected_hlist_node_OID, parent_classifier_node_labels, classifier_node_indent, classifier_options, args, collectproto, browsers, disp, outconvert, textout, logout);233 output_upper_classifier_nodes (current_classifier_node_OID, classifier_node_OID_parts_remaining, classifier_node_indent, classifier_options, args, collectproto, browsers, disp, outconvert, textout, logout); 236 234 237 235 // Output the child classifier nodes
Note:
See TracChangeset
for help on using the changeset viewer.