Mercurial > hg > nsaunier > traffic-intelligence
comparison c/Parameters.cpp @ 1020:9fb82fe0156f
added quiet tracking mode
| author | Nicolas Saunier <nicolas.saunier@polymtl.ca> |
|---|---|
| date | Tue, 05 Jun 2018 14:33:31 -0400 |
| parents | 6c5ce3ec497e |
| children | 83ca1493d55c |
comparison
equal
deleted
inserted
replaced
| 1019:5d2f6afae35b | 1020:9fb82fe0156f |
|---|---|
| 20 onlyCmdLine.add_options() | 20 onlyCmdLine.add_options() |
| 21 ("help,h", "displays this help message") | 21 ("help,h", "displays this help message") |
| 22 ("tf", "tracks features") | 22 ("tf", "tracks features") |
| 23 ("gf", "groups features") | 23 ("gf", "groups features") |
| 24 ("loading-time", "report feature and object loading times") | 24 ("loading-time", "report feature and object loading times") |
| 25 ("quiet", "mute printing of frame numbers") | |
| 25 ("config-file", po::value<string>(&configurationFilename), "configuration file") | 26 ("config-file", po::value<string>(&configurationFilename), "configuration file") |
| 26 ; | 27 ; |
| 27 | 28 |
| 28 po::positional_options_description p; | 29 po::positional_options_description p; |
| 29 p.add("config-file", 1); | 30 p.add("config-file", 1); |
| 106 parameterDescription = getParameterDescription(cmdLineAndFile, vm); | 107 parameterDescription = getParameterDescription(cmdLineAndFile, vm); |
| 107 | 108 |
| 108 trackFeatures = vm.count("tf")>0; | 109 trackFeatures = vm.count("tf")>0; |
| 109 groupFeatures = vm.count("gf")>0; | 110 groupFeatures = vm.count("gf")>0; |
| 110 loadingTime = vm.count("loading-time")>0; | 111 loadingTime = vm.count("loading-time")>0; |
| 112 quiet = vm.count("quiet")>0; | |
| 111 | 113 |
| 112 if (vm.count("help")) { | 114 if (vm.count("help")) { |
| 113 cout << cmdLine << endl; | 115 cout << cmdLine << endl; |
| 114 // cout << "Positional options:"; | 116 // cout << "Positional options:"; |
| 115 // for (unsigned int i=0; i<p.max_total_count(); i++) | 117 // for (unsigned int i=0; i<p.max_total_count(); i++) |
