Ignore:
Timestamp:
2006-06-22T14:37:57+12:00 (18 years ago)
Author:
kjdon
Message:

changed the collection_macros data type to be collectionmeta_map, so get macro_name -> params -> value. This way we can set the value with no params to be the first value we come across, and if we find a genuine no-params value later on, it will overwrite it. collection macros and collection meta no loonger written to the gdbm database

File:
1 edited

Legend:

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

    r10931 r11964  
    15191519      // as of gsdl 2.53, collect.cfg can specify macros
    15201520      if (cinfo.collection_macros.size() > 0) {
    1521     macros_map::const_iterator this_macro=cinfo.collection_macros.begin();
    1522     macros_map::const_iterator done_macro=cinfo.collection_macros.end();
     1521    collectionmeta_map::const_iterator this_macro=cinfo.collection_macros.begin();
     1522    collectionmeta_map::const_iterator done_macro=cinfo.collection_macros.end();
    15231523    while (this_macro != done_macro) {
    15241524      text_t package = "Global";
     
    15371537      }
    15381538
    1539       disp.setcollectionmacro(package,
    1540                   macroname,
    1541                   this_macro->second.first,   // params
    1542                   this_macro->second.second); // value
     1539      text_tmap params_map = this_macro->second;
     1540      text_tmap::const_iterator this_param = params_map.begin();
     1541      text_tmap::const_iterator done_param = params_map.end();
     1542      while (this_param != done_param) {
     1543        disp.setcollectionmacro(package,
     1544                    macroname,
     1545                    this_param->first,
     1546                    this_param->second);
     1547        ++this_param;
     1548      }
     1549     
    15431550      ++this_macro;
    15441551    }
Note: See TracChangeset for help on using the changeset viewer.