HL-HDF
|
Debug functions used in HLHDF. More...
#include <H5Epublic.h>
Go to the source code of this file.
Classes | |
struct | hlhdf_debug_struct |
Debug structure. More... | |
Macros | |
#define | HL_SPEWDEBUG0(msg) |
Spewdebug macro taking one text string. | |
#define | HL_SPEWDEBUG1(msg, arg1) |
Spewdebug macro taking one text string and one argument. | |
#define | HL_SPEWDEBUG2(msg, arg1, arg2) |
Spewdebug macro taking one text string and two arguments. | |
#define | HL_SPEWDEBUG3(msg, arg1, arg2, arg3) |
Spewdebug macro taking one text string and three arguments. | |
#define | HL_SPEWDEBUG4(msg, arg1, arg2, arg3, arg4) |
Spewdebug macro taking one text string and four arguments. | |
#define | HL_DEBUG0(msg) |
Debug macro taking one text string. | |
#define | HL_DEBUG1(msg, arg1) |
Debug macro taking one text string and one argument. | |
#define | HL_DEBUG2(msg, arg1, arg2) |
Debug macro taking one text string and two arguments. | |
#define | HL_DEBUG3(msg, arg1, arg2, arg3) |
Debug macro taking one text string and three arguments. | |
#define | HL_DEBUG4(msg, arg1, arg2, arg3, arg4) |
Debug macro taking one text string and four arguments. | |
#define | HL_DEPRECATED0(msg) |
Deprecated macro taking one text string. | |
#define | HL_DEPRECATED1(msg, arg1) |
Deprecated macro taking one text string and one argument. | |
#define | HL_DEPRECATED2(msg, arg1, arg2) |
Deprecated macro taking one text string and two arguments. | |
#define | HL_DEPRECATED3(msg, arg1, arg2, arg3) |
Deprecated macro taking one text string and three arguments. | |
#define | HL_DEPRECATED4(msg, arg1, arg2, arg3, arg4) |
Deprecated macro taking one text string and four arguments. | |
#define | HL_INFO0(msg) hlhdfDbg.dbgfun(__FILE__,__LINE__,HLHDF_INFO,msg) |
Info macro taking one text string. | |
#define | HL_INFO1(msg, arg1) hlhdfDbg.dbgfun(__FILE__,__LINE__,HLHDF_INFO,msg,arg1) |
Info macro taking one text string and one argument. | |
#define | HL_INFO2(msg, arg1, arg2) hlhdfDbg.dbgfun(__FILE__,__LINE__,HLHDF_INFO,msg,arg1,arg2) |
Info macro taking one text string and two arguments. | |
#define | HL_INFO3(msg, arg1, arg2, arg3) hlhdfDbg.dbgfun(__FILE__,__LINE__,HLHDF_INFO,msg,arg1,arg2,arg3) |
Info macro taking one text string and three arguments. | |
#define | HL_INFO4(msg, arg1, arg2, arg3, arg4) hlhdfDbg.dbgfun(__FILE__,__LINE__,HLHDF_INFO,msg,arg1,arg2,arg3,arg4) |
Info macro taking one text string and four arguments. | |
#define | HL_WARNING0(msg) hlhdfDbg.dbgfun(__FILE__,__LINE__,HLHDF_WARNING,msg) |
Warning macro taking one text string. | |
#define | HL_WARNING1(msg, arg1) hlhdfDbg.dbgfun(__FILE__,__LINE__,HLHDF_WARNING,msg,arg1) |
Warning macro taking one text string and one argument. | |
#define | HL_WARNING2(msg, arg1, arg2) hlhdfDbg.dbgfun(__FILE__,__LINE__,HLHDF_WARNING,msg,arg1,arg2) |
Warning macro taking one text string and two arguments. | |
#define | HL_WARNING3(msg, arg1, arg2, arg3) hlhdfDbg.dbgfun(__FILE__,__LINE__,HLHDF_WARNING,msg,arg1,arg2,arg3) |
Warning macro taking one text string and three arguments. | |
#define | HL_WARNING4(msg, arg1, arg2, arg3, arg4) hlhdfDbg.dbgfun(__FILE__,__LINE__,HLHDF_WARNING,msg,arg1,arg2,arg3,arg4) |
Warning macro taking one text string and four arguments. | |
#define | HL_ERROR0(msg) hlhdfDbg.dbgfun(__FILE__,__LINE__,HLHDF_ERROR,msg) |
Error macro taking one text string. | |
#define | HL_ERROR1(msg, arg1) hlhdfDbg.dbgfun(__FILE__,__LINE__,HLHDF_ERROR,msg,arg1) |
Error macro taking one text string and one argument. | |
#define | HL_ERROR2(msg, arg1, arg2) hlhdfDbg.dbgfun(__FILE__,__LINE__,HLHDF_ERROR,msg,arg1,arg2) |
Error macro taking one text string and two arguments. | |
#define | HL_ERROR3(msg, arg1, arg2, arg3) hlhdfDbg.dbgfun(__FILE__,__LINE__,HLHDF_ERROR,msg,arg1,arg2,arg3) |
Error macro taking one text string and three arguments. | |
#define | HL_ERROR4(msg, arg1, arg2, arg3, arg4) hlhdfDbg.dbgfun(__FILE__,__LINE__,HLHDF_ERROR,msg,arg1,arg2,arg3,arg4) |
Error macro taking one text string and four arguments. | |
#define | HL_CRITICAL0(msg) hlhdfDbg.dbgfun(__FILE__,__LINE__,HLHDF_CRITICAL,msg) |
Critical macro taking one text string. | |
#define | HL_CRITICAL1(msg, arg1) hlhdfDbg.dbgfun(__FILE__,__LINE__,HLHDF_CRITICAL,msg,arg1) |
Critical macro taking one text string and one argument. | |
#define | HL_CRITICAL2(msg, arg1, arg2) hlhdfDbg.dbgfun(__FILE__,__LINE__,HLHDF_CRITICAL,msg,arg1,arg2) |
Critical macro taking one text string and two arguments. | |
#define | HL_CRITICAL3(msg, arg1, arg2, arg3) hlhdfDbg.dbgfun(__FILE__,__LINE__,HLHDF_CRITICAL,msg,arg1,arg2,arg3) |
Critical macro taking one text string and three arguments. | |
#define | HL_CRITICAL4(msg, arg1, arg2, arg3, arg4) hlhdfDbg.dbgfun(__FILE__,__LINE__,HLHDF_CRITICAL,msg,arg1,arg2,arg3,arg4) |
Critical macro taking one text string and four arguments. | |
#define | HL_ASSERT(expr, msg) |
Precondition macro, if the expression does not evaluate to true, then an CRITICAL error message will be produced and then the program will abort(). | |
#define | HL_ABORT() abort() |
Typedefs | |
typedef enum HL_Debug | HL_Debug |
Debug levels. | |
Enumerations | |
enum | HL_Debug { HLHDF_SPEWDEBUG =0 , HLHDF_DEBUG , HLHDF_DEPRECATED , HLHDF_INFO , HLHDF_WARNING , HLHDF_ERROR , HLHDF_CRITICAL , HLHDF_SILENT } |
Debug levels. More... | |
Functions | |
void | HL_printf (const char *fmt,...) |
The printer function. | |
void | HL_InitializeDebugger (void) |
Initializes the debugger structure, must have been called before executing the code. | |
void | HL_setDebugLevel (HL_Debug lvl) |
Sets the debug level. | |
void | HL_setDebugFunction (void(*dbgfun)(char *filename, int lineno, HL_Debug lvl, const char *fmt,...)) |
Sets the debug function where the debug printouts should be routed. | |
void | HL_setHdf5ErrorFunction (void(*hdf5fun)(unsigned n, const H5E_error_t *val)) |
Sets the HDF5 error reporting function. | |
void | HL_disableHdf5ErrorReporting (void) |
Disables the HDF5 error reporting. | |
void | HL_enableHdf5ErrorReporting (void) |
Enables the HDF5 error reporting. | |
herr_t | HL_hdf5_debug_function (hid_t estack, void *inv) |
This is the debug function that is used to forward messages to the appropriate debugger function. | |
Variables | |
hlhdf_debug_struct | hlhdfDbg |
The main structure used for routing errors and debug printouts. | |
Debug functions used in HLHDF.
It is also provides a mechanism to route the printouts to custom made report functions.
#define HL_ASSERT | ( | expr, | |
msg ) |
Precondition macro, if the expression does not evaluate to true, then an CRITICAL error message will be produced and then the program will abort().
#define HL_CRITICAL0 | ( | msg | ) | hlhdfDbg.dbgfun(__FILE__,__LINE__,HLHDF_CRITICAL,msg) |
Critical macro taking one text string.
#define HL_CRITICAL1 | ( | msg, | |
arg1 ) hlhdfDbg.dbgfun(__FILE__,__LINE__,HLHDF_CRITICAL,msg,arg1) |
Critical macro taking one text string and one argument.
#define HL_CRITICAL2 | ( | msg, | |
arg1, | |||
arg2 ) hlhdfDbg.dbgfun(__FILE__,__LINE__,HLHDF_CRITICAL,msg,arg1,arg2) |
Critical macro taking one text string and two arguments.
#define HL_CRITICAL3 | ( | msg, | |
arg1, | |||
arg2, | |||
arg3 ) hlhdfDbg.dbgfun(__FILE__,__LINE__,HLHDF_CRITICAL,msg,arg1,arg2,arg3) |
Critical macro taking one text string and three arguments.
#define HL_CRITICAL4 | ( | msg, | |
arg1, | |||
arg2, | |||
arg3, | |||
arg4 ) hlhdfDbg.dbgfun(__FILE__,__LINE__,HLHDF_CRITICAL,msg,arg1,arg2,arg3,arg4) |
Critical macro taking one text string and four arguments.
#define HL_DEBUG0 | ( | msg | ) |
Debug macro taking one text string.
#define HL_DEBUG1 | ( | msg, | |
arg1 ) |
Debug macro taking one text string and one argument.
#define HL_DEBUG2 | ( | msg, | |
arg1, | |||
arg2 ) |
Debug macro taking one text string and two arguments.
#define HL_DEBUG3 | ( | msg, | |
arg1, | |||
arg2, | |||
arg3 ) |
Debug macro taking one text string and three arguments.
#define HL_DEBUG4 | ( | msg, | |
arg1, | |||
arg2, | |||
arg3, | |||
arg4 ) |
Debug macro taking one text string and four arguments.
#define HL_DEPRECATED0 | ( | msg | ) |
Deprecated macro taking one text string.
#define HL_DEPRECATED1 | ( | msg, | |
arg1 ) |
Deprecated macro taking one text string and one argument.
#define HL_DEPRECATED2 | ( | msg, | |
arg1, | |||
arg2 ) |
Deprecated macro taking one text string and two arguments.
#define HL_DEPRECATED3 | ( | msg, | |
arg1, | |||
arg2, | |||
arg3 ) |
Deprecated macro taking one text string and three arguments.
#define HL_DEPRECATED4 | ( | msg, | |
arg1, | |||
arg2, | |||
arg3, | |||
arg4 ) |
Deprecated macro taking one text string and four arguments.
#define HL_ERROR0 | ( | msg | ) | hlhdfDbg.dbgfun(__FILE__,__LINE__,HLHDF_ERROR,msg) |
Error macro taking one text string.
#define HL_ERROR1 | ( | msg, | |
arg1 ) hlhdfDbg.dbgfun(__FILE__,__LINE__,HLHDF_ERROR,msg,arg1) |
Error macro taking one text string and one argument.
#define HL_ERROR2 | ( | msg, | |
arg1, | |||
arg2 ) hlhdfDbg.dbgfun(__FILE__,__LINE__,HLHDF_ERROR,msg,arg1,arg2) |
Error macro taking one text string and two arguments.
#define HL_ERROR3 | ( | msg, | |
arg1, | |||
arg2, | |||
arg3 ) hlhdfDbg.dbgfun(__FILE__,__LINE__,HLHDF_ERROR,msg,arg1,arg2,arg3) |
Error macro taking one text string and three arguments.
#define HL_ERROR4 | ( | msg, | |
arg1, | |||
arg2, | |||
arg3, | |||
arg4 ) hlhdfDbg.dbgfun(__FILE__,__LINE__,HLHDF_ERROR,msg,arg1,arg2,arg3,arg4) |
Error macro taking one text string and four arguments.
#define HL_INFO0 | ( | msg | ) | hlhdfDbg.dbgfun(__FILE__,__LINE__,HLHDF_INFO,msg) |
Info macro taking one text string.
#define HL_INFO1 | ( | msg, | |
arg1 ) hlhdfDbg.dbgfun(__FILE__,__LINE__,HLHDF_INFO,msg,arg1) |
Info macro taking one text string and one argument.
#define HL_INFO2 | ( | msg, | |
arg1, | |||
arg2 ) hlhdfDbg.dbgfun(__FILE__,__LINE__,HLHDF_INFO,msg,arg1,arg2) |
Info macro taking one text string and two arguments.
#define HL_INFO3 | ( | msg, | |
arg1, | |||
arg2, | |||
arg3 ) hlhdfDbg.dbgfun(__FILE__,__LINE__,HLHDF_INFO,msg,arg1,arg2,arg3) |
Info macro taking one text string and three arguments.
#define HL_INFO4 | ( | msg, | |
arg1, | |||
arg2, | |||
arg3, | |||
arg4 ) hlhdfDbg.dbgfun(__FILE__,__LINE__,HLHDF_INFO,msg,arg1,arg2,arg3,arg4) |
Info macro taking one text string and four arguments.
#define HL_SPEWDEBUG0 | ( | msg | ) |
Spewdebug macro taking one text string.
#define HL_SPEWDEBUG1 | ( | msg, | |
arg1 ) |
Spewdebug macro taking one text string and one argument.
#define HL_SPEWDEBUG2 | ( | msg, | |
arg1, | |||
arg2 ) |
Spewdebug macro taking one text string and two arguments.
#define HL_SPEWDEBUG3 | ( | msg, | |
arg1, | |||
arg2, | |||
arg3 ) |
Spewdebug macro taking one text string and three arguments.
#define HL_SPEWDEBUG4 | ( | msg, | |
arg1, | |||
arg2, | |||
arg3, | |||
arg4 ) |
Spewdebug macro taking one text string and four arguments.
#define HL_WARNING0 | ( | msg | ) | hlhdfDbg.dbgfun(__FILE__,__LINE__,HLHDF_WARNING,msg) |
Warning macro taking one text string.
#define HL_WARNING1 | ( | msg, | |
arg1 ) hlhdfDbg.dbgfun(__FILE__,__LINE__,HLHDF_WARNING,msg,arg1) |
Warning macro taking one text string and one argument.
#define HL_WARNING2 | ( | msg, | |
arg1, | |||
arg2 ) hlhdfDbg.dbgfun(__FILE__,__LINE__,HLHDF_WARNING,msg,arg1,arg2) |
Warning macro taking one text string and two arguments.
#define HL_WARNING3 | ( | msg, | |
arg1, | |||
arg2, | |||
arg3 ) hlhdfDbg.dbgfun(__FILE__,__LINE__,HLHDF_WARNING,msg,arg1,arg2,arg3) |
Warning macro taking one text string and three arguments.
#define HL_WARNING4 | ( | msg, | |
arg1, | |||
arg2, | |||
arg3, | |||
arg4 ) hlhdfDbg.dbgfun(__FILE__,__LINE__,HLHDF_WARNING,msg,arg1,arg2,arg3,arg4) |
Warning macro taking one text string and four arguments.
herr_t HL_hdf5_debug_function | ( | hid_t | estack, |
void * | inv ) |
This is the debug function that is used to forward messages to the appropriate debugger function.
[in] | estack | the error stack |
[in] | inv | some data |
void HL_printf | ( | const char * | fmt, |
... ) |
The printer function.
[in] | fmt | - the varargs formatter string |
[in] | ... | - the varargs list |
|
extern |
The main structure used for routing errors and debug printouts.