12 #include "RoadError.h"
31 const char * RoadError::
34 std::ostringstream RoadError::
47 RoadError(
const RoadError &other)
48 : error_code(other.error_code)
49 , log_event(other.log_event)
50 , error_message(other.error_message)
55 RoadError(
int code,
const std::string &message)
57 , log_event(message.c_str())
58 , error_message(log_event.toString(ROADtag, error_code))
60 log_event.cstr_1= error_message.c_str();
64 RoadError(
int code,
const char *fmt)
71 RoadError(
int code,
const char *fmt,
int d)
78 RoadError(
int code,
const char *fmt,
int d,
int d2)
80 , log_event(fmt, d, d2)
85 RoadError(
int code,
const char *fmt,
int d,
int d2,
float f)
87 , log_event(fmt, d, d2, f)
92 RoadError(
int code,
const char *fmt,
int d,
int d2,
float f,
const char *
s)
94 , log_event(fmt, d, d2, f,
s)
95 , error_message(log_event.toString(ROADtag, code))
99 RoadError(
int code,
const char *fmt,
int d,
int d2,
float f,
const void *x)
101 , log_event(fmt, d, d2, f, x)
106 RoadError(
int code,
const char *fmt,
int d,
int d2,
float f,
int i)
108 , log_event(fmt, d, d2, f, i)
113 RoadError(
int code,
const char *fmt,
int d,
int d2,
float f,
long long i)
115 , log_event(fmt, d, d2, f, i)
120 RoadError(
int code,
const char *fmt,
int d,
int d2,
float f,
double e)
122 , log_event(fmt, d, d2, f, e)
126 RoadError & RoadError::
127 operator=(
const RoadError &other)
129 error_code= other.error_code;
130 error_message= other.error_message;
131 log_event= other.log_event;
136 const char * RoadError::
139 if(error_message.empty()){
140 error_message= log_event.toString(ROADtag, error_code);
142 return error_message.c_str();
151 logErrorLastResort()
const
153 global_log << what() << endl;
std::set< std::string > & s
QhullRidge – Qhull's ridge structure, ridgeT, as a C++ class.