Changeset 10222


Ignore:
Timestamp:
Mar 3, 2011, 7:31:38 PM (9 years ago)
Author:
tbretz
Message:
Adapted to changed in Configuration class
File:
1 edited

Legend:

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

    r10183 r10222  
    44
    55using namespace std;
    6 
    7 const string name_mapper(const string &str)
    8 {
    9     if (str=="LINUX")           return "linux";
    10     if (str=="PATH")            return "path";
    11     if (str=="DIM_DNS_SERVER")  return "dns";
    12 
    13     return "";
    14 }
    156
    167// --------------------------------------------------------------------------
     
    118109        ;
    119110
     111    conf.AddEnv("linux", "LINUX");
     112    conf.AddEnv("path",  "PATH");
     113    conf.AddEnv("dns",   "DIM_DNS_SERVER");
    120114
    121115    // define translation from position to name
     
    125119    p.add("input-file", -1); // All others go to...
    126120
    127 
    128121    conf.AddOptionsCommandline(config);
    129122    conf.AddOptionsCommandline(sections);
     
    139132
    140133    conf.SetArgumentPositions(p);
    141 
    142     conf.SetNameMapper(name_mapper);
    143134}
    144135
Note: See TracChangeset for help on using the changeset viewer.