All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Base_PublicImpl

Classes

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

Macros

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

Detailed Description

Macro Definition Documentation

◆ ACCESS_EXCEPTION

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

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

Definition at line 253 of file GCException.h.

◆ BAD_ALLOC_EXCEPTION

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

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

Definition at line 235 of file GCException.h.

◆ CHECK_DYNAMIC_CAST_POINTER

#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 280 of file GCException.h.

◆ CHECK_RANGE_FLT

#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 273 of file GCException.h.

◆ CHECK_RANGE_I64

#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 262 of file GCException.h.

◆ DYNAMICCAST_EXCEPTION

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

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

Definition at line 259 of file GCException.h.

◆ GENERIC_EXCEPTION

#define GENERIC_EXCEPTION   GENICAM_NAMESPACE::ExceptionReporter<GENICAM_NAMESPACE::GenericException>(__FILE__, __LINE__).Report

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

Definition at line 232 of file GCException.h.

◆ INVALID_ARGUMENT_EXCEPTION

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

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

Definition at line 238 of file GCException.h.

◆ LOGICAL_ERROR_EXCEPTION

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

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

Definition at line 250 of file GCException.h.

◆ OUT_OF_RANGE_EXCEPTION

#define OUT_OF_RANGE_EXCEPTION   GENICAM_NAMESPACE::ExceptionReporter<GENICAM_NAMESPACE::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 241 of file GCException.h.

◆ PROPERTY_EXCEPTION

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

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

Definition at line 244 of file GCException.h.

◆ RUNTIME_EXCEPTION

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

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

Definition at line 247 of file GCException.h.

◆ TIMEOUT_EXCEPTION

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

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

Definition at line 256 of file GCException.h.

OUT_OF_RANGE_EXCEPTION
#define OUT_OF_RANGE_EXCEPTION
Fires an out of range exception, e.g. throw OUT_OF_RANGE_EXCEPTION("%ld too large",...
Definition: GCException.h:241
int64_t
__int64 int64_t
Definition: config-win32.h:21
LOGICAL_ERROR_EXCEPTION
#define LOGICAL_ERROR_EXCEPTION
Fires a logical error exception, e.g. throw LOGICAL_ERROR_EXCEPTION("Should never reach this point")
Definition: GCException.h:250
FMT_I64
#define FMT_I64
Definition: GCCompatibility.h:35


rc_genicam_api
Author(s): Heiko Hirschmueller
autogenerated on Wed Dec 4 2024 03:10:12