# 2.3.6/med_misc.h

Aller à la documentation de ce fichier.

    00001 /*  This file is part of MED.
    00002  *
    00003  *  COPYRIGHT (C) 1999 - 2011  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 MED23_MISC_H
    00019 #define MED23_MISC_H
    00020
    00021 #include <med.h>
    00022 #include <stdarg.h>
    00023
    00024 #ifdef __cplusplus
    00025 extern "C" {
    00026 #endif
    00027
    00028 /* type fonction MED pour le versionement des APIs */
    00029 typedef void (*MedFuncType)(int,...) ;
    00030
    00031 extern MEDC_EXPORT
    00032 MedFuncType    _MEDversionedApi(char * name, med_int majeur,
    00033                                  med_int mineur, med_int release);
    00034
    00035 extern MEDC_EXPORT
    00036 med_mode_acces _MEDmodeAcces (med_idt oid);
    00037
    00038 extern MEDC_EXPORT
    00039 med_err _MEDsetModeAcces(med_idt fid, med_mode_acces mode);
    00040
    00041
    00042 /* CHAINES DE CARACTERES FORTRAN => C */
    00043 extern MEDC_EXPORT
    00044 med_err _MEDcstring(char *source, char *dest);
    00045
    00046 extern MEDC_EXPORT
    00047 char *_MED1cstring(char *chaine,int longueur_reelle,int longueur_fixee);
    00048
    00049 extern MEDC_EXPORT
    00050 char *_MED2cstring(char *chaine, int longueur);
    00051
    00052 extern MEDC_EXPORT
    00053 med_err _MEDcstringFree(char *chaine);
    00054
    00055 extern MEDC_EXPORT
    00056 med_err _MEDfstring(char *chaine, med_int longueur_fixee);
    00057
    00058 /* Noms associes aux objets MED */
    00059 extern MEDC_EXPORT
    00060 med_err _MEDnomEntite(char *nom_ent,med_entite_maillage type_ent);
    00061
    00062 extern MEDC_EXPORT
    00063 med_err _MEDnomGeometrie(char *nom_geo,med_geometrie_element type_geo);
    00064
    00065 extern MEDC_EXPORT
    00066 med_err _MEDnomGeometrie30(char *nom_geo,med_geometrie_element type_geo);
    00067
    00068 extern MEDC_EXPORT
    00069 med_err _MEDparametresGeometrie(med_entite_maillage type_ent,
    00070                                med_geometrie_element type_geo, int *dim, int *nnoe,
    00071                                int *ndes);
    00072 extern MEDC_EXPORT
    00073 med_err _MEDnomDataset(char *nom_dataset,med_table quoi,
    00074                        med_connectivite type_conn);
    00075
    00076 /* Geometrie des objets MED */
    00077 extern MEDC_EXPORT
    00078 med_err _MEDGeometrieElement(med_geometrie_element typ_geo[],
    00079                              med_entite_maillage typ_ent);
    00080
    00081
    00082 extern MEDC_EXPORT med_err MEDcheckVersion(med_idt fid);
    00083
    00084 /* Gestion des messages d'erreur */
    00085 #include "med_exit_if.h"
    00086
    00087 #ifdef __cplusplus
    00088 }
    00089 #endif
    00090
    00091 #endif /* MED23_MISC_H */
    00092