Show
Ignore:
Timestamp:
03/21/12 18:36:20 (3 years ago)
Author:
robert
Message:

Ran script to remove trailing spaces and tabs

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • OpenSceneGraph/trunk/include/osg/ArgumentParser

    r11790 r13041  
    1 /* -*-c++-*- OpenSceneGraph - Copyright (C) 1998-2006 Robert Osfield  
     1/* -*-c++-*- OpenSceneGraph - Copyright (C) 1998-2006 Robert Osfield 
    22 * 
    3  * This library is open source and may be redistributed and/or modified under   
    4  * the terms of the OpenSceneGraph Public License (OSGPL) version 0.0 or  
     3 * This library is open source and may be redistributed and/or modified under 
     4 * the terms of the OpenSceneGraph Public License (OSGPL) version 0.0 or 
    55 * (at your option) any later version.  The full license is in LICENSE file 
    66 * included with this distribution, and on the openscenegraph.org website. 
    7  *  
     7 * 
    88 * This library is distributed in the hope that it will be useful, 
    99 * but WITHOUT ANY WARRANTY; without even the implied warranty of 
    10  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the  
     10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the 
    1111 * OpenSceneGraph Public License for more details. 
    1212*/ 
     
    4141                STRING_PARAMETER 
    4242            }; 
    43          
     43 
    4444            union ValueUnion 
    4545            { 
     
    5555 
    5656            Parameter(float& value) { _type = FLOAT_PARAMETER; _value._float = &value; } 
    57                  
     57 
    5858            Parameter(double& value) { _type = DOUBLE_PARAMETER; _value._double = &value; } 
    5959 
     
    6161 
    6262            Parameter(unsigned int& value)  { _type = UNSIGNED_INT_PARAMETER; _value._uint = &value; } 
    63              
     63 
    6464            Parameter(std::string& value) { _type = STRING_PARAMETER; _value._string = &value; } 
    6565 
     
    7272 
    7373        protected: 
    74          
     74 
    7575            ParameterType   _type; 
    7676            ValueUnion      _value; 
     
    8080          * -option or --option. */ 
    8181        static bool isOption(const char* str); 
    82          
     82 
    8383        /** Return true if string is non-NULL and not an option in the form 
    8484          * -option or --option. */ 
    8585        static bool isString(const char* str); 
    86          
     86 
    8787        /** Return true if specified parameter is a number. */ 
    8888        static bool isNumber(const char* str); 
     
    121121          * -option or --option. */ 
    122122        bool isOption(int pos) const; 
    123          
     123 
    124124        /** Return true if the specified parameter is a string not in 
    125125          * the form of an option. */ 
    126126        bool isString(int pos) const; 
    127          
     127 
    128128        /** Return true if the specified parameter is a number. */ 
    129129        bool isNumber(int pos) const; 
    130          
     130 
    131131        bool containsOptions() const; 
    132132 
     
    134134          * and decrement the argc respectively. */ 
    135135        void remove(int pos,int num=1); 
    136          
     136 
    137137        /** Return true if the specified argument matches the given string. */ 
    138138        bool match(int pos, const std::string& str) const; 
     
    181181        /** For each remaining option, report it as unrecognized. */ 
    182182        void reportRemainingOptionsAsUnrecognized(ErrorSeverity severity=BENIGN); 
    183          
     183 
    184184        /** Return the error message, if any has occurred. */ 
    185185        ErrorMessageMap& getErrorMessageMap() { return _errorMessageMap; } 
    186        
     186 
    187187        /** Return the error message, if any has occurred. */ 
    188188        const ErrorMessageMap& getErrorMessageMap() const { return _errorMessageMap; } 
     
    191191        void writeErrorMessages(std::ostream& output,ErrorSeverity sevrity=BENIGN); 
    192192 
    193          
     193 
    194194        /** This convenience method handles help requests on the command line. 
    195195          * Return the type(s) of help requested. The return value of this 
    196196          * function is suitable for passing into getApplicationUsage()->write(). 
    197           * If ApplicationUsage::NO_HELP is returned then no help commandline option  
     197          * If ApplicationUsage::NO_HELP is returned then no help commandline option 
    198198          * was found on the command line. */ 
    199199        ApplicationUsage::Type readHelpType(); 
    200200 
    201    
     201 
    202202  protected: 
    203          
     203 
    204204        int*                            _argc; 
    205205        char**                          _argv; 
    206206        ErrorMessageMap                 _errorMessageMap; 
    207207        ref_ptr<ApplicationUsage>       _usage; 
    208          
     208 
    209209}; 
    210210