MED fichier
medfile.h
Aller à la documentation de ce fichier.
1 /* This file is part of MED.
2  *
3  * COPYRIGHT (C) 1999 - 2025 EDF R&D, CEA/DEN
4  * MED is free software: you can redistribute it and/or modify
5  * it under the terms of the GNU Lesser General Public License as published by
6  * the Free Software Foundation, either version 3 of the License, or
7  * (at your option) any later version.
8  *
9  * MED is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12  * GNU Lesser General Public License for more details.
13  *
14  * You should have received a copy of the GNU Lesser General Public License
15  * along with MED. If not, see <http://www.gnu.org/licenses/>.
16  */
17 
18 #ifndef MED_MEDFILE_H
19 #define MED_MEDFILE_H
20 
21 #include "medC_win_dll.h"
22 
23 #ifdef __cplusplus
24 extern "C" {
25 #endif
26 
27 /* File */
29 MEDfileOpen(const char* const filename,
30  const med_access_mode accessmode);
31 
32 extern MEDC_EXPORT med_idt
33 MEDfileVersionOpen(const char* const filename,
34  const med_access_mode accessmode,
35  const med_int major, const med_int minor, const med_int release);
36 
38 MEDfileExist(const char* const filename,
39  const med_access_mode accessmode,
40  med_bool * const fileexist,
41  med_bool * const accessok );
42 
44 MEDmemFileOpen(const char* const filename, med_memfile * const memfile, const med_bool filesync,
45  const med_access_mode accessmode);
46 
47 #ifdef MED_HAVE_MPI
49 MEDparFileOpen(const char* const filename,
50  const med_access_mode accessmode,
51  const MPI_Comm comm, const MPI_Info info);
52 
53 #endif
54 
56 MEDfileName(med_idt fid, char * const filename, const med_int filenamesize);
57 
60 
61 /* deprecated functions: */
62 /* use MEDfileDescription */
64 MEDfileCommentWr(const med_idt fid,
65  const char* const description);
67 MEDfileCommentRd(const med_idt fid,
68  char* const description);
69 
72  const char* const description);
75  char* const description);
77 MEDfileCompatibility(const char* const filename,
78  med_bool* const hdfok,
79  med_bool* const medok);
82  med_int* const major,
83  med_int* const minor,
84  med_int* const release);
87  char* const version);
90  const char* const filename,
91  const med_class medclass);
94  const med_idt chfid,
95  const char * const chpath,
96  const med_class medclass);
97 
100  const med_idt mid,
101  const med_class medclass);
103 MEDfileObjectExist(const med_idt fid,
104  const med_class medclass,
105  const char * const objectname,
106  med_bool * const objectexist);
107 
110  const med_class medclass,
111  const char * const objectname,
112  med_bool * const descriptionexist);
113 
116  med_path * const medpath,
117  med_bool * const descriptionexist);
118 
121  const med_class medclass,
122  const char * const objectname,
123  const char * const description);
124 
127  med_path * const medpath,
128  const char * const description);
129 
132  const med_class medclass,
133  const char * const objectname,
134  char * const description);
137  med_path * const medpath,
138  char * const description);
139 
140 #ifdef __cplusplus
141 }
142 #endif
143 
144 #endif /* MED_MEDFILE_H */
145 
MEDfileName
MEDC_EXPORT med_int MEDfileName(med_idt fid, char *const filename, const med_int filenamesize)
Renvoi le nom de fichier MED à partir d'un med_idt.
Definition: MEDfileName.c:35
MEDC_EXPORT
#define MEDC_EXPORT
Definition: medC_win_dll.h:29
med_path
Aggrégation de noms medfichier pour définir un chemin d'accès aux objets med de type class med_class.
Definition: med.h:356
MEDfileObjectDescriptionExistByPath
MEDC_EXPORT med_err MEDfileObjectDescriptionExistByPath(const med_idt fid, med_path *const medpath, med_bool *const descriptionexist)
Interroge le fichier fid pour tester l'existence d'une description associée à l'objet accessible par ...
Definition: MEDfileObjectDescriptionExistByPath.c:38
med_err
herr_t med_err
Definition: med.h:336
description
const char *const description
Definition: medfile.h:65
MEDfileObjectsMount
MEDC_EXPORT med_idt MEDfileObjectsMount(const med_idt fid, const char *const filename, const med_class medclass)
Cette routine permet de monter dans le fichier courant un type de données (exemples les maillages,...
Definition: MEDfileObjectsMount.c:40
MEDfileObjectDescriptionRd
MEDC_EXPORT med_err MEDfileObjectDescriptionRd(const med_idt fid, const med_class medclass, const char *const objectname, char *const description)
Lit une description associée à l'objet objectname de type med_class dans le fichier fid .
Definition: MEDfileObjectDescriptionRd.c:49
MEDfileDescriptionRd
MEDC_EXPORT med_err MEDfileDescriptionRd(const med_idt fid, char *const description)
Lecture d'un descripteur dans un fichier MED.
Definition: MEDfileDescriptionRd.c:33
MEDfileStrVersionRd
MEDC_EXPORT med_err MEDfileStrVersionRd(const med_idt fid, char *const version)
Lecture du numéro de version de la bibliothèque MED utilisée pour créer le fichier (renvoyé sous la f...
Definition: MEDfileStrVersionRd.c:35
MEDfileDescriptionWr
MEDC_EXPORT med_err MEDfileDescriptionWr(const med_idt fid, const char *const description)
Ecriture d'un descripteur dans un fichier MED.
Definition: MEDfileDescriptionWr.c:34
med_idt
hid_t med_idt
Definition: med.h:335
MEDfileObjectsUnmount
MEDC_EXPORT med_err MEDfileObjectsUnmount(const med_idt fid, const med_idt mid, const med_class medclass)
Une fois le démontage effectué, les données précédemment montées ne sont plus accessibles.
Definition: MEDfileObjectsUnmount.c:33
MEDfileObjectDescriptionExist
MEDC_EXPORT med_err MEDfileObjectDescriptionExist(const med_idt fid, const med_class medclass, const char *const objectname, med_bool *const descriptionexist)
Interroge le fichier fid pour tester l'existence d'une description associée à l'objet objectname de t...
Definition: MEDfileObjectDescriptionExist.c:49
MEDfileObjectsMountById
MEDC_EXPORT med_idt MEDfileObjectsMountById(const med_idt fid, const med_idt chfid, const char *const chpath, const med_class medclass)
Cette routine permet le montage d'une collection d'objets de type medclass dans le fichier associé à ...
Definition: MEDfileObjectsMountById.c:43
MEDfileCompatibility
MEDC_EXPORT med_err MEDfileCompatibility(const char *const filename, med_bool *const hdfok, med_bool *const medok)
Vérification de la compatibilité d'un fichier avec HDF et MED.
Definition: MEDfileCompatibility.c:34
med_bool
med_bool
Definition: med.h:264
filename
#define filename
Definition: 4.0.1/test10.c:75
MEDfileObjectDescriptionWrByPath
MEDC_EXPORT med_err MEDfileObjectDescriptionWrByPath(const med_idt fid, med_path *const medpath, const char *const description)
Ecrit une description associée à l'objet accessible par le chemin med_path dans le fichier fid .
Definition: MEDfileObjectDescriptionWrByPath.c:38
med_int
int med_int
Definition: med.h:346
med_access_mode
med_access_mode
Definition: med.h:123
MEDfileCommentWr
med_err MEDfileCommentWr(const med_idt fid, const char *const description)
\MEDfileCommentWrBrief
Definition: MEDfileCommentWr.c:37
MED_DEPRECATED
MED_DEPRECATED(4.2.0) MEDC_EXPORT med_err MEDfileCommentWr(const med_idt fid
MEDfileObjectDescriptionWr
MEDC_EXPORT med_err MEDfileObjectDescriptionWr(const med_idt fid, const med_class medclass, const char *const objectname, const char *const description)
Ecrit une description associée à l'objet objectname de type med_class dans le fichier fid .
Definition: MEDfileObjectDescriptionWr.c:49
MEDparFileOpen
med_idt MEDparFileOpen(const char *const filename, const med_access_mode accessmode, const MPI_Comm comm, const MPI_Info info)
Ouverture d'un fichier MED pour une utilisation parallèle.
Definition: MEDparFileOpen.c:49
MEDmemFileOpen
MEDC_EXPORT med_idt MEDmemFileOpen(const char *const filename, med_memfile *const memfile, const med_bool filesync, const med_access_mode accessmode)
Ouverture d'un fichier MED pour une utilisation en mémoire.
Definition: MEDmemFileOpen.c:43
MEDfileObjectDescriptionRdByPath
MEDC_EXPORT med_err MEDfileObjectDescriptionRdByPath(const med_idt fid, med_path *const medpath, char *const description)
Lit une description associée à l'objet objectname accessible par le chemin med_path dans le fichier f...
Definition: MEDfileObjectDescriptionRdByPath.c:38
MEDfileCommentRd
med_err MEDfileCommentRd(const med_idt fid, char *const description)
\MEDfileCommentRdBrief
Definition: MEDfileCommentRd.c:35
MEDfileClose
MEDC_EXPORT med_err MEDfileClose(med_idt fid)
Fermeture d'un fichier MED.
Definition: MEDfileClose.c:30
med_memfile
Structure d'acceuil du buffer d'un fichier MED en mémoire.
Definition: med.h:412
MEDfileOpen
MEDC_EXPORT med_idt MEDfileOpen(const char *const filename, const med_access_mode accessmode)
Ouverture d'un fichier MED.
Definition: MEDfileOpen.c:42
med_class
med_class
Definition: med.h:191
MEDfileNumVersionRd
MEDC_EXPORT med_err MEDfileNumVersionRd(const med_idt fid, med_int *const major, med_int *const minor, med_int *const release)
Lecture du numéro de version de la bibliothèque MED utilisée pour créer le fichier.
Definition: MEDfileNumVersionRd.c:34
MEDfileExist
MEDC_EXPORT med_err MEDfileExist(const char *const filename, const med_access_mode accessmode, med_bool *const fileexist, med_bool *const accessok)
Interroge l'existence d'un fichier de nom filename et la possibilité de l'ouvrir selon le mode d'accè...
Definition: MEDfileExist.c:51
MEDfileVersionOpen
MEDC_EXPORT med_idt MEDfileVersionOpen(const char *const filename, const med_access_mode accessmode, const med_int major, const med_int minor, const med_int release)
Ouverture d'un fichier MED en indiquant la version du modèle à utiliser en cas de création d'un nouve...
Definition: MEDfileVersionOpen.c:45
medC_win_dll.h
MEDfileObjectExist
MEDC_EXPORT med_err MEDfileObjectExist(const med_idt fid, const med_class medclass, const char *const objectname, med_bool *const objectexist)
Interroge le fichier fid pour tester l'existence de l'objet objectname de type med_class.
Definition: MEDfileObjectExist.c:47