Changeset 1374 in 3DVCSoftware for branches/HTM-15.2-dev/source/Lib/TAppCommon/program_options_lite.cpp
- Timestamp:
- 9 Nov 2015, 21:13:05 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HTM-15.2-dev/source/Lib/TAppCommon/program_options_lite.cpp
r1356 r1374 111 111 } 112 112 113 #if NH_MV _SEI113 #if NH_MV 114 114 static void setOptions(Options::NamesPtrList& opt_list, const std::vector<int> idcs, const string& value, ErrorReporter& error_reporter) 115 115 #else … … 121 121 for (Options::NamesPtrList::iterator it = opt_list.begin(); it != opt_list.end(); ++it) 122 122 { 123 #if NH_MV_SEI 123 #if NH_MV 124 124 Bool doParsing = (*it)->opt->checkDim( idcs, error_reporter ); 125 125 if ( doParsing ) … … 127 127 (*it)->opt->parse(value, idcs, error_reporter); 128 128 } 129 130 #else 129 #else 131 130 (*it)->opt->parse(value, error_reporter); 132 131 #endif 133 132 } 134 133 } … … 290 289 bool OptionWriter::storePair(bool allow_long, bool allow_short, const string& name, const string& value) 291 290 { 292 #if NH_MV _SEI291 #if NH_MV 293 292 std::vector<int> idcs; 294 293 … … 324 323 found = true; 325 324 } 326 #if NH_MV _SEI325 #if NH_MV 327 326 if ( idcs.size() > 0 ) 328 327 { … … 347 346 found = true; 348 347 } 349 #if NH_MV _SEI348 #if NH_MV 350 349 if ( idcs.size() > 0 ) 351 350 { … … 362 361 } 363 362 364 #if NH_MV _SEI363 #if NH_MV 365 364 if ( !found_idcs ) 366 365 { … … 370 369 if (!found) 371 370 { 372 #if NH_MV _SEI371 #if NH_MV 373 372 if (error_reporter.output_on_unknow_parameter ) 374 373 { … … 377 376 error_reporter.error(where()) 378 377 << "Unknown option `" << name << "' (value:`" << value << "')\n"; 379 #if NH_MV _SEI378 #if NH_MV 380 379 } 381 380 #endif … … 383 382 } 384 383 385 #if NH_MV _SEI384 #if NH_MV 386 385 setOptions((*opt_it).second, idcs, value, error_reporter); 387 386 #else
Note: See TracChangeset for help on using the changeset viewer.