kererr.c
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036
00037
00038
00039
00040
#include "iderr.h"
00041
00042 int IdErrno = 0;
00043
00044 typedef struct {
00045 int code;
00046 char *msg;
00047 }
MSGERROR;
00048
00049
static MSGERROR taberror[] = {
00050 {0,
"Pas d'erreur"},
00051
00052 {
IDERR_NOT_FLOATLIST,
"Liste flottants incorrecte"},
00053 {
IDERR_LABEL_UNDEF,
"Label non defini"},
00054 {
IDERR_TOO_LONG_LIST,
"Liste avec trop d'elements"},
00055 {
IDERR_INVALID_NUMBER,
"Param Numerique invalide"},
00056 {
IDERR_NOT_INTLIST,
"Liste entiers incorrecte"},
00057
00058 {
IDERR_ALLOC_MEM,
"Echec allocation memoire"},
00059 {
IDERR_ALLOC_SIG,
"Echec allocation Signal"},
00060 {
IDERR_ALLOC_IMA,
"Echec allocation Image"},
00061 {
IDERR_ALLOC_VOL,
"Echec allocation Volume"},
00062 {
IDERR_ALLOC_PARAM,
"Echec allocation PARAM"},
00063 {
IDERR_ALLOC_CNT,
"Echec allocation Contour"},
00064 {
IDERR_ALLOC_LST,
"Echec allocation Liste"},
00065 {
IDERR_ALLOC_TREE,
"Echec allocation Arbre"},
00066 {
IDERR_ALLOC_FACE,
"Echec allocation Face"},
00067 {
IDERR_ALLOC_ELEM,
"Echec allocation Element"},
00068 {
IDERR_ALLOC_CNT3D,
"Echec allocation Contour 3D"},
00069 {
IDERR_EMPTY_LIST,
"Liste Vide "},
00070
00071 {
IDERR_ALLOC_SUB,
"Echec allocation Sous-Struct"},
00072
00073 {
IDERR_Y_OUT_OF_IMAGE,
"Sortie de l'image en y"},
00074 {
IDERR_X_OUT_OF_IMAGE,
"Sortie de l'image en x"},
00075
00076 {
IDERR_Z_OUT_OF_VOLUME,
"Sortie du volume en z"},
00077 {
IDERR_Y_OUT_OF_VOLUME,
"Sortie du volume en y"},
00078 {
IDERR_X_OUT_OF_VOLUME,
"Sortie du volume en x"},
00079
00080 {
IDERR_Y_GREATER_DIMY,
"Parametre dy > DIMY Fenetre"},
00081 {
IDERR_X_GREATER_DIMX,
"Parametre dx > DIMX Fenetre"},
00082 {
IDERR_Z_GREATER_DIMZ,
"Parametre dz > DIMZ Fenetre"},
00083
00084 {
IDERR_NOT_SQUARE,
"Image non carree"},
00085
00086 {
IDERR_POINTER_IS_NULL,
"Pointeur NULL"},
00087
00088 {
IDERR_WRONG_TYPE,
"Mauvais type Libido"},
00089 {
IDERR_WRONG_LIBTYPE,
"Type Libido incorrect"},
00090
00091 {
IDERR_UNDEF_SCREEN,
"Code ecran invalide"},
00092
00093 {
IDERR_WRONG_DIM,
"Dimensions invalides"},
00094 {
IDERR_WRONG_SIGNALS,
"Signaux incompatibles"},
00095 {
IDERR_WRONG_IMAGES,
"Images incompatibles"},
00096 {
IDERR_WRONG_VOLUMES,
"Volumes incompatibles"},
00097 {
IDERR_WRONG_CONTOURS,
"Contours incompatibles"},
00098 {
IDERR_WRONG_TYPES,
"Types incompatibles"},
00099
00100 {
IDERR_OPEN_FAILED,
"Erreur Ouverture fichier"},
00101 {
IDERR_READ_FAILED,
"Erreur Lecture fichier"},
00102 {
IDERR_WRITE_FAILED,
"Erreur Ecriture fichier"},
00103 {
IDERR_NON_ACR_FILE,
"Fichier Non ACR "},
00104
00105 {
IDERR_WRONG_FILE_NAME,
"Nom Fichier incorrect"},
00106 {
IDERR_EMPTY_FILE_NAME,
"Nom Fichier NULL"},
00107
00108 {
IDERR_Z_OUT_OF_SEQUENCE,
"Sortie du Sequence en z"},
00109 {
IDERR_Y_OUT_OF_SEQUENCE,
"Sortie du Sequence en y"},
00110 {
IDERR_X_OUT_OF_SEQUENCE,
"Sortie du Sequence en x"},
00111 {
IDERR_T_OUT_OF_SEQUENCE,
"Sortie du Sequence en t"},
00112
00113 {
IDERR_ALLOC_SEQ,
"Echec allocation Sequence"},
00114 {
IDERR_WRONG_SEQUENCES,
"Sequences Incompatibles"},
00115 {
IDERR_MIN_EQ_MAX,
"Min = Max"},
00116
00117 {
IDERR_BAD_DIRECTION,
"Bad Direction"},
00118 {
IDERR_THRESHOLD_OUT_OF_RANGE,
"Threshold out of range"},
00119 {
IDERR_NULL_POINTER_ARGUMENT,
"NULL_POINTER_ARGUMENT"},
00120 {
IDERR_WRONG_IMAGE_TYPE,
"WRONG_IMAGE_TYPE"},
00121 {
IDERR_WRONG_PARAMETER,
"WRONG_PARAMETER"},
00122 {
IDERR_OUT_OF_RANGE,
"OUT_OF_RANGE"},
00123 {
IDERR_CALCULATION,
"CALCULATION"},
00124 {
IDERR_WRONG_MATRIX_DIMENSION,
"WRONG_MATRIX_DIMENSION"},
00125 {
IDERR_WRONG_IMAGE_SIZE,
"WRONG_IMAGE_SIZE"},
00126 {
IDERR_WINDOW_SIZE_LESS_THAN_ZERO,
"WINDOW_SIZE_LESS_THAN_ZERO"},
00127 {
IDERR_POINTER_IS_ZERO,
"POINTER_IS_ZERO"},
00128 {
IDERR_NO_IMAGE_ALLOCATED,
"NO_IMAGE_ALLOCATED"},
00129 {
IDERR_WINDOW_SIZE_NOT_POWER_TO_2,
"WINDOW_SIZE_NOT_POWER_TO_2"},
00130 {
IDERR_PARAMETER_NOT_IN_RANGE,
"PARAMETER_NOT_IN_RANGE"},
00131 {
IDERR_PARAMETER_MUST_BE_BOOLEAN,
"PARAMETER_MUST_BE_BOOLEAN"},
00132
00133 {0, 0}
00134 };
00135
00145 char *
IdErrMsg(
int code)
00146 {
00147
MSGERROR *ptab = taberror;
00148
while (ptab->
msg) {
00149
if (ptab->
code ==
code)
00150
return ptab->
msg;
00151 ptab++;
00152 }
00153
return "Unknown Error Code";
00154 }
Generated on Wed Oct 19 09:28:34 2005 for SIMRI3D by
1.3.7