(file) Return to OptionManager.cpp CVS log (file) (dir) Up to [Pegasus] / pegasus / src / Pegasus / Common / Attic

Diff for /pegasus/src/Pegasus/Common/Attic/OptionManager.cpp between version 1.52 and 1.53

version 1.52, 2006/04/28 18:04:15 version 1.53, 2006/11/10 18:14:58
Line 29 
Line 29 
 // //
 //============================================================================== //==============================================================================
 // //
 // Author: Mike Brasher (mbrasher@bmc.com)  
 //  
 // Modified By: Karl Schopmeyer(k.schopmeyer@opengroup.org)  
 //                 June 2001 - Extend help and print to include help description  
 //                 Feb 2002 - ad IsTrue  
 //              Amit K Arora, IBM (amita@in.ibm.com) for PEP#101  
 //              David Dillard, VERITAS Software Corp.  
 //                  (david.dillard@veritas.com)  
 //  
 //%///////////////////////////////////////////////////////////////////////////// //%/////////////////////////////////////////////////////////////////////////////
  
 #include <cstdlib> #include <cstdlib>
Line 173 
Line 164 
     }     }
 } }
  
 void OptionManager::mergeCommandLine(int& argc, char**& argv, Boolean abortOnErr)  void OptionManager::mergeCommandLine(
       int& argc,
       char**& argv,
       Boolean abortOnErr)
 { {
     for (int i = 0; i < argc; )     for (int i = 0; i < argc; )
     {     {
Line 415 
Line 409 
     return true;     return true;
 } }
  
 Boolean OptionManager::lookupIntegerValue(const String& name, Uint32& value) const  Boolean OptionManager::lookupIntegerValue(
       const String& name,
       Uint32& value) const
 { {
     //ATTN: KS P1 7 May 2002 - Add test for Integer type in om table.     //ATTN: KS P1 7 May 2002 - Add test for Integer type in om table.
     String valueString;     String valueString;
Line 431 
Line 427 
  
 } }
  
 Boolean OptionManager::valueEquals(const String& name, const String& value)  Boolean OptionManager::valueEquals(
     const      const String& name,
       const String& value) const
 { {
     String optionString;     String optionString;
  
     return (lookupValue(name, optionString) && optionString == value) ? true : false;      return (lookupValue(name, optionString) && optionString == value);
 } }
  
 Boolean OptionManager::isTrue(const String& name) const Boolean OptionManager::isTrue(const String& name) const
Line 444 
Line 441 
     //ATTN: KS 7 May 2002 P3 Add test to confirm boolean type     //ATTN: KS 7 May 2002 P3 Add test to confirm boolean type
     return valueEquals(name, "true") ? true: false;     return valueEquals(name, "true") ? true: false;
 } }
   
 /*  ATTN: P3 MB 2001 Buried this one for the moment to think about it. /*  ATTN: P3 MB 2001 Buried this one for the moment to think about it.
 Uint32 OptionManager::isStringInOptionMask(const String& option,  Uint32 OptionManager::isStringInOptionMask(
       const String& option,
                                            const String& entry)                                            const String& entry)
 { {
     String optionString;     String optionString;
Line 496 
Line 495 
  
 } }
  
 void OptionManager::printOptionsHelpTxt(const String& header, const String& trailer) const  void OptionManager::printOptionsHelpTxt(
       const String& header,
       const String& trailer) const
 { {
     cout << "\n" << header << "\n";     cout << "\n" << header << "\n";
     printOptionsHelp();     printOptionsHelp();
Line 645 
Line 646 
 { {
     char buffer[32];     char buffer[32];
     sprintf(buffer, "%d", line);     sprintf(buffer, "%d", line);
          //l10n      MessageLoaderParms parms(
          MessageLoaderParms parms("Common.OptionManager.SYNTAX_ERR_CONFIG_FILE",          "Common.OptionManager.SYNTAX_ERR_CONFIG_FILE",
                                                                          "Syntax error in configuration file: ");                                                                          "Syntax error in configuration file: ");
          String result = MessageLoader::getMessage(parms);          String result = MessageLoader::getMessage(parms);
     //String result = "Syntax error in configuration file: ";  
     result.append(file);     result.append(file);
     result.append("(");     result.append("(");
     result.append(buffer);     result.append(buffer);


Legend:
Removed from v.1.52  
changed lines
  Added in v.1.53

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2