# 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 MED_MISC_H
    00019 #define MED_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    _MEDversionedApi3(const char * const name, const med_int majeur,
    00033                                  const med_int mineur, const med_int release);
    00034
    00035 extern MEDC_EXPORT
    00036 med_access_mode _MEDmodeAcces (med_idt oid);
    00037
    00038 extern MEDC_EXPORT
    00039 med_err _MEDsetModeAcces(med_idt fid, med_access_mode 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 extern MEDC_EXPORT
    00059 med_err _MEDc2fString(const char *   const chainec,
    00060                             char *   const chainef,
    00061                       med_int        longueur_buffer77);
    00062
    00063
    00064 extern MEDC_EXPORT med_err
    00065 _MEDgetDatasetName(char * const datasetname,
    00066                    const med_data_type datatype,
    00067                    med_connectivity_mode cmode );
    00068
    00069 extern MEDC_EXPORT med_err
    00070 _MEDgetDatasetParameter(const med_data_type         meddatatype,
    00071                         const med_int               spacedim,
    00072                         const med_entity_type       entitytype,
    00073                         const med_geometry_type     geotype,
    00074                         const med_connectivity_mode cmode,
    00075                         med_int * const             nbofvalueperentity,
    00076                         med_int * const             nbofconstituentpervalue);
    00077
    00078 extern MEDC_EXPORT med_err
    00079 _MEDgetDatatype(med_internal_type  * const datatype,
    00080                 const med_data_type        meddatatype,
    00081                 med_connectivity_mode      cmode );
    00082
    00083 extern MEDC_EXPORT med_err
    00084 _MEDgetEntityTypeName(char * const entitytypename,
    00085                       const med_entity_type entitytype);
    00086
    00087 extern MEDC_EXPORT med_err
    00088 _MEDgetGeometricParameter(const med_entity_type       entitytype,
    00089                           const med_geometry_type     geotype,
    00090                           med_int * const             entdim,
    00091                           med_int * const             nnodes,
    00092                           med_int * const             nndes);
    00093
    00094 extern MEDC_EXPORT med_err
    00095 _MEDgetDynGeometricParameter(const med_idt fid,
    00096                              const med_entity_type       entitytype,
    00097                              const med_geometry_type     geotype,
    00098                              med_int * const             entdim,
    00099                              med_int * const             nnodes,
    00100                              med_int * const             ncells);
    00101
    00102 extern MEDC_EXPORT med_err
    00103 _MEDgetInternalGeometryTypeName(char * const geotypename,med_geometry_type geotype);
    00104
    00105 extern MEDC_EXPORT med_err
    00106 _MEDgetExternalGeometryTypeName(char * const geotypename,med_geometry_type geotype);
    00107
    00108 extern MEDC_EXPORT med_err
    00109 _MEDmeshtypeCompatibility(const med_data_type meddatatype,
    00110                           const med_mesh_type meshtype );
    00111
    00112 extern MEDC_EXPORT med_err
    00113 _MEDsetFilter(const med_int nbofspaces, const med_idt* const memspace,
    00114               const med_idt *const diskspace, const med_int nbofentity,
    00115               const med_int nbofvaluesperentity, const med_int nbofconstituentpervalue,
    00116               const med_int constituentselect, const med_switch_mode switchmode,
    00117               const med_int filterarraysize, const med_int profilearraysize, const med_storage_mode storagemode,
    00118               const char* const profilename, med_filter* const filter);
    00119
    00120 extern MEDC_EXPORT med_err
    00121 _MEDcheckVersion30(med_idt fid);
    00122
    00123 /*From C++*/
    00124 extern MEDC_EXPORT med_err
    00125 MEDversionLire(med_idt fid, med_int *majeur, med_int *mineur, med_int *release);
    00126
    00127 extern MEDC_EXPORT
    00128 med_geometry_type MEDgetGeometryTypeFromName(const char * const keycharpart);
    00129
    00130 /* Gestion des messages d'erreur */
    00131 /* extern MEDC_EXPORT */
    00132 /* void exit_if(char * fichier,int ligne, int condition,char * message, char * arg); */
    00133 #include <med_exit_if.h>
    00134
    00135 #ifdef __cplusplus
    00136 }
    00137 #endif
    00138
    00139 #endif /* MED_MISC_H */
    00140