Back to index

salome-med  6.5.0
med_hdfi.hxx
Go to the documentation of this file.
00001 /*************************************************************************
00002 * COPYRIGHT (C) 1999 - 2002  EDF R&D
00003 * THIS LIBRARY IS FREE SOFTWARE; YOU CAN REDISTRIBUTE IT AND/OR MODIFY
00004 * IT UNDER THE TERMS OF THE GNU LESSER GENERAL PUBLIC LICENSE 
00005 * AS PUBLISHED BY THE FREE SOFTWARE FOUNDATION; 
00006 * EITHER VERSION 2.1 OF THE LICENSE, OR (AT YOUR OPTION) ANY LATER VERSION.
00007 *
00008 * THIS LIBRARY IS DISTRIBUTED IN THE HOPE THAT IT WILL BE USEFUL, BUT
00009 * WITHOUT ANY WARRANTY; WITHOUT EVEN THE IMPLIED WARRANTY OF
00010 * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. SEE THE GNU
00011 * LESSER GENERAL PUBLIC LICENSE FOR MORE DETAILS.
00012 *
00013 * YOU SHOULD HAVE RECEIVED A COPY OF THE GNU LESSER GENERAL PUBLIC LICENSE
00014 * ALONG WITH THIS LIBRARY; IF NOT, WRITE TO THE FREE SOFTWARE FOUNDATION,
00015 * INC., 59 TEMPLE PLACE, SUITE 330, BOSTON, MA 02111-1307 USA
00016 *
00017 *************************************************************************/
00018 
00019 #ifndef MED_HDFI_H
00020 #define MED_HDFI_H
00021 #include "med.hxx"
00022 
00023 /* FONCTIONS INTERFACE MED/HDF */
00024 namespace med_2_1{
00025 
00026 /* Gestion des fichiers HDF */
00027 extern
00028 med_idt _MEDfichierCreer(char *nom);
00029 
00030 extern
00031 med_idt _MEDfichierOuvrir(char *nom,med_mode_acces mode);
00032 
00033 extern
00034 med_err _MEDfichierFermer(med_idt fid);
00035 
00036 
00037 /* Gestion des datagroups HDF */
00038 extern 
00039 med_idt _MEDdatagroupCreer(med_idt pid, char *nom);
00040 
00041 extern 
00042 med_idt _MEDdatagroupOuvrir(med_idt pid, char *nom);
00043 
00044 extern
00045 med_err _MEDdatagroupFermer(med_idt id);
00046 
00047 
00048 /* Gestion des datasets HDF */
00049 
00050 extern 
00051 med_idt _MEDdatasetOuvrir(med_idt pid,char *nom);
00052 
00053 extern
00054 med_err _MEDdatasetFermer(med_idt id);
00055 
00056 extern
00057 med_err _MEDdatasetNumEcrire (med_idt pere,char *nom, med_type_champ type,
00058                              med_mode_switch interlace, med_size nbdim, med_size fixdim, 
00059                              med_size psize, med_ssize * profil, med_int ngauss,
00060                               med_size *size,  unsigned char *val, med_mode_acces mode);
00061 
00062 
00063 extern
00064 med_err _MEDdatasetNumLire(med_idt pere,char *nom,med_type_champ type,
00065                            med_mode_switch interlace, med_size nbdim, med_size fixdim, 
00066                            med_size psize, med_ssize * pfltab, med_int ngauss,
00067                            unsigned char *val);
00068 
00069 extern
00070 med_err _MEDdatasetStringEcrire(med_idt pere,char *nom,med_size *dimd,
00071                                 char *val, med_mode_acces mode);
00072 
00073 extern
00074 med_err _MEDdatasetStringLire(med_idt pere,char *nom,char *val);
00075 
00076 /* Gestion des attributs HDF */
00077 extern 
00078 med_idt _MEDattrOuvrir(med_idt pid,char * nom);
00079 
00080 extern
00081 med_err _MEDattrFermer(med_idt id);
00082 
00083 extern
00084 med_err _MEDattrNumEcrire(med_idt pere,med_type_champ type,char *nom,unsigned char *val,med_mode_acces mode);
00085 
00086 #define _MEDattrEntierEcrire(w,x,y,z)  _MEDattrNumEcrire(w,MED_INT   ,x,(unsigned char *) y,z)
00087 #define _MEDattrFloatEcrire(w,x,y,z)   _MEDattrNumEcrire(w,MED_REEL64,x,(unsigned char *) y,z)
00088 
00089 extern
00090 med_err _MEDattrNumLire(med_idt pere,med_type_champ type,char *nom,unsigned char *val);
00091 
00092 #define _MEDattrEntierLire(x,y,z) _MEDattrNumLire(x,MED_INT   ,y,(unsigned char*)z)
00093 #define _MEDattrFloatLire(x,y,z)  _MEDattrNumLire(x,MED_REEL64,y,(unsigned char*)z)
00094 
00095 extern
00096 med_err _MEDattrStringEcrire(med_idt pere,char *nom,int longueur,char *val,med_mode_acces mode);
00097 
00098 extern
00099 med_err _MEDattrStringLire(med_idt pere,char *nom,int longueur,char *val);
00100 
00101 
00102 /* Divers */
00103 extern
00104 med_err _MEDindiceInfo(med_idt id, const char *nom, void *donnees);
00105 
00106 extern
00107 med_err _MEDindiceNum(med_idt id,const char *nom, void *donnees);
00108 
00109 extern  
00110 med_err _MEDobjetIdentifier(med_idt fid,char *chemin,int indice,void *nom);
00111 
00112 extern 
00113 med_err _MEDnObjets(med_idt fid,char *chemin,int *n);
00114 
00115 extern 
00116 void _MEDmodeErreurVerrouiller(); 
00117 
00118 }
00119 
00120 #endif /* MED_HDFI_H */