STK++ 0.9.13
STK_Macros.h File Reference

In this file we define the macro and utilities function used throughout the stk++ library. More...

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define STKERROR_NO_ARG2(Where, Error)
 generate an Error message with no arguments.
 
#define STKERROR_NO_ARG(Where, Error)    STKERROR_NO_ARG2(Where, Error)
 
#define STKERROR_1ARG2(Where, Arg, Error)
 generate an Error message with one argument.
 
#define STKERROR_1ARG(Where, Arg, Error)    STKERROR_1ARG2(Where, Arg, Error)
 
#define STKERROR_2ARG2(Where, Arg1, Arg2, Error)
 generate an Error message with no argument.
 
#define STKERROR_2ARG(Where, Arg1, Arg2, Error)    STKERROR_2ARG2(Where, Arg1, Arg2, Error)
 
#define STKERROR_3ARG2(Where, Arg1, Arg2, Arg3, Error)
 generate an Error message with three arguments.
 
#define STKERROR_3ARG(Where, Arg1, Arg2, Arg3, Error)    STKERROR_3ARG2(Where, Arg1, Arg2, Arg3, Error)
 
#define STKOUT_OF_RANGE_1ARG2(Where, Arg, Error)    throw STK::out_of_range(STKERROR_1ARG2(Where, Arg, Error))
 throw an STK::out_of_range exception with one arguments.
 
#define STKOUT_OF_RANGE_1ARG(Where, Arg, Error)    STKOUT_OF_RANGE_1ARG2(Where, Arg, Error)
 
#define STKOUT_OF_RANGE_2ARG2(Where, Arg1, Arg2, Error)    throw STK::out_of_range(STKERROR_2ARG2(Where, Arg1, Arg2, Error))
 throw an STK::out_of_range exception with two arguments.
 
#define STKOUT_OF_RANGE_2ARG(Where, Arg1, Arg2, Error)    STKOUT_OF_RANGE_2ARG2(Where, Arg1, Arg2, Error)
 
#define STKOUT_OF_RANGE_3ARG2(Where, Arg1, Arg2, Arg3, Error)    throw STK::out_of_range(STKERROR_3ARG2(Where, Arg1, Arg2, Arg3, Error))
 throw an STK::out_of_range exception with three arguments.
 
#define STKOUT_OF_RANGE_3ARG(Where, Arg1, Arg2, Arg3, Error)    STKOUT_OF_RANGE_3ARG2(Where, Arg1, Arg2, Arg3, Error)
 
#define STKRUNTIME_ERROR_2ARG2(Where, Arg1, Arg2, Error)    throw STK::runtime_error(STKERROR_2ARG2(Where, Arg1, Arg2, Error))
 throw an runtime exception with two arguments.
 
#define STKRUNTIME_ERROR_2ARG(Where, Arg1, Arg2, Error)    STKRUNTIME_ERROR_2ARG2(Where, Arg1, Arg2, Error)
 
#define STKRUNTIME_ERROR_1ARG2(Where, Arg, Error)    throw STK::runtime_error(STKERROR_1ARG2(Where, Arg, Error))
 throw an runtime exception with one arguments.
 
#define STKRUNTIME_ERROR_1ARG(Where, Arg, Error)    STKRUNTIME_ERROR_1ARG2(Where, Arg, Error)
 
#define STKRUNTIME_ERROR_NO_ARG2(Where, Error)    throw STK::runtime_error(STKERROR_NO_ARG2(Where, Error))
 throw an runtime exception with one arguments.
 
#define STKRUNTIME_ERROR_NO_ARG(Where, Error)    STKRUNTIME_ERROR_NO_ARG2(Where, Error)
 
#define STKDOMAIN_ERROR_2ARG2(Where, Arg1, Arg2, Error)    throw STK::domain_error(STKERROR_2ARG2(Where, Arg1, Arg2, Error))
 throw an domain exception with two arguments.
 
#define STKDOMAIN_ERROR_2ARG(Where, Arg1, Arg2, Error)    STKDOMAIN_ERROR_2ARG2(Where, Arg1, Arg2, Error)
 
#define STKDOMAIN_ERROR_3ARG2(Where, Arg1, Arg2, Arg3, Error)    throw STK::domain_error(STKERROR_3ARG2(Where, Arg1, Arg2, Arg3, Error))
 throw an domain exception with two arguments.
 
#define STKDOMAIN_ERROR_3ARG(Where, Arg1, Arg2, Arg3, Error)    STKDOMAIN_ERROR_3ARG2(Where, Arg1, Arg2, Arg3, Error)
 
#define STKDOMAIN_ERROR_1ARG2(Where, Arg, Error)    throw STK::domain_error(STKERROR_1ARG2(Where, Arg, Error))
 throw an domain exception with one arguments.
 
#define STKDOMAIN_ERROR_1ARG(Where, Arg, Error)    STKDOMAIN_ERROR_1ARG2(Where, Arg, Error)
 
#define STKDOMAIN_ERROR_NO_ARG2(Where, Error)    throw STK::domain_error(STKERROR_NO_ARG2(Where, Error))
 throw an domain exception with no argument.
 
#define STKDOMAIN_ERROR_NO_ARG(Where, Error)    STKDOMAIN_ERROR_NO_ARG2(Where, Error)
 
#define STKINVALIDARGUMENT_ERROR_2ARG2(Where, Arg1, Arg2, Error)    throw STK::invalid_argument(STKERROR_2ARG2(Where, Arg1, Arg2, Error))
 throw an invalid argument exception with two arguments.
 
#define STKINVALIDARGUMENT_ERROR_2ARG(Where, Arg1, Arg2, Error)    STKINVALIDARGUMENT_ERROR_2ARG2(Where, Arg1, Arg2, Error)
 
#define STKINVALIDARGUMENT_ERROR_1ARG2(Where, Arg1, Error)    throw STK::invalid_argument(STKERROR_1RG2(Where, Arg1, Error))
 throw an invalid argument exception with one argument.
 
#define STKINVALIDARGUMENT_ERROR_1ARG(Where, Arg1, Error)    STKINVALIDARGUMENT_ERROR_1ARG2(Where, Arg1, Error)
 
#define STKINVALIDARGUMENT_ERROR_NO_ARG2(Where, Error)    throw STK::invalid_argument(STKERROR_NO_ARG2(Where, Error))
 throw an invalid argument exception with no argument.
 
#define STKINVALIDARGUMENT_ERROR_NO_ARG(Where, Error)    STKINVALIDARGUMENT_ERROR_NO_ARG2(Where, Error)
 

Detailed Description

In this file we define the macro and utilities function used throughout the stk++ library.

In this file we define the macros allowing to know the version we are using.

This is in most case a support for handling errors messages and errors exceptions.

Definition in file STK_Macros.h.

Macro Definition Documentation

◆ STKDOMAIN_ERROR_1ARG

#define STKDOMAIN_ERROR_1ARG (   Where,
  Arg,
  Error 
)     STKDOMAIN_ERROR_1ARG2(Where, Arg, Error)

Definition at line 165 of file STK_Macros.h.

◆ STKDOMAIN_ERROR_2ARG

#define STKDOMAIN_ERROR_2ARG (   Where,
  Arg1,
  Arg2,
  Error 
)     STKDOMAIN_ERROR_2ARG2(Where, Arg1, Arg2, Error)

Definition at line 147 of file STK_Macros.h.

◆ STKDOMAIN_ERROR_3ARG

#define STKDOMAIN_ERROR_3ARG (   Where,
  Arg1,
  Arg2,
  Arg3,
  Error 
)     STKDOMAIN_ERROR_3ARG2(Where, Arg1, Arg2, Arg3, Error)

Definition at line 156 of file STK_Macros.h.

◆ STKDOMAIN_ERROR_NO_ARG

#define STKDOMAIN_ERROR_NO_ARG (   Where,
  Error 
)     STKDOMAIN_ERROR_NO_ARG2(Where, Error)

Definition at line 174 of file STK_Macros.h.

◆ STKERROR_1ARG

#define STKERROR_1ARG (   Where,
  Arg,
  Error 
)     STKERROR_1ARG2(Where, Arg, Error)

Definition at line 61 of file STK_Macros.h.

◆ STKERROR_2ARG

#define STKERROR_2ARG (   Where,
  Arg1,
  Arg2,
  Error 
)     STKERROR_2ARG2(Where, Arg1, Arg2, Error)

Definition at line 72 of file STK_Macros.h.

◆ STKERROR_3ARG

#define STKERROR_3ARG (   Where,
  Arg1,
  Arg2,
  Arg3,
  Error 
)     STKERROR_3ARG2(Where, Arg1, Arg2, Arg3, Error)

Definition at line 84 of file STK_Macros.h.

◆ STKERROR_NO_ARG

#define STKERROR_NO_ARG (   Where,
  Error 
)     STKERROR_NO_ARG2(Where, Error)

Definition at line 49 of file STK_Macros.h.

◆ STKINVALIDARGUMENT_ERROR_1ARG

#define STKINVALIDARGUMENT_ERROR_1ARG (   Where,
  Arg1,
  Error 
)     STKINVALIDARGUMENT_ERROR_1ARG2(Where, Arg1, Error)

Definition at line 192 of file STK_Macros.h.

◆ STKINVALIDARGUMENT_ERROR_2ARG

#define STKINVALIDARGUMENT_ERROR_2ARG (   Where,
  Arg1,
  Arg2,
  Error 
)     STKINVALIDARGUMENT_ERROR_2ARG2(Where, Arg1, Arg2, Error)

Definition at line 183 of file STK_Macros.h.

◆ STKINVALIDARGUMENT_ERROR_NO_ARG

#define STKINVALIDARGUMENT_ERROR_NO_ARG (   Where,
  Error 
)     STKINVALIDARGUMENT_ERROR_NO_ARG2(Where, Error)

Definition at line 201 of file STK_Macros.h.

◆ STKOUT_OF_RANGE_1ARG

#define STKOUT_OF_RANGE_1ARG (   Where,
  Arg,
  Error 
)     STKOUT_OF_RANGE_1ARG2(Where, Arg, Error)

Definition at line 93 of file STK_Macros.h.

◆ STKOUT_OF_RANGE_2ARG

#define STKOUT_OF_RANGE_2ARG (   Where,
  Arg1,
  Arg2,
  Error 
)     STKOUT_OF_RANGE_2ARG2(Where, Arg1, Arg2, Error)

Definition at line 102 of file STK_Macros.h.

◆ STKOUT_OF_RANGE_3ARG

#define STKOUT_OF_RANGE_3ARG (   Where,
  Arg1,
  Arg2,
  Arg3,
  Error 
)     STKOUT_OF_RANGE_3ARG2(Where, Arg1, Arg2, Arg3, Error)

Definition at line 111 of file STK_Macros.h.

◆ STKRUNTIME_ERROR_1ARG

#define STKRUNTIME_ERROR_1ARG (   Where,
  Arg,
  Error 
)     STKRUNTIME_ERROR_1ARG2(Where, Arg, Error)

Definition at line 129 of file STK_Macros.h.

◆ STKRUNTIME_ERROR_2ARG

#define STKRUNTIME_ERROR_2ARG (   Where,
  Arg1,
  Arg2,
  Error 
)     STKRUNTIME_ERROR_2ARG2(Where, Arg1, Arg2, Error)

Definition at line 120 of file STK_Macros.h.

◆ STKRUNTIME_ERROR_NO_ARG

#define STKRUNTIME_ERROR_NO_ARG (   Where,
  Error 
)     STKRUNTIME_ERROR_NO_ARG2(Where, Error)

Definition at line 138 of file STK_Macros.h.