Mercurial > hg > nsaunier > traffic-intelligence
comparison c/Parameters.cpp @ 654:045d05cef9d0
updating to c++11 capabilities
| author | Nicolas Saunier <nicolas.saunier@polymtl.ca> |
|---|---|
| date | Thu, 07 May 2015 16:09:47 +0200 |
| parents | 935430b1d408 |
| children | f7cf43b5ad3b 6c5ce3ec497e |
comparison
equal
deleted
inserted
replaced
| 653:107f1ad02b69 | 654:045d05cef9d0 |
|---|---|
| 16 // configuration filename | 16 // configuration filename |
| 17 onlyCmdLine.add_options() | 17 onlyCmdLine.add_options() |
| 18 ("help,h", "displays this help message") | 18 ("help,h", "displays this help message") |
| 19 ("tf", "tracks features") | 19 ("tf", "tracks features") |
| 20 ("gf", "groups features") | 20 ("gf", "groups features") |
| 21 ("loading-time", "report feature and object loading times") | |
| 21 ("config-file", po::value<string>(&configurationFilename), "configuration file") | 22 ("config-file", po::value<string>(&configurationFilename), "configuration file") |
| 22 ; | 23 ; |
| 23 | 24 |
| 24 po::positional_options_description p; | 25 po::positional_options_description p; |
| 25 p.add("config-file", 1); | 26 p.add("config-file", 1); |
| 100 | 101 |
| 101 parameterDescription = getParameterDescription(cmdLineAndFile, vm); | 102 parameterDescription = getParameterDescription(cmdLineAndFile, vm); |
| 102 | 103 |
| 103 trackFeatures = vm.count("tf")>0; | 104 trackFeatures = vm.count("tf")>0; |
| 104 groupFeatures = vm.count("gf")>0; | 105 groupFeatures = vm.count("gf")>0; |
| 106 loadingTime = vm.count("loading-time")>0; | |
| 105 | 107 |
| 106 if (vm.count("help")) { | 108 if (vm.count("help")) { |
| 107 cout << cmdLine << endl; | 109 cout << cmdLine << endl; |
| 108 // cout << "Positional options:"; | 110 // cout << "Positional options:"; |
| 109 // for (unsigned int i=0; i<p.max_total_count(); i++) | 111 // for (unsigned int i=0; i<p.max_total_count(); i++) |
