Main Page | Class Hierarchy | Alphabetical List | Compound List | File List | Compound Members | Related Pages

error.h

00001 
00002 //  Math Type Library
00003 //  $Id: error.h,v 1.2 2002/07/02 03:24:27 cparpart Exp $
00004 //  (This file contains the error specific interface for libmath)
00005 //
00006 //  Copyright (c) 2002 by Christian Parpart <cparpart@surakware.net>
00007 //
00008 //  This library is free software; you can redistribute it and/or
00009 //  modify it under the terms of the GNU Library General Public
00010 //  License as published by the Free Software Foundation; either
00011 //  version 2 of the License, or (at your option) any later version.
00012 //
00013 //  This library is distributed in the hope that it will be useful,
00014 //  but WITHOUT ANY WARRANTY; without even the implied warranty of
00015 //  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00016 //  Library General Public License for more details.
00017 // 
00018 //  You should have received a copy of the GNU Library General Public License
00019 //  along with this library; see the file COPYING.LIB.  If not, write to
00020 //  the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
00021 //  Boston, MA 02111-1307, USA.
00023 #ifndef libmath_error_h
00024 #define libmath_error_h
00025 
00026 #include <string>
00027 
00028 namespace math {
00029 
00034 class EMath {
00035 private:
00036     std::string FReason;
00037 
00038 public:
00039     EMath(const std::string& AReason) : FReason(AReason) {}
00040     
00041     std::string reason() const { return FReason; }
00042 };
00043 
00044 } // namespace math
00045 
00046 #endif

Generated on Mon Aug 4 09:04:05 2003 for MathTypeLibrary(libmath++) by doxygen 1.3.2