med_err.h

Aller à la documentation de ce fichier.
00001 /*  This file is part of MED.
00002  *
00003  *  COPYRIGHT (C) 1999 - 2015  EDF R&D, CEA/DEN
00004  *  MED is free software: you can redistribute it and/or modify
00005  *  it under the terms of the GNU Lesser General Public License as published by
00006  *  the Free Software Foundation, either version 3 of the License, or
00007  *  (at your option) any later version.
00008  *
00009  *  MED is distributed in the hope that it will be useful,
00010  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
00011  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00012  *  GNU Lesser General Public License for more details.
00013  *
00014  *  You should have received a copy of the GNU Lesser General Public License
00015  *  along with MED.  If not, see <http://www.gnu.org/licenses/>.
00016  */
00017 
00018 #ifndef MED_ERR
00019 #define MED_ERR
00020 
00021 
00022 #define MED_ERR_UNDEFINED -1
00023 
00024 #define MED_ERR_CREATE -100
00025 #define MED_ERR_READ -200
00026 #define MED_ERR_WRITE -300
00027 #define MED_ERR_CLOSE -400
00028 #define MED_ERR_ACCESS -500
00029 #define MED_ERR_SELECT -600
00030 #define MED_ERR_INIT -700
00031 #define MED_ERR_RANGE -800
00032 #define MED_ERR_NULL -900
00033 #define MED_ERR_NOTNULL -1000
00034 #define MED_ERR_OPEN -1100
00035 #define MED_ERR_DOESNTEXIST -1200
00036 #define MED_ERR_UNRECOGNIZED -1300
00037 #define MED_ERR_INVALID -1400
00038 #define MED_ERR_DELETE -1500
00039 #define MED_ERR_NOTEQUAL -1600
00040 #define MED_ERR_EXIST -1700
00041 #define MED_ERR_MOUNT -1800
00042 #define MED_ERR_UMOUNT -1900
00043 #define MED_ERR_ULINK -2100
00044 #define MED_ERR_COUNT -2200
00045 #define MED_ERR_CALL -2300
00046 #define MED_ERR_VISIT -2400
00047 #define MED_ERR_COPY -2500
00048 #define MED_ERR_USE -2600
00049 
00050 
00051 
00052 #define MED_ERR_UNDEFINED_MSG "Erreur indéfinie "
00053 #define MED_ERR_CREATE_MSG "Erreur à la création "
00054 #define MED_ERR_READ_MSG "Erreur à la lecture "
00055 #define MED_ERR_WRITE_MSG "Erreur à l'écriture "
00056 #define MED_ERR_CLOSE_MSG "Erreur à la fermeture "
00057 #define MED_ERR_ACCESS_MSG "Erreur d'accès "
00058 #define MED_ERR_SELECT_MSG "Erreur de sélection "
00059 #define MED_ERR_INIT_MSG "Erreur d'initialisation "
00060 #define MED_ERR_RANGE_MSG "Erreur de domaine de définition "
00061 #define MED_ERR_NULL_MSG "Erreur de valeur attendue nulle "
00062 #define MED_ERR_NOTNULL_MSG "Erreur de valeur attendue non nulle "
00063 #define MED_ERR_OPEN_MSG "Erreur à l'ouverture "
00064 #define MED_ERR_DOESNTEXIST_MSG "Erreur de non existence "
00065 #define MED_ERR_UNRECOGNIZED_MSG "Erreur de valeur non reconnue "
00066 #define MED_ERR_INVALID_MSG "Erreur de valeur invalide "
00067 #define MED_ERR_DELETE_MSG "Erreur de suppression "
00068 #define MED_ERR_NOTEQUAL_MSG "Erreur d'égalité "
00069 #define MED_ERR_EXIST_MSG "Erreur d'existence "
00070 #define MED_ERR_MOUNT_MSG "Erreur au montage de l'objet "
00071 #define MED_ERR_UMOUNT_MSG "Erreur au démontage de l'objet "
00072 #define MED_ERR_ULINK_MSG "Erreur dans la destruction du lien "
00073 #define MED_ERR_COUNT_MSG "Erreur de comptage "
00074 #define MED_ERR_CALL_MSG "Erreur d'appel "
00075 #define MED_ERR_VISIT_MSG "Erreur d'exploration "
00076 #define MED_ERR_COPY_MSG "Erreur de copie "
00077 #define MED_ERR_USE_MSG "Erreur d'utilisation  "
00078 
00079 
00080 
00081 #define MED_ERR_FILE -1
00082 #define MED_ERR_MESH -2
00083 #define MED_ERR_SUPPORT_MESH -3
00084 #define MED_ERR_ENTITY -4
00085 #define MED_ERR_STRUCT_ELEMENT -5
00086 #define MED_ERR_FAMILY -6
00087 #define MED_ERR_GROUP -7
00088 #define MED_ERR_LOCALIZATION -8
00089 #define MED_ERR_INTERPOLATION -9
00090 #define MED_ERR_FIELD -10
00091 #define MED_ERR_JOINT -11
00092 #define MED_ERR_FILTER -12
00093 #define MED_ERR_PROFILE -13
00094 #define MED_ERR_SCALAR -14
00095 #define MED_ERR_MEMSPACE -15
00096 #define MED_ERR_DISKSPACE -16
00097 #define MED_ERR_DATASET -17
00098 #define MED_ERR_DATAGROUP -18
00099 #define MED_ERR_ATTRIBUTE -19
00100 #define MED_ERR_PROPERTY -20
00101 #define MED_ERR_INTERLACINGMODE -21
00102 #define MED_ERR_PARAMETER -22
00103 #define MED_ERR_ACCESSMODE -23
00104 #define MED_ERR_GEOMETRIC -24
00105 #define MED_ERR_DATASPACE -25
00106 #define MED_ERR_FILESPACE -26
00107 #define MED_ERR_LIBRARY -27
00108 #define MED_ERR_API -28
00109 #define MED_ERR_STORAGEMODE -29
00110 #define MED_ERR_COMPUTINGSTEP -30
00111 #define MED_ERR_HDFTYPE -31
00112 #define MED_ERR_LINK -32
00113 #define MED_ERR_DATATYPE -33
00114 #define MED_ERR_MEDDATATYPE -34
00115 #define MED_ERR_CONNECTIVITYMODE -35
00116 #define MED_ERR_GRIDTYPE -36
00117 #define MED_ERR_AXISTYPE -37
00118 #define MED_ERR_EQUIVALENCE -38
00119 #define MED_ERR_SUBDOMAINJOINT -39
00120 #define MED_ERR_STRUCT -40
00121 #define MED_ERR_INTERP -41
00122 #define MED_ERR_MESHTYPE -42
00123 #define MED_ERR_CORRESPONDENCE -43
00124 #define MED_ERR_DIMENSION -44
00125 #define MED_ERR_FILEVERSION -45
00126 #define MED_ERR_MEMFILE -46
00127 
00128 #define MED_ERR_FILE_MSG "du fichier "
00129 #define MED_ERR_MESH_MSG "du maillage "
00130 #define MED_ERR_SUPPORT_MESH_MSG "du maillage support "
00131 #define MED_ERR_ENTITY_MSG "de l'entité "
00132 #define MED_ERR_STRUCT_ELEMENT_MSG "de l'élément de structure "
00133 #define MED_ERR_FAMILY_MSG "de la famille "
00134 #define MED_ERR_GROUP_MSG "du groupe "
00135 #define MED_ERR_LOCALIZATION_MSG "de la localisation des points d'intégration "
00136 #define MED_ERR_INTERPOLATION_MSG "de la fonction d'interpolation "
00137 #define MED_ERR_FIELD_MSG "du champ résultat "
00138 #define MED_ERR_JOINT_MSG "du joint "
00139 #define MED_ERR_FILTER_MSG "du filtre "
00140 #define MED_ERR_PROFILE_MSG "du profil "
00141 #define MED_ERR_SCALAR_MSG "des valeurs scalaires "
00142 #define MED_ERR_LIBRARY_MSG "du numéro de version de la librairie "
00143 #define MED_ERR_MEMSPACE_MSG "du memspace "
00144 #define MED_ERR_DISKSPACE_MSG "du dataspace "
00145 #define MED_ERR_DATASET_MSG "du dataset "
00146 #define MED_ERR_DATAGROUP_MSG "du groupe "
00147 #define MED_ERR_ATTRIBUTE_MSG "d'attribut "
00148 #define MED_ERR_PROPERTY_MSG "de propriété "
00149 #define MED_ERR_INTERLACINGMODE_MSG "d'entrelacement "
00150 #define MED_ERR_PARAMETER_MSG "du paramètre "
00151 #define MED_ERR_ACCESSMODE_MSG "du mode d'accès "
00152 #define MED_ERR_GEOMETRIC_MSG "du type géométrique "
00153 #define MED_ERR_DATASPACE_MSG "du dataspace "
00154 #define MED_ERR_FILESPACE_MSG  "du filespace "
00155 #define MED_ERR_API_MSG  "de l'API "
00156 #define MED_ERR_STORAGEMODE_MSG "de mode de stockage "
00157 #define MED_ERR_COMPUTINGSTEP_MSG "de l'étape de calcul "
00158 #define MED_ERR_HDFTYPE_MSG "du type hdf "
00159 #define MED_ERR_LINK_MSG "du lien "
00160 #define MED_ERR_DATATYPE_MSG "du datatype "
00161 #define MED_ERR_MEDDATATYPE_MSG "du datatatype med demandé "
00162 #define MED_ERR_CONNECTIVITYMODE_MSG "du mode de connectivité "
00163 #define MED_ERR_GRIDTYPE_MSG "du type de grille "
00164 #define MED_ERR_AXISTYPE_MSG "du type de repère "
00165 #define MED_ERR_EQUIVALENCE_MSG "de l'équivalence "
00166 #define MED_ERR_SUBDOMAINJOINT_MSG "de joint  "
00167 #define MED_ERR_STRUCT_MSG "de l'élément de structure "
00168 #define MED_ERR_INTERP_MSG "de l'interpolation "
00169 #define MED_ERR_PARAM_MSG "du parametre "
00170 #define MED_ERR_MESHTYPE_MSG "du type de maillage"
00171 #define MED_ERR_CORRESPONDENCE_MSG "de la correspondance "
00172 #define MED_ERR_DIMENSION_MSG "de dimension"
00173 #define MED_ERR_FILEVERSION_MSG "de version de fichier"
00174 #define MED_ERR_MEMFILE_MSG "de fichier mémoire"
00175 
00176 /*COMPLEMENTS*/
00177 #define MED_ERR_VALUE_MSG "de valeur "
00178 #define MED_ERR_SIZE_MSG "de taille "
00179 #define MED_ERR_GSIZE_MSG "de taille trop grande "
00180 #define MED_ERR_LSIZE_MSG "de taille trop petite "
00181 #define MED_ERR_ID_MSG "d'identifiant "
00182 #define MED_ERR_ARRAY_MSG "(tableau) "
00183 #define MED_ERR_MODE_MSG "en mode "
00184 #define MED_ERR_PARALLEL_MSG "en parallelisme "
00185 #define MED_ERR_ACCESS2_MSG "du mode d'accès "
00186 #define MED_ERR_FORBIDDEN_MSG "interdit(e) "
00187 #define MED_ERR_TYPEOF_MSG "de type "
00188 #define MED_ERR_NAME_MSG "de nom "
00189 #define MED_ERR_INTERNAL_MSG "interne "
00190 #define MED_ERR_NBR_MSG "nombre de "
00191 
00192 
00193 /* Pour générer la table :
00194   for i in `grep 'MED_ERR_' med_err.h | grep -v 'MSG' | awk '{print $2}' `; do echo "{ $i , ${i}_MSG },"; done
00195 */
00196 /* typedef struct _med_err_tab_entry { */
00197 /*   int errno; */
00198 /*   const char* const mesg; */
00199 /* } med_err_tab_entry; */
00200 
00201 /* med_err_tab_entry MED_TAB_ERR[]={ */
00202 /*   { MED_ERR_UNDEFINED , MED_ERR_UNDEFINED_MSG }, */
00203 /*   { MED_ERR_CREATE , MED_ERR_CREATE_MSG }, */
00204 /*   { MED_ERR_READ , MED_ERR_READ_MSG }, */
00205 /*   { MED_ERR_WRITE , MED_ERR_WRITE_MSG }, */
00206 /*   { MED_ERR_CLOSE , MED_ERR_CLOSE_MSG }, */
00207 /*   { MED_ERR_ACCESS , MED_ERR_ACCESS_MSG }, */
00208 /*   { MED_ERR_SELECT , MED_ERR_SELECT_MSG }, */
00209 /*   { MED_ERR_INIT , MED_ERR_INIT_MSG }, */
00210 /*   { MED_ERR_FILE , MED_ERR_FILE_MSG }, */
00211 /*   { MED_ERR_MESH , MED_ERR_MESH_MSG }, */
00212 /*   { MED_ERR_SUPPORT_MESH , MED_ERR_SUPPORT_MESH_MSG }, */
00213 /*   { MED_ERR_ENTITY , MED_ERR_ENTITY_MSG }, */
00214 /*   { MED_ERR_STRUCT_ELEMENT , MED_ERR_STRUCT_ELEMENT_MSG }, */
00215 /*   { MED_ERR_FAMILY , MED_ERR_FAMILY_MSG }, */
00216 /*   { MED_ERR_GROUP , MED_ERR_GROUP_MSG }, */
00217 /*   { MED_ERR_LOCALIZATION , MED_ERR_LOCALIZATION_MSG }, */
00218 /*   { MED_ERR_INTERPOLATION , MED_ERR_INTERPOLATION_MSG }, */
00219 /*   { MED_ERR_FIELD , MED_ERR_FIELD_MSG }, */
00220 /*   { MED_ERR_JOINT , MED_ERR_JOINT_MSG }, */
00221 /*   { MED_ERR_FILTER , MED_ERR_FILTER_MSG }, */
00222 /*   { MED_ERR_PROFILE , MED_ERR_PROFILE_MSG }, */
00223 /*   { MED_ERR_SCALAR , MED_ERR_SCALAR_MSG }, */
00224 /*   { MED_ERR_MEMSPACE , MED_ERR_MEMSPACE_MSG }, */
00225 /*   { MED_ERR_DISKSPACE , MED_ERR_DISKSPACE_MSG }, */
00226 /*   { MED_ERR_DATASET , MED_ERR_DATASET_MSG }, */
00227 /*   { MED_ERR_DATAGROUP , MED_ERR_DATAGROUP_MSG }, */
00228 /*   { MED_ERR_ATTRIBUTE , MED_ERR_ATTRIBUTE_MSG } */
00229 /* } */
00230 
00231 #endif

Généré le Thu Oct 8 14:26:16 2015 pour MED fichier par  doxygen 1.6.1