List of all members
orgQhull::RoadError Class Reference

#include <RoadError.h>

Inheritance diagram for orgQhull::RoadError:
Inheritance graph
[legend]

Public Member Functions

Constructors
 RoadError ()
 
 RoadError (const RoadError &other)
 
 RoadError (int code, const std::string &message)
 Called on throw, generates error_message. More...
 
 RoadError (int code, const char *fmt)
 
 RoadError (int code, const char *fmt, int d)
 
 RoadError (int code, const char *fmt, int d, int d2)
 
 RoadError (int code, const char *fmt, int d, int d2, float f)
 
 RoadError (int code, const char *fmt, int d, int d2, float f, const char *s)
 
 RoadError (int code, const char *fmt, int d, int d2, float f, const void *x)
 
 RoadError (int code, const char *fmt, int d, int d2, float f, int i)
 
 RoadError (int code, const char *fmt, int d, int d2, float f, long long i)
 
 RoadError (int code, const char *fmt, int d, int d2, float f, double e)
 
RoadErroroperator= (const RoadError &other)
 
 ~RoadError () throw ()
 
Virtual
virtual const char * what () const throw ()
 
GetSet
bool isValid () const
 
int errorCode () const
 
RoadLogEvent roadLogEvent () const
 
Update
void logErrorLastResort () const
 

Static Public Member Functions

Class methods
static void clearGlobalLog ()
 
static bool emptyGlobalLog ()
 
static const char * stringGlobalLog ()
 

Private Attributes

Fields
int error_code
 
RoadLogEvent log_event
 Non-zero code (not logged), maybe returned as program status. More...
 
std::string error_message
 Format string w/ arguments. More...
 

Static Private Attributes

Class fields

Formated error message. Must be after log_event.

static const char * ROADtag = "QH"
 
static std::ostringstream global_log
 Not reentrant – only used by RoadError::logErrorLastResort() More...
 

Detailed Description

Definition at line 32 of file RoadError.h.

Constructor & Destructor Documentation

◆ RoadError() [1/12]

orgQhull::RoadError::RoadError ( )

Definition at line 40 of file RoadError.cpp.

◆ RoadError() [2/12]

orgQhull::RoadError::RoadError ( const RoadError other)

Definition at line 47 of file RoadError.cpp.

◆ RoadError() [3/12]

orgQhull::RoadError::RoadError ( int  code,
const std::string &  message 
)

Called on throw, generates error_message.

Definition at line 55 of file RoadError.cpp.

◆ RoadError() [4/12]

orgQhull::RoadError::RoadError ( int  code,
const char *  fmt 
)

Definition at line 64 of file RoadError.cpp.

◆ RoadError() [5/12]

orgQhull::RoadError::RoadError ( int  code,
const char *  fmt,
int  d 
)

Definition at line 71 of file RoadError.cpp.

◆ RoadError() [6/12]

orgQhull::RoadError::RoadError ( int  code,
const char *  fmt,
int  d,
int  d2 
)

Definition at line 78 of file RoadError.cpp.

◆ RoadError() [7/12]

orgQhull::RoadError::RoadError ( int  code,
const char *  fmt,
int  d,
int  d2,
float  f 
)

Definition at line 85 of file RoadError.cpp.

◆ RoadError() [8/12]

orgQhull::RoadError::RoadError ( int  code,
const char *  fmt,
int  d,
int  d2,
float  f,
const char *  s 
)

Definition at line 92 of file RoadError.cpp.

◆ RoadError() [9/12]

orgQhull::RoadError::RoadError ( int  code,
const char *  fmt,
int  d,
int  d2,
float  f,
const void *  x 
)

Definition at line 99 of file RoadError.cpp.

◆ RoadError() [10/12]

orgQhull::RoadError::RoadError ( int  code,
const char *  fmt,
int  d,
int  d2,
float  f,
int  i 
)

Definition at line 106 of file RoadError.cpp.

◆ RoadError() [11/12]

orgQhull::RoadError::RoadError ( int  code,
const char *  fmt,
int  d,
int  d2,
float  f,
long long  i 
)

Definition at line 113 of file RoadError.cpp.

◆ RoadError() [12/12]

orgQhull::RoadError::RoadError ( int  code,
const char *  fmt,
int  d,
int  d2,
float  f,
double  e 
)

Definition at line 120 of file RoadError.cpp.

◆ ~RoadError()

orgQhull::RoadError::~RoadError ( )
throw (
)
inline

Definition at line 63 of file RoadError.h.

Member Function Documentation

◆ clearGlobalLog()

static void orgQhull::RoadError::clearGlobalLog ( )
inlinestatic

Definition at line 67 of file RoadError.h.

◆ emptyGlobalLog()

static bool orgQhull::RoadError::emptyGlobalLog ( )
inlinestatic

Definition at line 68 of file RoadError.h.

◆ errorCode()

int orgQhull::RoadError::errorCode ( ) const
inline

Definition at line 76 of file RoadError.h.

◆ isValid()

bool orgQhull::RoadError::isValid ( ) const
inline

Definition at line 75 of file RoadError.h.

◆ logErrorLastResort()

void orgQhull::RoadError::logErrorLastResort ( ) const

Log error instead of throwing it. Not reentrant, so avoid using it if possible

Todo:
Redesign with a thread-local stream or a reentrant ostringstream

Definition at line 151 of file RoadError.cpp.

◆ operator=()

RoadError & orgQhull::RoadError::operator= ( const RoadError other)

Definition at line 127 of file RoadError.cpp.

◆ roadLogEvent()

RoadLogEvent orgQhull::RoadError::roadLogEvent ( ) const
inline

Definition at line 78 of file RoadError.h.

◆ stringGlobalLog()

static const char* orgQhull::RoadError::stringGlobalLog ( )
inlinestatic

Definition at line 69 of file RoadError.h.

◆ what()

const char * orgQhull::RoadError::what ( ) const
throw (
)
virtual

Definition at line 137 of file RoadError.cpp.

Member Data Documentation

◆ error_code

int orgQhull::RoadError::error_code
private

Definition at line 36 of file RoadError.h.

◆ error_message

std::string orgQhull::RoadError::error_message
mutableprivate

Format string w/ arguments.

Definition at line 38 of file RoadError.h.

◆ global_log

std::ostringstream orgQhull::RoadError::global_log
staticprivate

Not reentrant – only used by RoadError::logErrorLastResort()

May be replaced with any ostream object

Definition at line 42 of file RoadError.h.

◆ log_event

RoadLogEvent orgQhull::RoadError::log_event
private

Non-zero code (not logged), maybe returned as program status.

Definition at line 37 of file RoadError.h.

◆ ROADtag

const char * orgQhull::RoadError::ROADtag = "QH"
staticprivate

Identifies error messages from Qhull and Road for web searches. See QhullError.h::QHULLlastError and user.h::MSG_ERROR

Definition at line 41 of file RoadError.h.


The documentation for this class was generated from the following files:


hpp-fcl
Author(s):
autogenerated on Fri Jun 2 2023 02:39:03