Classes | Defines
Base_PublicImpl

Classes

class  GENICAM_NAMESPACE::ExceptionReporter< E >
 printf like creation of exceptions More...

Defines

#define ACCESS_EXCEPTION   GenICam::ExceptionReporter<GenICam::AccessException>(__FILE__, __LINE__, "AccessException" ).Report
 Fires a access exception, e.g. throw ACCESS_EXCEPTION("Not everybody")
#define BAD_ALLOC_EXCEPTION   GenICam::ExceptionReporter<GenICam::BadAllocException>(__FILE__, __LINE__, "BadAllocException" ).Report
 Fires a bad alloc exception, e.g. throw BAD_ALLOC_EXCEPTION();.
#define CHECK_DYNAMIC_CAST_POINTER(_Pointer)
 Checks if a dynamic_cast is possible.
#define CHECK_RANGE_FLT(_Value, _Min, _Max)
 Range check for float.
#define CHECK_RANGE_I64(_Value, _Min, _Max, _Inc)
 Range check for int64.
#define DYNAMICCAST_EXCEPTION   GenICam::ExceptionReporter<GenICam::DynamicCastException>(__FILE__, __LINE__, "DynamicCastException" ).Report
 Fires a dynamic cast exception, e.g. throw DYNAMICCAST_EXCEPTION("Not everybody")
#define GENERIC_EXCEPTION   GenICam::ExceptionReporter<GenICam::GenericException>(__FILE__, __LINE__).Report
 Fires a generic exception, e.g. throw GENERIC_EXCEPTION("%ld too large", Value);.
#define INVALID_ARGUMENT_EXCEPTION   GenICam::ExceptionReporter<GenICam::InvalidArgumentException>(__FILE__, __LINE__, "InvalidArgumentException" ).Report
 Fires an invalid argument exception, e.g. throw INVALID_ARGUMENT_EXCEPTION("%ld too large", Value);.
#define LOGICAL_ERROR_EXCEPTION   GenICam::ExceptionReporter<GenICam::LogicalErrorException>(__FILE__, __LINE__, "LogicalErrorException" ).Report
 Fires a logical error exception, e.g. throw LOGICAL_ERROR_EXCEPTION("Should never reach this point")
#define OUT_OF_RANGE_EXCEPTION   GenICam::ExceptionReporter<GenICam::OutOfRangeException>(__FILE__, __LINE__, "OutOfRangeException" ).Report
 Fires an out of range exception, e.g. throw OUT_OF_RANGE_EXCEPTION("%ld too large", Value);.
#define PROPERTY_EXCEPTION   GenICam::ExceptionReporter<GenICam::PropertyException>(__FILE__, __LINE__, "PropertyException" ).Report
 Fires an property exception, e.g. throw PROPERTY_EXCEPTION("%ld too large", Value);.
#define RUNTIME_EXCEPTION   GenICam::ExceptionReporter<GenICam::RuntimeException>(__FILE__, __LINE__, "RuntimeException" ).Report
 Fires a runtime exception, e.g. throw RUNTIME_EXCEPTION("buh!")
#define TIMEOUT_EXCEPTION   GenICam::ExceptionReporter<GenICam::TimeoutException>(__FILE__, __LINE__,"TimeoutException" ).Report
 Fires a timeout error exception, e.g. throw TIMEOUT_EXCEPTION("Not everybody")

Define Documentation

#define ACCESS_EXCEPTION   GenICam::ExceptionReporter<GenICam::AccessException>(__FILE__, __LINE__, "AccessException" ).Report

Fires a access exception, e.g. throw ACCESS_EXCEPTION("Not everybody")

Definition at line 251 of file GCException.h.

#define BAD_ALLOC_EXCEPTION   GenICam::ExceptionReporter<GenICam::BadAllocException>(__FILE__, __LINE__, "BadAllocException" ).Report

Fires a bad alloc exception, e.g. throw BAD_ALLOC_EXCEPTION();.

Definition at line 233 of file GCException.h.

#define CHECK_DYNAMIC_CAST_POINTER (   _Pointer)
Value:
assert( (_Pointer) != NULL ); \
        if (NULL == (_Pointer)) throw LOGICAL_ERROR_EXCEPTION( "Unexpected type in dynamic cast" )

Checks if a dynamic_cast is possible.

Definition at line 278 of file GCException.h.

#define CHECK_RANGE_FLT (   _Value,
  _Min,
  _Max 
)
Value:
if ((_Value) < (_Min)) \
            throw OUT_OF_RANGE_EXCEPTION( "Value %f must be greater than or equal %f", (_Value), (_Min) ); \
        else if ((_Value) > (_Max)) \
            throw OUT_OF_RANGE_EXCEPTION( "Value %f must be smaller than or equal %f", (_Value), (_Max) );

Range check for float.

Definition at line 271 of file GCException.h.

#define CHECK_RANGE_I64 (   _Value,
  _Min,
  _Max,
  _Inc 
)
Value:
if((int64_t)(_Value) < (int64_t)(_Min)) \
            throw OUT_OF_RANGE_EXCEPTION("Value = %" FMT_I64 "d must be equal or greater than Min = %" FMT_I64 "d", (int64_t)(_Value), (int64_t)(_Min)); \
                else if((int64_t)(_Value) > (int64_t)(_Max)) \
            throw OUT_OF_RANGE_EXCEPTION("Value = %" FMT_I64 "d must be equal or smaller than Max = %" FMT_I64 "d", (int64_t)(_Value), (int64_t)(_Max)); \
                else if ( 0 == _Inc ) \
            throw LOGICAL_ERROR_EXCEPTION("Increment must not equal 0!"); \
                else if( ((int64_t)(_Value) - (int64_t)(_Min)) % (int64_t)(_Inc) != 0) \
            throw OUT_OF_RANGE_EXCEPTION("The difference between Value = %" FMT_I64 "d and Min = %" FMT_I64 "d must be dividable without rest by Inc = %" FMT_I64 "d", (int64_t)(_Value), (int64_t)(_Min), (int64_t)(_Inc));

Range check for int64.

Definition at line 260 of file GCException.h.

#define DYNAMICCAST_EXCEPTION   GenICam::ExceptionReporter<GenICam::DynamicCastException>(__FILE__, __LINE__, "DynamicCastException" ).Report

Fires a dynamic cast exception, e.g. throw DYNAMICCAST_EXCEPTION("Not everybody")

Definition at line 257 of file GCException.h.

Fires a generic exception, e.g. throw GENERIC_EXCEPTION("%ld too large", Value);.

Definition at line 230 of file GCException.h.

#define INVALID_ARGUMENT_EXCEPTION   GenICam::ExceptionReporter<GenICam::InvalidArgumentException>(__FILE__, __LINE__, "InvalidArgumentException" ).Report

Fires an invalid argument exception, e.g. throw INVALID_ARGUMENT_EXCEPTION("%ld too large", Value);.

Definition at line 236 of file GCException.h.

#define LOGICAL_ERROR_EXCEPTION   GenICam::ExceptionReporter<GenICam::LogicalErrorException>(__FILE__, __LINE__, "LogicalErrorException" ).Report

Fires a logical error exception, e.g. throw LOGICAL_ERROR_EXCEPTION("Should never reach this point")

Definition at line 248 of file GCException.h.

#define OUT_OF_RANGE_EXCEPTION   GenICam::ExceptionReporter<GenICam::OutOfRangeException>(__FILE__, __LINE__, "OutOfRangeException" ).Report

Fires an out of range exception, e.g. throw OUT_OF_RANGE_EXCEPTION("%ld too large", Value);.

Definition at line 239 of file GCException.h.

#define PROPERTY_EXCEPTION   GenICam::ExceptionReporter<GenICam::PropertyException>(__FILE__, __LINE__, "PropertyException" ).Report

Fires an property exception, e.g. throw PROPERTY_EXCEPTION("%ld too large", Value);.

Definition at line 242 of file GCException.h.

#define RUNTIME_EXCEPTION   GenICam::ExceptionReporter<GenICam::RuntimeException>(__FILE__, __LINE__, "RuntimeException" ).Report

Fires a runtime exception, e.g. throw RUNTIME_EXCEPTION("buh!")

Definition at line 245 of file GCException.h.

#define TIMEOUT_EXCEPTION   GenICam::ExceptionReporter<GenICam::TimeoutException>(__FILE__, __LINE__,"TimeoutException" ).Report

Fires a timeout error exception, e.g. throw TIMEOUT_EXCEPTION("Not everybody")

Definition at line 254 of file GCException.h.



rc_visard_driver
Author(s): Heiko Hirschmueller , Christian Emmerich , Felix Ruess
autogenerated on Thu Jun 6 2019 20:43:09