HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
H5Epublic.h File Reference
#include <stdio.h>
#include "H5public.h"
#include "H5Ipublic.h"
#include "H5Epubgen.h"
+ Include dependency graph for H5Epublic.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  H5E_error2_t
 
struct  H5E_error1_t
 

Macros

#define H5E_DEFAULT   0
 
#define H5OPEN   H5open(),
 
#define H5E_ERR_CLS   (H5OPEN H5E_ERR_CLS_g)
 
#define H5E_BEGIN_TRY
 
#define H5E_END_TRY
 
#define H5Epush_sim(func, cls, maj, min, str)   H5Epush2(H5E_DEFAULT, __FILE__, func, __LINE__, cls, maj, min, str)
 
#define H5Epush_ret(func, cls, maj, min, str, ret)
 
#define H5Epush_goto(func, cls, maj, min, str, label)
 

Typedefs

typedef enum H5E_type_t H5E_type_t
 
typedef struct H5E_error2_t H5E_error2_t
 
typedef enum H5E_direction_t H5E_direction_t
 
typedef herr_t(* H5E_walk2_t )(unsigned n, const H5E_error2_t *err_desc, void *client_data)
 
typedef herr_t(* H5E_auto2_t )(hid_t estack, void *client_data)
 
typedef hid_t H5E_major_t
 
typedef hid_t H5E_minor_t
 
typedef struct H5E_error1_t H5E_error1_t
 
typedef herr_t(* H5E_walk1_t )(int n, H5E_error1_t *err_desc, void *client_data)
 
typedef herr_t(* H5E_auto1_t )(void *client_data)
 

Enumerations

enum  H5E_type_t { H5E_MAJOR, H5E_MINOR }
 
enum  H5E_direction_t { H5E_WALK_UPWARD = 0, H5E_WALK_DOWNWARD = 1 }
 

Functions

H5_DLL hid_t H5Eregister_class (const char *cls_name, const char *lib_name, const char *version)
 
H5_DLL herr_t H5Eunregister_class (hid_t class_id)
 
H5_DLL herr_t H5Eclose_msg (hid_t err_id)
 
H5_DLL hid_t H5Ecreate_msg (hid_t cls, H5E_type_t msg_type, const char *msg)
 
H5_DLL hid_t H5Ecreate_stack (void)
 
H5_DLL hid_t H5Eget_current_stack (void)
 
H5_DLL herr_t H5Eclose_stack (hid_t stack_id)
 
H5_DLL ssize_t H5Eget_class_name (hid_t class_id, char *name, size_t size)
 
H5_DLL herr_t H5Eset_current_stack (hid_t err_stack_id)
 
H5_DLL herr_t H5Epush2 (hid_t err_stack, const char *file, const char *func, unsigned line, hid_t cls_id, hid_t maj_id, hid_t min_id, const char *msg,...)
 
H5_DLL herr_t H5Epop (hid_t err_stack, size_t count)
 
H5_DLL herr_t H5Eprint2 (hid_t err_stack, FILE *stream)
 
H5_DLL herr_t H5Ewalk2 (hid_t err_stack, H5E_direction_t direction, H5E_walk2_t func, void *client_data)
 
H5_DLL herr_t H5Eget_auto2 (hid_t estack_id, H5E_auto2_t *func, void **client_data)
 
H5_DLL herr_t H5Eset_auto2 (hid_t estack_id, H5E_auto2_t func, void *client_data)
 
H5_DLL herr_t H5Eclear2 (hid_t err_stack)
 
H5_DLL herr_t H5Eauto_is_v2 (hid_t err_stack, unsigned *is_stack)
 
H5_DLL ssize_t H5Eget_msg (hid_t msg_id, H5E_type_t *type, char *msg, size_t size)
 
H5_DLL ssize_t H5Eget_num (hid_t error_stack_id)
 
H5_DLL herr_t H5Eclear1 (void)
 
H5_DLL herr_t H5Eget_auto1 (H5E_auto1_t *func, void **client_data)
 
H5_DLL herr_t H5Epush1 (const char *file, const char *func, unsigned line, H5E_major_t maj, H5E_minor_t min, const char *str)
 
H5_DLL herr_t H5Eprint1 (FILE *stream)
 
H5_DLL herr_t H5Eset_auto1 (H5E_auto1_t func, void *client_data)
 
H5_DLL herr_t H5Ewalk1 (H5E_direction_t direction, H5E_walk1_t func, void *client_data)
 
H5_DLL char * H5Eget_major (H5E_major_t maj)
 
H5_DLL char * H5Eget_minor (H5E_minor_t min)
 

Variables

H5_DLLVAR hid_t H5E_ERR_CLS_g
 

Macro Definition Documentation

#define H5E_BEGIN_TRY
Value:
{ \
unsigned H5E_saved_is_v2; \
union { \
H5E_auto1_t efunc1; \
H5E_auto2_t efunc2; \
} H5E_saved; \
void *H5E_saved_edata; \
\
(void)H5Eauto_is_v2(H5E_DEFAULT, &H5E_saved_is_v2); \
if(H5E_saved_is_v2) { \
(void)H5Eget_auto2(H5E_DEFAULT, &H5E_saved.efunc2, &H5E_saved_edata); \
(void)H5Eset_auto2(H5E_DEFAULT, NULL, NULL); \
} else { \
(void)H5Eget_auto1(&H5E_saved.efunc1, &H5E_saved_edata); \
(void)H5Eset_auto1(NULL, NULL); \
}
H5_DLL herr_t H5Eget_auto2(hid_t estack_id, H5E_auto2_t *func, void **client_data)
H5_DLL herr_t H5Eauto_is_v2(hid_t err_stack, unsigned *is_stack)
herr_t(* H5E_auto2_t)(hid_t estack, void *client_data)
Definition: H5Epublic.h:154
typedef void(APIENTRYP PFNGLCULLFACEPROC)(GLenum mode)
H5_DLL herr_t H5Eset_auto1(H5E_auto1_t func, void *client_data)
herr_t(* H5E_auto1_t)(void *client_data)
Definition: H5Epublic.h:208
#define H5E_DEFAULT
Definition: H5Epublic.h:29
H5_DLL herr_t H5Eset_auto2(hid_t estack_id, H5E_auto2_t func, void *client_data)
if(rank==1) return rank
H5_DLL herr_t H5Eget_auto1(H5E_auto1_t *func, void **client_data)

Definition at line 80 of file H5Epublic.h.

#define H5E_DEFAULT   0

Definition at line 29 of file H5Epublic.h.

#define H5E_END_TRY
Value:
if(H5E_saved_is_v2) \
(void)H5Eset_auto2(H5E_DEFAULT, H5E_saved.efunc2, H5E_saved_edata); \
else \
(void)H5Eset_auto1(H5E_saved.efunc1, H5E_saved_edata); \
}
typedef void(APIENTRYP PFNGLCULLFACEPROC)(GLenum mode)
H5_DLL herr_t H5Eset_auto1(H5E_auto1_t func, void *client_data)
#define H5E_DEFAULT
Definition: H5Epublic.h:29
H5_DLL herr_t H5Eset_auto2(hid_t estack_id, H5E_auto2_t func, void *client_data)

Definition at line 97 of file H5Epublic.h.

#define H5E_ERR_CLS   (H5OPEN H5E_ERR_CLS_g)

Definition at line 57 of file H5Epublic.h.

#define H5Epush_goto (   func,
  cls,
  maj,
  min,
  str,
  label 
)
Value:
{ \
H5Epush2(H5E_DEFAULT, __FILE__, func, __LINE__, cls, maj, min, str); \
goto label; \
}
GLuint GLsizei const GLchar * label
Definition: glcorearb.h:2544
GLenum func
Definition: glcorearb.h:782
#define H5E_DEFAULT
Definition: H5Epublic.h:29
const std::enable_if<!VecTraits< T >::IsVec, T >::type & min(const T &a, const T &b)
Definition: Composite.h:129
H5_DLL herr_t H5Epush2(hid_t err_stack, const char *file, const char *func, unsigned line, hid_t cls_id, hid_t maj_id, hid_t min_id, const char *msg,...)

Definition at line 135 of file H5Epublic.h.

#define H5Epush_ret (   func,
  cls,
  maj,
  min,
  str,
  ret 
)
Value:
{ \
H5Epush2(H5E_DEFAULT, __FILE__, func, __LINE__, cls, maj, min, str); \
return(ret); \
}
GLenum func
Definition: glcorearb.h:782
#define H5E_DEFAULT
Definition: H5Epublic.h:29
const std::enable_if<!VecTraits< T >::IsVec, T >::type & min(const T &a, const T &b)
Definition: Composite.h:129
H5_DLL herr_t H5Epush2(hid_t err_stack, const char *file, const char *func, unsigned line, hid_t cls_id, hid_t maj_id, hid_t min_id, const char *msg,...)

Definition at line 127 of file H5Epublic.h.

#define H5Epush_sim (   func,
  cls,
  maj,
  min,
  str 
)    H5Epush2(H5E_DEFAULT, __FILE__, func, __LINE__, cls, maj, min, str)

Definition at line 120 of file H5Epublic.h.

#define H5OPEN   H5open(),

Definition at line 51 of file H5Epublic.h.

Typedef Documentation

typedef herr_t(* H5E_auto1_t)(void *client_data)

Definition at line 208 of file H5Epublic.h.

typedef herr_t(* H5E_auto2_t)(hid_t estack, void *client_data)

Definition at line 154 of file H5Epublic.h.

typedef struct H5E_error1_t H5E_error1_t
typedef struct H5E_error2_t H5E_error2_t
typedef hid_t H5E_major_t

Definition at line 193 of file H5Epublic.h.

typedef hid_t H5E_minor_t

Definition at line 194 of file H5Epublic.h.

typedef enum H5E_type_t H5E_type_t
typedef herr_t(* H5E_walk1_t)(int n, H5E_error1_t *err_desc, void *client_data)

Definition at line 207 of file H5Epublic.h.

typedef herr_t(* H5E_walk2_t)(unsigned n, const H5E_error2_t *err_desc, void *client_data)

Definition at line 152 of file H5Epublic.h.

Enumeration Type Documentation

Enumerator
H5E_WALK_UPWARD 
H5E_WALK_DOWNWARD 

Definition at line 141 of file H5Epublic.h.

enum H5E_type_t
Enumerator
H5E_MAJOR 
H5E_MINOR 

Definition at line 32 of file H5Epublic.h.

Function Documentation

H5_DLL herr_t H5Eauto_is_v2 ( hid_t  err_stack,
unsigned *  is_stack 
)
H5_DLL herr_t H5Eclear1 ( void  )
H5_DLL herr_t H5Eclear2 ( hid_t  err_stack)
H5_DLL herr_t H5Eclose_msg ( hid_t  err_id)
H5_DLL herr_t H5Eclose_stack ( hid_t  stack_id)
H5_DLL hid_t H5Ecreate_msg ( hid_t  cls,
H5E_type_t  msg_type,
const char *  msg 
)
H5_DLL hid_t H5Ecreate_stack ( void  )
H5_DLL herr_t H5Eget_auto1 ( H5E_auto1_t func,
void **  client_data 
)
H5_DLL herr_t H5Eget_auto2 ( hid_t  estack_id,
H5E_auto2_t func,
void **  client_data 
)
H5_DLL ssize_t H5Eget_class_name ( hid_t  class_id,
char *  name,
size_t  size 
)
H5_DLL hid_t H5Eget_current_stack ( void  )
H5_DLL char* H5Eget_major ( H5E_major_t  maj)
H5_DLL char* H5Eget_minor ( H5E_minor_t  min)
H5_DLL ssize_t H5Eget_msg ( hid_t  msg_id,
H5E_type_t type,
char *  msg,
size_t  size 
)
H5_DLL ssize_t H5Eget_num ( hid_t  error_stack_id)
H5_DLL herr_t H5Epop ( hid_t  err_stack,
size_t  count 
)
H5_DLL herr_t H5Eprint1 ( FILE *  stream)
H5_DLL herr_t H5Eprint2 ( hid_t  err_stack,
FILE *  stream 
)
H5_DLL herr_t H5Epush1 ( const char *  file,
const char *  func,
unsigned  line,
H5E_major_t  maj,
H5E_minor_t  min,
const char *  str 
)
H5_DLL herr_t H5Epush2 ( hid_t  err_stack,
const char *  file,
const char *  func,
unsigned  line,
hid_t  cls_id,
hid_t  maj_id,
hid_t  min_id,
const char *  msg,
  ... 
)
H5_DLL hid_t H5Eregister_class ( const char *  cls_name,
const char *  lib_name,
const char *  version 
)
H5_DLL herr_t H5Eset_auto1 ( H5E_auto1_t  func,
void client_data 
)
H5_DLL herr_t H5Eset_auto2 ( hid_t  estack_id,
H5E_auto2_t  func,
void client_data 
)
H5_DLL herr_t H5Eset_current_stack ( hid_t  err_stack_id)
H5_DLL herr_t H5Eunregister_class ( hid_t  class_id)
H5_DLL herr_t H5Ewalk1 ( H5E_direction_t  direction,
H5E_walk1_t  func,
void client_data 
)
H5_DLL herr_t H5Ewalk2 ( hid_t  err_stack,
H5E_direction_t  direction,
H5E_walk2_t  func,
void client_data 
)

Variable Documentation

H5_DLLVAR hid_t H5E_ERR_CLS_g

Definition at line 58 of file H5Epublic.h.