Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2024-11-15 09:44:15

0001 /****************************************************************************
0002 **
0003 ** Copyright (c) 2008-2020 C.B. Barber. All rights reserved.
0004 ** $Id: //main/2019/qhull/src/libqhullcpp/QhullError.h#4 $$Change: 2953 $
0005 ** $DateTime: 2020/05/21 22:05:32 $$Author: bbarber $
0006 **
0007 ****************************************************************************/
0008 
0009 #ifndef QHULLERROR_H
0010 #define QHULLERROR_H
0011 
0012 #include "libqhullcpp/RoadError.h"
0013 // No dependencies on libqhull
0014 
0015 #ifndef QHULL_ASSERT
0016 #define QHULL_ASSERT assert
0017 #include <assert.h>
0018 #endif
0019 
0020 namespace orgQhull {
0021 
0022 #//!\name Defined here
0023     //! QhullError -- std::exception class for Qhull
0024     class QhullError;
0025 
0026 class QhullError : public RoadError {
0027 
0028 public:
0029 #//!\name Constants
0030     enum {
0031         QHULLfirstError= 10000, //MSG_QHULL_ERROR in Qhull's user.h
0032         QHULLlastError= 10081,
0033         NOthrow= 1 //! For flag to indexOf()
0034     };
0035 
0036 #//!\name Constructors
0037     // default constructors
0038     QhullError() : RoadError() {}
0039     QhullError(const QhullError &other) : RoadError(other) {}
0040     QhullError(int code, const std::string &message) : RoadError(code, message) {}
0041     QhullError(int code, const char *fmt) : RoadError(code, fmt) {}
0042     QhullError(int code, const char *fmt, int d) : RoadError(code, fmt, d) {}
0043     QhullError(int code, const char *fmt, int d, int d2) : RoadError(code, fmt, d, d2) {}
0044     QhullError(int code, const char *fmt, int d, int d2, float f) : RoadError(code, fmt, d, d2, f) {}
0045     QhullError(int code, const char *fmt, int d, int d2, float f, const char *s) : RoadError(code, fmt, d, d2, f, s) {}
0046     QhullError(int code, const char *fmt, int d, int d2, float f, const void *x) : RoadError(code, fmt, d, d2, f, x) {}
0047     QhullError(int code, const char *fmt, int d, int d2, float f, int i) : RoadError(code, fmt, d, d2, f, i) {}
0048     QhullError(int code, const char *fmt, int d, int d2, float f, long long i) : RoadError(code, fmt, d, d2, f, i) {}
0049     QhullError(int code, const char *fmt, int d, int d2, float f, double e) : RoadError(code, fmt, d, d2, f, e) {}
0050     QhullError &operator=(const QhullError &other) { this->RoadError::operator=(other); return *this; }
0051     ~QhullError() throw() {}
0052 
0053 };//class QhullError
0054 
0055 
0056 }//namespace orgQhull
0057 
0058 #//!\name Global
0059 
0060 inline std::ostream &operator<<(std::ostream &os, const orgQhull::QhullError &e) { return os << e.what(); }
0061 
0062 #endif // QHULLERROR_H