Back to index

salome-med  6.5.0
med_proto.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_PROTO_H
00020 #define MED_PROTO_H
00021 
00022 #ifdef WNT
00023  #if defined MEDWRAPPER_V2_1_CORE_EXPORTS || defined med_V2_1_EXPORTS
00024   #if defined WIN32
00025    #define MEDWRAPPER_V2_1_CORE_EXPORT __declspec( dllexport )
00026   #else
00027    #define MEDWRAPPER_V2_1_CORE_EXPORT
00028   #endif
00029  #else
00030   #if defined WIN32
00031    #define MEDWRAPPER_V2_1_CORE_EXPORT __declspec( dllimport )
00032   #else
00033    #define MEDWRAPPER_V2_1_CORE_EXPORT
00034   #endif
00035  #endif
00036 #else
00037  #define MEDWRAPPER_V2_1_CORE_EXPORT
00038 #endif
00039 
00040 /* Interface de l'API MED */
00041 namespace med_2_1{
00042 /* Fichier */
00043 MEDWRAPPER_V2_1_CORE_EXPORT extern med_idt
00044 MEDouvrir(char *nom, med_mode_acces mode_acces);
00045 MEDWRAPPER_V2_1_CORE_EXPORT extern med_err 
00046 MEDfermer(med_idt fid); 
00047 MEDWRAPPER_V2_1_CORE_EXPORT extern med_int
00048 MEDlFichDes(med_idt fid);
00049 MEDWRAPPER_V2_1_CORE_EXPORT extern med_err 
00050 MEDfichEntete(med_idt fid, med_fich_info quoi, char str[]); 
00051 MEDWRAPPER_V2_1_CORE_EXPORT extern med_err 
00052 MEDfichDesEcr(med_idt fid, char *des, med_mode_acces mode); 
00053 MEDWRAPPER_V2_1_CORE_EXPORT extern med_err
00054 MEDunvCr(med_idt fid, char *maa);
00055 MEDWRAPPER_V2_1_CORE_EXPORT extern med_err
00056 MEDunvLire(med_idt fid, char *maa,char *nomu);
00057 MEDWRAPPER_V2_1_CORE_EXPORT extern med_err
00058 MEDformatConforme(const char * nomfich);
00059 MEDWRAPPER_V2_1_CORE_EXPORT extern med_err
00060 MEDversionConforme(const char *nom);
00061 MEDWRAPPER_V2_1_CORE_EXPORT extern void
00062 MEDversionDonner(med_int *majeur, med_int *mineur, med_int *release);
00063 MEDWRAPPER_V2_1_CORE_EXPORT extern med_err 
00064 MEDversionLire(med_idt fid, med_int *majeur, med_int *mineur, med_int *release);
00065 
00066 
00067 
00068 /* Maillage */
00069 MEDWRAPPER_V2_1_CORE_EXPORT extern med_err 
00070 MEDmaaCr(med_idt fid, char *maillage, med_int dim);
00071 MEDWRAPPER_V2_1_CORE_EXPORT extern med_int
00072 MEDdimLire(med_idt fid, char *maillage); 
00073 MEDWRAPPER_V2_1_CORE_EXPORT extern med_err 
00074 MEDmaaInfo(med_idt fid, int indice, char *maillage, med_int *dim); 
00075 MEDWRAPPER_V2_1_CORE_EXPORT extern med_int 
00076 MEDnMaa(med_idt fid);
00077 MEDWRAPPER_V2_1_CORE_EXPORT extern med_err 
00078 MEDnbnosoEcr(med_idt fid, char *nom_maillage,med_int n);
00079 MEDWRAPPER_V2_1_CORE_EXPORT extern med_int
00080 MEDnbnosoLire(med_idt fid,char *nom_maillage);
00081 MEDWRAPPER_V2_1_CORE_EXPORT extern med_err 
00082 MEDnbnoisEcr(med_idt fid, char *nom_maillage,med_int n);
00083 MEDWRAPPER_V2_1_CORE_EXPORT extern med_int
00084 MEDnbnoisLire(med_idt fid,char *nom_maillage);
00085 MEDWRAPPER_V2_1_CORE_EXPORT extern med_err
00086 MEDnbnomaEcr(med_idt fid, char *nom_maillage,med_int n);
00087 MEDWRAPPER_V2_1_CORE_EXPORT extern med_int
00088 MEDnbnomaLire(med_idt fid,char *nom_maillage);
00089 
00090 /* EntMaillage */
00091 MEDWRAPPER_V2_1_CORE_EXPORT extern med_err 
00092 MEDconnEcr(med_idt fid,char *maa, med_int mdim, med_int *connectivite,med_mode_switch mode_switch,
00093            med_int nbre,med_mode_acces mode,med_entite_maillage type_ent,
00094            med_geometrie_element type_geo,med_connectivite type_conn);
00095 
00096 MEDWRAPPER_V2_1_CORE_EXPORT extern med_err 
00097 MEDconnLire(med_idt fid,char *maa,med_int mdim,med_int *connectivite,med_mode_switch mode_switch,
00098             med_int * pfltab, med_size psize,
00099             med_entite_maillage type_ent, med_geometrie_element type_geo,med_connectivite type_conn);
00100 MEDWRAPPER_V2_1_CORE_EXPORT extern med_err 
00101 MEDnomEcr(med_idt fid,char *maa, char *nom, med_int n, med_mode_acces mode,
00102           med_entite_maillage type_ent,med_geometrie_element type_geo); 
00103 MEDWRAPPER_V2_1_CORE_EXPORT extern med_err 
00104 MEDnomLire(med_idt fid,char *maa, char *nom, med_int n, 
00105            med_entite_maillage type_ent,med_geometrie_element type_geo); 
00106 MEDWRAPPER_V2_1_CORE_EXPORT extern med_err 
00107 MEDnumLire(med_idt fid,char *maa, med_int *num, med_int n, 
00108            med_entite_maillage type_ent,med_geometrie_element type_geo); 
00109 MEDWRAPPER_V2_1_CORE_EXPORT extern med_err 
00110 MEDnumEcr(med_idt fid,char *maa, med_int *num, med_int n, med_mode_acces mode,
00111           med_entite_maillage type_ent,med_geometrie_element type_geo);
00112 MEDWRAPPER_V2_1_CORE_EXPORT extern med_err 
00113 MEDcoordEcr(med_idt fid, char *maa, med_int mdim, med_float *coo, 
00114             med_mode_switch mode_coo,med_int n,
00115             med_mode_acces mode, med_repere type_rep, char *nom, char *unit);
00116 MEDWRAPPER_V2_1_CORE_EXPORT extern med_err 
00117 MEDcoordLire(med_idt fid, char *maa, med_int mdim, med_float *coo,
00118              med_mode_switch mode_coo,med_int numco,
00119              med_int * pfltab, med_size psize, med_repere *type_rep, char *nom, char *unit);
00120 
00121 MEDWRAPPER_V2_1_CORE_EXPORT extern med_int
00122 MEDnEntMaa(med_idt fid, char *maa, med_table quoi, med_entite_maillage type_ent, 
00123            med_geometrie_element type_geo, med_connectivite type_conn); 
00124 
00125 
00126 /* Resultat */
00127 MEDWRAPPER_V2_1_CORE_EXPORT extern med_err MEDchampCr(med_idt fid, char *champ, med_type_champ type, char *comp,
00128                    char *unit,med_int ncomp);
00129 
00130 MEDWRAPPER_V2_1_CORE_EXPORT extern med_err 
00131 MEDchampEcr(med_idt fid, char *maa, char *cha,unsigned char *val,med_mode_switch interlace,med_int nbelem,med_int ngauss, 
00132             med_int numco, char * profil, med_mode_acces mode, med_entite_maillage type_ent, 
00133             med_geometrie_element type_geo, med_int numdt,char * dt_unit, med_float dt, med_int numo);
00134 
00135 MEDWRAPPER_V2_1_CORE_EXPORT extern med_err 
00136 MEDchampLire(med_idt fid,char *maa, char *cha, unsigned char *val,med_mode_switch interlace,med_int numco,
00137              char *profil,med_entite_maillage type_ent, med_geometrie_element type_geo,
00138              med_int numdt, med_int numo);
00139  
00140 MEDWRAPPER_V2_1_CORE_EXPORT extern med_err
00141 MEDchampInfo(med_idt fid,int indice,char *champ,
00142                      med_type_champ *type,char *comp,char *unit, 
00143                      med_int ncomp);
00144 
00145 MEDWRAPPER_V2_1_CORE_EXPORT extern med_int 
00146 MEDnChamp(med_idt fid, int indice); 
00147 
00148 MEDWRAPPER_V2_1_CORE_EXPORT extern med_int
00149 MEDnVal(med_idt fid, char *champ, med_entite_maillage typ_ent, 
00150         med_geometrie_element typ_geo,med_int numdt, med_int numo);
00151 
00152 
00153 /* Famille  */
00154 MEDWRAPPER_V2_1_CORE_EXPORT extern med_err 
00155 MEDfamEcr(med_idt fid,char *maa, med_int *fam, med_int n, med_mode_acces mode,
00156           med_entite_maillage type_ent, med_geometrie_element type_geo); 
00157 MEDWRAPPER_V2_1_CORE_EXPORT extern med_err 
00158 MEDfamLire(med_idt fid,char *maa, med_int *fam, med_int n, 
00159            med_entite_maillage type_ent,med_geometrie_element type_geo);
00160 MEDWRAPPER_V2_1_CORE_EXPORT extern med_err 
00161 MEDfamCr(med_idt fid,char* maa,char *famille,med_int numero, 
00162          med_int *attr_ident, med_int *attr_val,char *attr_desc,med_int n_attr,
00163          char *groupe , med_int n_groupe);
00164 MEDWRAPPER_V2_1_CORE_EXPORT extern med_int 
00165 MEDnFam(med_idt fid,char *maa, int indice, med_dim_famille quoi);
00166  
00167 MEDWRAPPER_V2_1_CORE_EXPORT extern med_err 
00168 MEDfamInfo(med_idt fid,char *maa,int indice, char *famille, 
00169            med_int *numero,
00170            med_int *attr_ident, med_int *attr_val, char *attr_desc,
00171            med_int *n_attr,char *groupe ,med_int *n_groupe); 
00172  
00173 /* Equivalence    */
00174 MEDWRAPPER_V2_1_CORE_EXPORT extern med_err 
00175 MEDequivCr(med_idt fid,char *maa, char *eq, char *desc); 
00176 MEDWRAPPER_V2_1_CORE_EXPORT extern med_err 
00177 MEDequivLire(med_idt fid, char *maa, char *eq, med_int *corr, med_int n,
00178             med_entite_maillage typ_ent,med_geometrie_element typ_geo); 
00179 MEDWRAPPER_V2_1_CORE_EXPORT extern med_err 
00180 MEDequivEcr(med_idt fid, char *maa, char *eq, med_int *corr, med_int n, 
00181             med_mode_acces mode, med_entite_maillage typ_ent, med_geometrie_element typ_geo); 
00182 MEDWRAPPER_V2_1_CORE_EXPORT extern med_err 
00183 MEDequivInfo(med_idt fid, char *maa, int ind, char *eq, char *des);
00184 MEDWRAPPER_V2_1_CORE_EXPORT extern med_int 
00185 MEDnEquiv(med_idt fid, char *maa);
00186 MEDWRAPPER_V2_1_CORE_EXPORT extern med_int 
00187 MEDnCorres(med_idt fid,char *maa,char *eq,med_entite_maillage typ_ent,
00188            med_geometrie_element typ_geo); 
00189 
00190 
00191 /* Routines de niveau intermediaire */
00192 MEDWRAPPER_V2_1_CORE_EXPORT extern med_int
00193 MEDnEntites(med_idt fid,char *maa,med_entite_maillage typ_ent, 
00194             med_connectivite typ_con);
00195 
00196 MEDWRAPPER_V2_1_CORE_EXPORT extern med_err
00197 MEDnoeudsLire(med_idt fid,char *maa,med_int mdim, med_float *coord,
00198               med_mode_switch mode_coo,
00199               med_repere *repere,char *nomcoo, char *unicoo,char *nom,
00200               med_booleen *inom,med_int *num,med_booleen *inum,med_int *fam,
00201               med_int nnoeuds);
00202 
00203 MEDWRAPPER_V2_1_CORE_EXPORT extern med_err
00204 MEDnoeudsEcr(med_idt fid,char *maa,med_int mdim,med_float *coord,
00205              med_mode_switch mode_coo,
00206              med_repere repere,char *nomcoo, char *unicoo,char *nom,
00207              med_booleen inom,med_int *num,med_booleen inum,med_int *fam,
00208              med_int nnoeuds,med_mode_acces mode);
00209 MEDWRAPPER_V2_1_CORE_EXPORT extern med_err
00210 MEDelementsEcr(med_idt fid,char *maa,med_int mdim,med_int *connectivite,med_mode_switch mode_switch,
00211                char *nom,med_booleen inom,med_int *num,med_booleen inum,
00212                med_int *fam,med_int nele,med_entite_maillage typ_ent, 
00213                med_geometrie_element typ_geo,med_connectivite typ_conn,med_mode_acces mode);
00214 MEDWRAPPER_V2_1_CORE_EXPORT extern med_err
00215 MEDelementsLire(med_idt fid,char *maa,med_int mdim,med_int *connectivite,med_mode_switch mode_switch,
00216                char *nom,med_booleen *inom,med_int *num,med_booleen *inum,
00217                med_int *fam,med_int nele,med_entite_maillage typ_ent, 
00218                med_geometrie_element typ_geo,med_connectivite typ_conn);
00219 
00220 /* Routines de haut niveau    */
00221 
00222 /*(? On enlève le reste ?)*/
00223 
00224 MEDWRAPPER_V2_1_CORE_EXPORT extern med_err
00225 MEDfamMaaInfo(med_idt fid,char *maa,med_int *nfam,med_int *nattc,
00226               med_int *ngroc);
00227 
00228 MEDWRAPPER_V2_1_CORE_EXPORT extern med_err
00229 MEDfamMaaLire(med_idt fid,char *maa,
00230               med_int *numfam,med_int *attide,
00231               med_int *attval,char *attdes,int *indatt,char *gro,int *indgro,
00232               med_int nfamilles);
00233 
00234 MEDWRAPPER_V2_1_CORE_EXPORT extern med_err
00235 MEDfamMaaCr(med_idt fid,char *maa,
00236             med_int *numfam,med_int *attide,
00237             med_int *attval,char *attdes,int *indatt,char *gro,int *indgro,
00238             med_int nfamilles);
00239 
00240 /* Routines concernant les profils */
00241 
00242 MEDWRAPPER_V2_1_CORE_EXPORT extern med_err 
00243 MEDprofilInfo(med_idt fid, int indice, char *profil, med_int *n); 
00244 
00245 MEDWRAPPER_V2_1_CORE_EXPORT extern med_int 
00246 MEDnProfil(med_idt fid);
00247 
00248 MEDWRAPPER_V2_1_CORE_EXPORT extern med_err 
00249 MEDprofilEcr(med_idt fid,med_int *pflval,med_int n,char *nom);
00250 
00251 MEDWRAPPER_V2_1_CORE_EXPORT extern med_int 
00252 MEDnValProfil(med_idt fid, char *nom);
00253 
00254 MEDWRAPPER_V2_1_CORE_EXPORT extern med_err 
00255 MEDprofilLire(med_idt fid, med_int *pflval, char *nom);
00256 
00257 /* Routines concernant les pas de temps/ numéros d'ordre */
00258 
00259 MEDWRAPPER_V2_1_CORE_EXPORT extern med_int
00260 MEDnPasdetemps(med_idt fid,char *cha,med_entite_maillage type_ent, 
00261                med_geometrie_element type_geo);
00262 
00263 MEDWRAPPER_V2_1_CORE_EXPORT extern med_err 
00264 MEDpasdetempsInfo(med_idt fid,char *champ
00265                   ,med_entite_maillage type_ent, med_geometrie_element type_geo,
00266                   int indice, char *maa, med_int * ngauss, med_int * numdt, char * dt_unit, med_float * dt, 
00267                   med_int * numo);
00268 
00269 /* Grilles */
00270 
00271 MEDWRAPPER_V2_1_CORE_EXPORT med_int MEDnGrid(med_idt fid, char *maa, med_grid n);
00272 MEDWRAPPER_V2_1_CORE_EXPORT med_err MEDgridCr(med_idt fid, char *maillage, med_int dim, med_grid_type typ);
00273 MEDWRAPPER_V2_1_CORE_EXPORT med_err MEDgridInfo(med_idt fid, int indice, med_int *isAGrid, med_grid_type *typ);
00274 MEDWRAPPER_V2_1_CORE_EXPORT med_err MEDgridEcr(
00275         med_idt fid, char *maa, med_int mdim, med_float *coo, med_int nb, med_int dim, med_mode_switch mode_coo,
00276         med_repere repere, char *nomcoo, char *unicoo, med_mode_acces mode );
00277 MEDWRAPPER_V2_1_CORE_EXPORT med_err MEDgridLire(
00278         med_idt fid, char *maa, med_int mdim, med_float *coo, med_int dim, med_mode_switch mode_coo,
00279         med_repere *repere, char *nomcoo, char *unicoo );
00280 MEDWRAPPER_V2_1_CORE_EXPORT med_err MEDfamGridEcr(med_idt fid, char *maa, med_int *fam, med_int n, med_mode_acces mode, med_entite_maillage type_ent);
00281 MEDWRAPPER_V2_1_CORE_EXPORT med_err MEDfamGridLire(med_idt fid, char *maa, med_int *fam, med_int n, med_entite_maillage type_ent);
00282 MEDWRAPPER_V2_1_CORE_EXPORT med_err MEDbodyFittedEcr(
00283         med_idt fid, char *maa, med_int mdim, med_float *coo, med_int *nbr, med_mode_switch mode_coo,
00284         med_repere repere, char *nomcoo, char *unicoo, med_int *fam, med_int nnoeuds, med_mode_acces mode );
00285 MEDWRAPPER_V2_1_CORE_EXPORT med_err MEDbodyFittedLire(
00286         med_idt fid, char *maa, med_int mdim, med_float *coo, med_mode_switch mode_coo,
00287         med_repere *repere, char *nomcoo, char *unicoo, med_int *fam, med_int nnoeuds );
00288 }
00289 
00290 #endif /* MED_PROTO_H */
00291 
00292 
00293 
00294