示例#1
0
 static void setOptions(Options::NamesPtrList& opt_list, const string& value)
 {
   /* multiple options may be registered for the same name:
    *   allow each to parse value */
   for (Options::NamesPtrList::iterator it = opt_list.begin(); it != opt_list.end(); ++it)
   {
     (*it)->opt->parse(value);
   }
 }
    static void setOptions(Options::NamesPtrList& opt_list, const string& value, ErrorReporter& error_reporter)
#endif
    {
      /* multiple options may be registered for the same name:
       *   allow each to parse value */
      for (Options::NamesPtrList::iterator it = opt_list.begin(); it != opt_list.end(); ++it)
      {
#if NH_MV
          Bool doParsing = (*it)->opt->checkDim( idcs, error_reporter ); 
          if ( doParsing )
          {
            (*it)->opt->parse(value, idcs, error_reporter);
          }
#else
        (*it)->opt->parse(value, error_reporter);
#endif
      }
    }