Ignore:
Timestamp:
24/08/10 11:23:06 (21 months ago)
Author:
Freddie Akeroyd
Message:

Update to tclap 1.2.0 from http://tclap.sourceforge.net/
Refs #244

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/third_party/tclap/ArgException.h

    r857 r1515  
     1// -*- Mode: c++; c-basic-offset: 4; tab-width: 4; -*- 
    12 
    23/******************************************************************************  
     
    7980                const char* what() const throw()  
    8081                { 
    81                         std::string ex = _argId + " -- " + _errorText; 
     82                        static std::string ex;  
     83                        ex = _argId + " -- " + _errorText; 
    8284                        return ex.c_str(); 
    8385                } 
     
    183185}; 
    184186 
     187class ExitException { 
     188public: 
     189        ExitException(int estat) : _estat(estat) {} 
     190 
     191        int getExitStatus() const { return _estat; } 
     192 
     193private: 
     194        int _estat; 
     195}; 
     196 
    185197} // namespace TCLAP 
    186198 
Note: See TracChangeset for help on using the changeset viewer.