# 2.3.6/med_hdfi.h

Aller à la documentation de ce fichier.

    00001 /*  This file is part of MED.
    00002  *
    00003  *  COPYRIGHT (C) 1999 - 2012  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_HDFI_H
    00019 #define MED_HDFI_H
    00020 #include <med.h>
    00021
    00022 #ifdef __cplusplus
    00023 extern "C" {
    00024 #endif
    00025
    00026
    00027 /* FONCTIONS INTERFACE MED/HDF */
    00028
    00029 /* Gestion des fichiers HDF */
    00030 extern MEDC_EXPORT
    00031 med_idt _MEDfichierCreer(char *nom, med_mode_acces mode);
    00032
    00033 extern MEDC_EXPORT
    00034 med_idt _MEDfichierOuvrir(char *nom,med_mode_acces mode);
    00035
    00036 extern MEDC_EXPORT
    00037 med_err _MEDfichierFermer(med_idt fid);
    00038
    00039 extern MEDC_EXPORT
    00040 med_err _MEDfichierNo(med_idt id, unsigned long * fileno);
    00041
    00042 extern MEDC_EXPORT
    00043 med_err _MEDfichierMonter(med_idt pid, const char *nom, med_idt fid);
    00044
    00045 extern MEDC_EXPORT
    00046 med_err _MEDfichierDemonter(med_idt pid, const char *nom);
    00047
    00048
    00049 /* Gestion des datagroups HDF */
    00050 extern MEDC_EXPORT
    00051 med_idt _MEDdatagroupCreer(med_idt pid, char *nom);
    00052
    00053 extern MEDC_EXPORT
    00054 med_idt _MEDdatagroupOuvrir(med_idt pid, char *nom);
    00055
    00056 extern MEDC_EXPORT
    00057 med_err _MEDdatagroupFermer(med_idt id);
    00058
    00059 extern MEDC_EXPORT
    00060 med_err _MEDdatagroupLienCreer(med_idt id,const char *nom, const char *nom_lien);
    00061
    00062 extern MEDC_EXPORT
    00063 med_err _MEDdatagroupLienSupprimer(med_idt id,const char *nom_lien);
    00064
    00065 /* Gestion des datasets HDF */
    00066
    00067 extern MEDC_EXPORT
    00068 med_idt _MEDdatasetOuvrir(med_idt pid,char *nom);
    00069
    00070 extern MEDC_EXPORT
    00071 med_err _MEDdatasetFermer(med_idt id);
    00072
    00073 extern MEDC_EXPORT
    00074 med_err _MEDdatasetNumEcrire (med_idt pere,char *nom, med_type_champ type,
    00075                               med_mode_switch interlace, med_size nbdim, med_size fixdim,
    00076                               med_size psize, med_mode_profil pflmod, med_int modifpfl, med_size * profil,
    00077                               med_int ngauss, med_size *size,  unsigned char *val);
    00078
    00079
    00080 extern MEDC_EXPORT
    00081 med_err _MEDdatasetNumLire(med_idt pere,char *nom,med_type_champ type,
    00082                            med_mode_switch interlace, med_size nbdim, med_size fixdim,
    00083                            med_size psize, med_mode_profil pflmod, med_int pflcmp, med_size * pfltab,
    00084                med_int ngauss, med_int nbelem, unsigned char *val);
    00085
    00086 extern MEDC_EXPORT
    00087 med_err _MEDdatasetStringEcrire(med_idt pere,char *nom,med_size *dimd,
    00088                                 char *val);
    00089
    00090 extern MEDC_EXPORT
    00091 med_err _MEDdatasetStringLire(med_idt pere,char *nom,char *val);
    00092
    00093 /* Gestion des attributs HDF */
    00094 extern MEDC_EXPORT
    00095 med_idt _MEDattrOuvrir(med_idt pid,char * nom);
    00096
    00097 extern MEDC_EXPORT
    00098 med_err _MEDattrFermer(med_idt id);
    00099
    00100 extern MEDC_EXPORT
    00101 med_err _MEDattrNumEcrire(med_idt pere,med_type_champ type,char *nom,unsigned char *val);
    00102
    00103 #define _MEDattrEntierEcrire(w,x,y)  _MEDattrNumEcrire(w,MED_INT   ,x,(unsigned char *) y)
    00104 #define _MEDattrFloatEcrire(w,x,y)   _MEDattrNumEcrire(w,MED_FLOAT64,x,(unsigned char *) y)
    00105
    00106 extern MEDC_EXPORT
    00107 med_err _MEDattrNumLire(med_idt pere,med_type_champ type,char *nom,unsigned char *val);
    00108
    00109 #define _MEDattrEntierLire(x,y,z) _MEDattrNumLire(x,MED_INT   ,y,(unsigned char*)z)
    00110 #define _MEDattrFloatLire(x,y,z)  _MEDattrNumLire(x,MED_FLOAT64,y,(unsigned char*)z)
    00111
    00112 extern MEDC_EXPORT
    00113 med_err _MEDattrStringEcrire(med_idt pere,char *nom,int longueur,char *val);
    00114
    00115 extern MEDC_EXPORT
    00116 med_err _MEDattrStringLire(med_idt pere,char *nom,int longueur,char *val);
    00117
    00118
    00119 /* Divers */
    00120 extern MEDC_EXPORT
    00121 med_err _MEDindiceInfo(med_idt id, const char *nom, void *donnees);
    00122
    00123 extern MEDC_EXPORT
    00124 med_err _MEDindiceNum(med_idt id,const char *nom, void *donnees);
    00125
    00126 extern MEDC_EXPORT
    00127 med_err _MEDobjetIdentifier(med_idt fid,char *chemin,int indice,void *nom);
    00128
    00129 extern MEDC_EXPORT
    00130 med_err _MEDnObjets(med_idt fid,char *chemin,int *n);
    00131
    00132 extern MEDC_EXPORT
    00133 void _MEDmodeErreurVerrouiller(void);
    00134
    00135 extern MEDC_EXPORT
    00136 void _MEDobjetsOuverts(med_idt fid);
    00137
    00138 #ifdef __cplusplus
    00139 }
    00140 #endif
    00141
    00142 #endif /* MED_HDFI_H */