Changeset 11347


Ignore:
Timestamp:
07/11/11 16:08:57 (13 years ago)
Author:
tbretz
Message:
Used Vec instead of Get in EvalConfiguration.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/FACT++/src/datalogger.cc

    r11325 r11347  
    25302530    fBlackList.insert("DIS_DNS/");
    25312531
    2532     //set the black list
    2533     if (conf.Has("block"))
    2534     {
    2535         const vector<string> vec = conf.Get<vector<string>>("block");
    2536         fBlackList.insert(vec.begin(), vec.end());
    2537     }
    2538 
    2539     //set the white list
    2540     if (conf.Has("allow"))
    2541     {
    2542         const vector<string> vec = conf.Get<vector<string>>("allow");
    2543         fWhiteList.insert(vec.begin(), vec.end());
    2544     }
    2545 
    2546     //Set the grouping
    2547     if (conf.Has("group"))
    2548     {
    2549         const vector<string> vec = conf.Get<vector<string>>("group");
    2550         fGrouping.insert(vec.begin(), vec.end());
    2551     }
     2532    //set the black list, white list and the goruping
     2533    const vector<string> vec1 = conf.Vec<string>("block");
     2534    const vector<string> vec2 = conf.Vec<string>("allow");
     2535    const vector<string> vec3 = conf.Vec<string>("group");
     2536
     2537    fBlackList.insert(vec1.begin(), vec1.end());
     2538    fWhiteList.insert(vec2.begin(), vec2.end());
     2539    fGrouping.insert( vec3.begin(), vec3.end());
    25522540
    25532541    //set the old run numbers timeout delay
Note: See TracChangeset for help on using the changeset viewer.