Changeset 16032 for gsdl


Ignore:
Timestamp:
2008-06-17T13:14:23+12:00 (16 years ago)
Author:
mdewsnip
Message:

(Adding dynamic classifiers) Added a new "parse_classifier_options" function in preparation for allowing classifier options to be specified in the collect.cfg file.

Location:
gsdl/trunk/src/recpt
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • gsdl/trunk/src/recpt/dynamicclassifieraction.cpp

    r16028 r16032  
    151151  // Parse the classifier options from the specification
    152152  text_t classifier_specification = cinfo->dynamic_classifiers[arg_dcl];
    153   text_tmap classifier_options;
    154 
    155   // The metadata element to classify by should be left after all the options have been parsed off
    156   classifier_options["metadata_element_name"] = classifier_specification;
    157   classifier_options["current_position"] = args["dcn"];
     153  text_tmap classifier_options = parse_classifier_options (classifier_specification, args);
    158154
    159155  // Output the "<ID>Header" format statement if there is one
     
    181177  textout << outconvert << disp << "_dynamicclassifier:footer_\n";
    182178  return true;
     179}
     180
     181
     182text_tmap dynamicclassifieraction::parse_classifier_options (text_t classifier_specification, cgiargsclass &args)
     183{
     184  text_tmap classifier_options;
     185
     186  // The metadata element to classify by should be left after all the options have been parsed off
     187  classifier_options["metadata_element_name"] = classifier_specification;
     188  classifier_options["current_position"] = args["dcn"];
     189
     190  return classifier_options;
    183191}
    184192
  • gsdl/trunk/src/recpt/dynamicclassifieraction.h

    r16007 r16032  
    6363          ostream &logout);
    6464
     65  text_tmap parse_classifier_options (text_t classifier_specification, cgiargsclass &args);
     66
    6567  void output_top_level_page (text_tmap classifier_options, cgiargsclass &args,
    6668                  recptproto *collectproto, browsermapclass *browsers,
Note: See TracChangeset for help on using the changeset viewer.