Main Page | Modules | Alphabetical List | Data Structures | File List | Data Fields | Globals

kererr.c

Go to the documentation of this file.
00001 /************************************************************************* 00002 * $Id: kererr.c,v 1.1 2005/09/09 08:22:50 bellet Exp $ 00003 ************************************************************************** 00004 This software is governed by the CeCILL license under French law and 00005 abiding by the rules of distribution of free software. You can use, 00006 modify and/ or redistribute the software under the terms of the CeCILL 00007 license as circulated by CEA, CNRS and INRIA at the following URL 00008 "http://www.cecill.info". 00009 00010 As a counterpart to the access to the source code and rights to copy, 00011 modify and redistribute granted by the license, users are provided only 00012 with a limited warranty and the software's author, the holder of the 00013 economic rights, and the successive licensors have only limited 00014 liability. 00015 00016 In this respect, the user's attention is drawn to the risks associated 00017 with loading, using, modifying and/or developing or reproducing the 00018 software by the user in light of its specific status of free software, 00019 that may mean that it is complicated to manipulate, and that also 00020 therefore means that it is reserved for developers and experienced 00021 professionals having in-depth computer knowledge. Users are therefore 00022 encouraged to load and test the software's suitability as regards their 00023 requirements in conditions enabling the security of their systems and/or 00024 data to be ensured and, more generally, to use and operate it in the 00025 same conditions as regards security. 00026 00027 The fact that you are presently reading this means that you have had 00028 knowledge of the CeCILL license and that you accept its terms. 00029 00030 Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de 00031 l'Image). All rights reserved. See License.txt for details. 00032 00033 Version 1.0 05/09/2005 00034 *************************************************************************/ 00035 00036 /* 00037 * Gestion des erreurs LIBIBO par IdErrno 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} /* Watch out : keep this as the last entry */ 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 doxygen 1.3.7