From ce79a6fa1c0db70d075cef7b054263ca1aa6814d Mon Sep 17 00:00:00 2001 From: macbishop Date: Sat, 17 Feb 2007 14:54:00 +0000 Subject: [PATCH] Added exit-exception class --- include/tclap/ArgException.h | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/include/tclap/ArgException.h b/include/tclap/ArgException.h index 51cc266..3411aa9 100644 --- a/include/tclap/ArgException.h +++ b/include/tclap/ArgException.h @@ -1,3 +1,4 @@ +// -*- Mode: c++; c-basic-offset: 4; tab-width: 4; -*- /****************************************************************************** * @@ -183,6 +184,16 @@ class SpecificationException : public ArgException }; +class ExitException { +public: + ExitException(int estat) : _estat(estat) {} + + int getExitStatus() const { return _estat; } + +private: + int _estat; +}; + } // namespace TCLAP #endif