MEDfieldValueWithProfileRd.c
Aller à la documentation de ce fichier.00001 
00002 
00003 
00004 
00005 
00006 
00007 
00008 
00009 
00010 
00011 
00012 
00013 
00014 
00015 
00016 
00017 
00018 
00019 #include <med.h>
00020 #include <med_config.h>
00021 #include <med_outils.h>
00022 #include <string.h>
00023 #include <stdlib.h>
00024 
00042 med_err MEDfieldValueWithProfileRd(const med_idt              fid,
00043                                    const char*  const         fieldname,
00044                                    const med_int              numdt,
00045                                    const med_int              numit,
00046                                    const med_entity_type      entitype,
00047                                    const med_geometry_type    geotype,
00048                                    const med_storage_mode     storagemode,
00049                                    const char * const         profilename,
00050                                    const med_switch_mode      switchmode,
00051                                    const med_int              componentselect,
00052                                    unsigned char* const value)
00053 {
00054   char *  name = "_MEDfieldValueAdvancedRd";
00055   int     dummy=0;
00056   med_err fret=-1;
00057   med_int majeur=0, mineur=0, release=0;
00058   MedFuncType func;
00059 
00060 
00061 
00062 
00063 
00064 
00065 
00066 
00067 
00068 
00069 
00070 
00071   MEDfileNumVersionRd(fid, &majeur, &mineur, &release);
00072 
00073   func = _MEDversionedApi3(name,majeur,mineur,release);
00074   if ( func != (MedFuncType) NULL )
00075     func (dummy,
00076           fid,
00077           fieldname,
00078           numdt,
00079           numit,
00080           entitype,
00081           geotype,
00082           MED_NO_MESHNAME,
00083           storagemode,
00084           profilename,
00085           switchmode,
00086           componentselect,
00087           NULL,
00088           value,
00089           &fret);
00090 
00091   return fret;
00092 }