File indexing completed on 2024-11-15 09:44:15
0001
0002
0003
0004
0005
0006
0007
0008
0009 #ifndef QHULLERROR_H
0010 #define QHULLERROR_H
0011
0012 #include "libqhullcpp/RoadError.h"
0013
0014
0015 #ifndef QHULL_ASSERT
0016 #define QHULL_ASSERT assert
0017 #include <assert.h>
0018 #endif
0019
0020 namespace orgQhull {
0021
0022 #
0023
0024 class QhullError;
0025
0026 class QhullError : public RoadError {
0027
0028 public:
0029 #
0030 enum {
0031 QHULLfirstError= 10000,
0032 QHULLlastError= 10081,
0033 NOthrow= 1
0034 };
0035
0036 #
0037
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 };
0054
0055
0056 }
0057
0058 #
0059
0060 inline std::ostream &operator<<(std::ostream &os, const orgQhull::QhullError &e) { return os << e.what(); }
0061
0062 #endif