00001 /************************************************************************* 00002 * $Id: iderr.h,v 1.1 2005/09/09 08:22:29 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 * 00038 * Description : Gestion des erreurs dans LIBIDO. 00039 * VOIR gereer.c 00040 * 00041 **************************************************************************/ 00042 00043 #ifndef __IDERR_H__ 00044 #define __IDERR_H__ 00045 00046 // Provisoirement la, juska ce que tout les IdExit soient tous vires des 00047 // sources de libido... <<Soupir>> 00048 void IdExit (int); 00049 00050 extern int IdErrno; /* Definie dans gereerr.c */ 00051 00052 char * IdErrMsg (int); 00053 00054 #define IDERR_Y_OUT_OF_IMAGE 201 /* Sortie de l'image en y */ 00055 #define IDERR_X_OUT_OF_IMAGE 202 /* Sortie de l'image en x */ 00056 #define IDERR_Y_GREATER_DIMY 203 /* Parametre dy > DIMY Fenetre */ 00057 #define IDERR_X_GREATER_DIMX 204 /* Parametre dx > DIMX Fenetre */ 00058 00059 #define IDERR_NOT_SQUARE 206 /* Image non carree */ 00060 00061 #define IDERR_POINTER_IS_NULL 210 /* Pointeur NULL (parametre) */ 00062 #define IDERR_NOT_FLOATLIST 220 /* Liste flottants incorrecte */ 00063 #define IDERR_LABEL_UNDEF 221 /* Label non defini */ 00064 #define IDERR_TOO_LONG_LIST 222 /* Liste avec trop d'elements */ 00065 #define IDERR_INVALID_NUMBER 223 /* Parametre Numerique invalide */ 00066 #define IDERR_NOT_INTLIST 224 /* Liste entiers incorrecte */ 00067 00068 #define IDERR_WRONG_TYPE 225 /* Mauvais type Libido */ 00069 #define IDERR_UNDEF_SCREEN 226 /* Code ecran invalide */ 00070 00071 #define IDERR_WRONG_DIM 227 /* Dimensions invalides */ 00072 #define IDERR_WRONG_IMAGES 228 /* Images incompatibles */ 00073 #define IDERR_WRONG_LIBTYPE 229 /* Type libido invalide */ 00074 00075 00076 #define IDERR_Z_OUT_OF_VOLUME 301 /* Sortie du volume en z */ 00077 #define IDERR_Y_OUT_OF_VOLUME 302 /* Sortie du volume en y */ 00078 #define IDERR_X_OUT_OF_VOLUME 303 /* Sortie du volume en x */ 00079 #define IDERR_Z_GREATER_DIMZ 304 /* Parametre dz > DIMZ Fenetre */ 00080 #define IDERR_WRONG_VOLUMES 305 /* Volumes incompatibles */ 00081 00082 #define IDERR_WRONG_SIGNALS 234 /* Signaux incompatibles */ 00083 00084 #define IDERR_OPEN_FAILED 211 /* Erreur ouverture fichier */ 00085 #define IDERR_READ_FAILED 235 /* Erreur Lecture fichier */ 00086 #define IDERR_WRITE_FAILED 236 /* Erreur Ecriture fichier */ 00087 #define IDERR_NON_ACR_FILE 243 /* Lecture Fichier NON ACR */ 00088 00089 #define IDERR_ALLOC_MEM 200 /* erreur d'allocation memoiire */ 00090 #define IDERR_ALLOC_SIG 230 /* erreur Alloc Signal */ 00091 #define IDERR_ALLOC_IMA 231 /* erreur Alloc Image */ 00092 #define IDERR_ALLOC_VOL 232 /* erreur Alloc Volume */ 00093 #define IDERR_ALLOC_SUB 233 /* erreur Alloc Sous-Structure */ 00094 00095 #define IDERR_ALLOC_PARAM 237 /* Echec allocation PARAM */ 00096 #define IDERR_ALLOC_CNT 238 /* Echec allocation Contour */ 00097 #define IDERR_ALLOC_CNT3D 255 /* Echec allocation Contour 3D */ 00098 #define IDERR_ALLOC_LST 239 /* Echec allocation Liste */ 00099 #define IDERR_ALLOC_TREE 240 /* Echec allocation Arbre */ 00100 #define IDERR_ALLOC_FACE 241 /* Echec allocation Face */ 00101 #define IDERR_ALLOC_ELEM 244 /* Echec allocation Element */ 00102 #define IDERR_EMPTY_LIST 245 /* Liste Vide */ 00103 00104 #define IDERR_WRONG_CONTOURS 242 /* Contours incompatibles */ 00105 #define IDERR_WRONG_TYPES 246 /* Types incompatibles */ 00106 00107 #define IDERR_WRONG_FILE_NAME 247 /* Nom Fichier incorrect */ 00108 #define IDERR_EMPTY_FILE_NAME 248 /* Nom Fichier NULL */ 00109 00110 #define IDERR_Z_OUT_OF_SEQUENCE 249 /* Sortie Sequence en z */ 00111 #define IDERR_Y_OUT_OF_SEQUENCE 250 /* Sortie Sequence en y */ 00112 #define IDERR_X_OUT_OF_SEQUENCE 251 /* Sortie Sequence en x */ 00113 #define IDERR_T_OUT_OF_SEQUENCE 252 /* Sortie Sequence en t */ 00114 00115 #define IDERR_ALLOC_SEQ 253 /* Echec allocation Sequence */ 00116 #define IDERR_WRONG_SEQUENCES 254 /* Sequences incompatibles */ 00117 #define IDERR_MIN_EQ_MAX 256 /* Min = Max */ 00118 00119 00120 /* Next : 257 */ 00121 00122 #define IDERR_BAD_DIRECTION 800 00123 #define IDERR_THRESHOLD_OUT_OF_RANGE 801 00124 #define IDERR_NULL_POINTER_ARGUMENT 802 00125 #define IDERR_WRONG_IMAGE_TYPE 803 00126 #define IDERR_WRONG_PARAMETER 804 00127 #define IDERR_OUT_OF_RANGE 805 00128 #define IDERR_CALCULATION 806 00129 #define IDERR_WRONG_MATRIX_DIMENSION 807 00130 #define IDERR_WRONG_IMAGE_SIZE 808 00131 #define IDERR_WINDOW_SIZE_LESS_THAN_ZERO 810 00132 #define IDERR_POINTER_IS_ZERO 811 00133 #define IDERR_NO_IMAGE_ALLOCATED 812 00134 #define IDERR_WINDOW_SIZE_NOT_POWER_TO_2 809 00135 #define IDERR_PARAMETER_NOT_IN_RANGE 813 00136 #define IDERR_PARAMETER_MUST_BE_BOOLEAN 814 00137 00138 #endif 00139 00140 00141 /* DEFINITION DESCRIPTION ************************************************** 00142 00143 iderr.h (codes_erreurs) 00144 00145 RESUME: Codes d'erreur retournes par les fonctions LibIdo 00146 00147 DESCRIPTION : Codes d'erreur retournes par les differentes fonctions LibIDO. 00148 Voir IdErrMsg, IdErrPrintf. 00149 00150 0 , "Pas d'erreur" , 00151 IDERR_NOT_FLOATLIST , "Liste flottants incorrecte" , 00152 IDERR_LABEL_UNDEF , "Label non defini" , 00153 IDERR_TOO_LONG_LIST , "Liste avec trop d'elements" , 00154 IDERR_INVALID_NUMBER , "Param Numerique invalide" , 00155 IDERR_NOT_INTLIST , "Liste entiers incorrecte" , 00156 IDERR_ALLOC_MEM , "Echec allocation memoire" , 00157 IDERR_ALLOC_SIG , "Echec allocation Signal" , 00158 IDERR_ALLOC_IMA , "Echec allocation Image" , 00159 IDERR_ALLOC_VOL , "Echec allocation Volume" , 00160 IDERR_ALLOC_PARAM , "Echec allocation PARAM" , 00161 IDERR_ALLOC_CNT , "Echec allocation Contour" , 00162 IDERR_ALLOC_CNT3D , "Echec allocation Contour3D" , 00163 IDERR_ALLOC_LST , "Echec allocation Liste" , 00164 IDERR_ALLOC_TREE , "Echec allocation Arbre" , 00165 IDERR_ALLOC_FACE , "Echec allocation Face" , 00166 IDERR_ALLOC_LST , "Echec allocation Liste" , 00167 IDERR_ALLOC_ELEM , "Echec allocation Element" , 00168 IDERR_EMPTY_LIST , "Liste Vide" , 00169 IDERR_ALLOC_SUB , "Echec allocation Sous-Struct", 00170 IDERR_Y_OUT_OF_IMAGE , "Sortie de l'image en y" , 00171 IDERR_X_OUT_OF_IMAGE , "Sortie de l'image en x" , 00172 IDERR_Z_OUT_OF_VOLUME , "Sortie du volume en z" , 00173 IDERR_Y_OUT_OF_VOLUME , "Sortie du volume en y" , 00174 IDERR_X_OUT_OF_VOLUME , "Sortie du volume en x" , 00175 IDERR_Y_GREATER_DIMY , "Parametre dy > DIMY Fenetre" , 00176 IDERR_X_GREATER_DIMX , "Parametre dx > DIMX Fenetre" , 00177 IDERR_Z_GREATER_DIMZ , "Parametre dz > DIMZ Fenetre" , 00178 IDERR_NOT_SQUARE , "Image non carree" , 00179 IDERR_POINTER_IS_NULL , "Pointeur NULL" , 00180 IDERR_WRONG_TYPE , "Mauvais type Libido" , 00181 IDERR_WRONG_LIBTYPE , "Type Libido incorrect" , 00182 IDERR_UNDEF_SCREEN , "Code ecran invalide" , 00183 IDERR_WRONG_DIM , "Dimensions invalides" , 00184 IDERR_WRONG_SIGNALS , "Signaux incompatibles" , 00185 IDERR_WRONG_IMAGES , "Images incompatibles" , 00186 IDERR_WRONG_VOLUMES , "Volumes incompatibles" , 00187 IDERR_WRONG_CONTOURS , "Contours incompatibles" , 00188 IDERR_WRONG_TYPES , "Types incompatibles" ; 00189 IDERR_OPEN_FAILED , "Erreur Ouverture fichier" , 00190 IDERR_READ_FAILED , "Erreur Lecture fichier" , 00191 IDERR_WRITE_FAILED , "Erreur Ecriture fichier" , 00192 IDERR_NON_ACR_FILE , "Lecture Fichier NON ACR" , 00193 IDERR_WRONG_FILE_NAME , "Nom Fichier incorrect" , 00194 IDERR_EMPTY_FILE_NAME , "Nom Fichier NULL" 00195 00196 00197 ******************************************************** END DESCRIPTION */