QhullError.h
Go to the documentation of this file.
00001 /****************************************************************************
00002 **
00003 ** Copyright (c) 2008-2011 C.B. Barber. All rights reserved.
00004 ** $Id: //main/2011/qhull/src/libqhullcpp/QhullError.h#3 $$Change: 1356 $
00005 ** $DateTime: 2011/04/03 09:01:22 $$Author: bbarber $
00006 **
00007 ****************************************************************************/
00008 
00009 #ifndef QHULLERROR_H
00010 #define QHULLERROR_H
00011 
00012 #include "road/RoadError.h"
00013 
00014 #include <assert.h>
00015 #include <stdexcept>
00016 #include <string>
00017 
00018 namespace orgQhull {
00019 
00020 #//Types
00021 
00022     class QhullError;
00023 
00024 class QhullError : public RoadError {
00025 
00026 public:
00027 #//Constants
00028     enum {
00029         QHULLfirstError= 10000, //MSG_QHULL_ERROR in Qhull's user.h
00030         QHULLlastError= 10070,
00031         NOthrow= 1 
00032     };
00033 
00034 #//Constructors
00035     // default constructors
00036     QhullError() : RoadError() {};
00037     QhullError(const QhullError &other) : RoadError(other) {}
00038     QhullError(int code, const std::string &message) : RoadError(code, message) {};
00039     QhullError(int code, const char *fmt) : RoadError(code, fmt) {};
00040     QhullError(int code, const char *fmt, int d) : RoadError(code, fmt, d) {};
00041     QhullError(int code, const char *fmt, int d, int d2) : RoadError(code, fmt, d, d2) {};
00042     QhullError(int code, const char *fmt, int d, int d2, float f) : RoadError(code, fmt, d, d2, f) {};
00043     QhullError(int code, const char *fmt, int d, int d2, float f, const char *s) : RoadError(code, fmt, d, d2, f, s) {};
00044     QhullError(int code, const char *fmt, int d, int d2, float f, const void *x) : RoadError(code, fmt, d, d2, f, x) {};
00045     QhullError(int code, const char *fmt, int d, int d2, float f, int i) : RoadError(code, fmt, d, d2, f, i) {};
00046     QhullError(int code, const char *fmt, int d, int d2, float f, long long i) : RoadError(code, fmt, d, d2, f, i) {};
00047     QhullError(int code, const char *fmt, int d, int d2, float f, double e) : RoadError(code, fmt, d, d2, f, e) {};
00048     QhullError &operator=(const QhullError &other) { this->RoadError::operator=(other); return *this; }
00049     ~QhullError() throw() {}
00050 
00051 };//class QhullError
00052 
00053 #ifndef QHULL_1
00054     #define QHULL_ASSERT assert
00055 
00056 #endif
00057 
00058 }//namespace orgQhull
00059 
00060 #//Global functions
00061 
00062 inline std::ostream &operator<<(std::ostream &os, const orgQhull::QhullError &e) { return os << e.what(); }
00063 
00064 #endif // QHULLERROR_H


libqhull-ours
Author(s): Robert Krug
autogenerated on Mon Jan 6 2014 11:32:11