MED fichier
medfile.h
Aller à la documentation de ce fichier.
1 /* This file is part of MED.
2  *
3  * COPYRIGHT (C) 1999 - 2023 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 
62 MEDfileCommentWr(const med_idt fid,
63  const char* const comment);
65 MEDfileCommentRd(const med_idt fid,
66  char* const comment);
68 MEDfileCompatibility(const char* const filename,
69  med_bool* const hdfok,
70  med_bool* const medok);
73  med_int* const major,
74  med_int* const minor,
75  med_int* const release);
78  char* const version);
81  const char* const filename,
82  const med_class medclass);
85  const med_idt chfid,
86  const char * const chpath,
87  const med_class medclass);
88 
91  const med_idt mid,
92  const med_class medclass);
94 MEDfileObjectExist(const med_idt fid,
95  const med_class medclass,
96  const char * const objectname,
97  med_bool * const objectexist );
98 
99 #ifdef __cplusplus
100 }
101 #endif
102 
103 #endif /* MED_MEDFILE_H */
104 
MEDC_EXPORT
#define MEDC_EXPORT
Definition: medC_win_dll.h:29
MEDfileCommentRd
MEDC_EXPORT med_err MEDfileCommentRd(const med_idt fid, char *const comment)
Lecture d'un descripteur dans un fichier MED.
Definition: MEDfileCommentRd.c:33
med_memfile
Structure d'acceuil du buffer d'un fichier MED en mémoire.
Definition: med.h:395
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
filename
#define filename
Definition: 4.0.1/test10.c:75
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
med_idt
hid_t med_idt
Definition: med.h:333
med_err
herr_t med_err
Definition: med.h:334
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
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
med_int
int med_int
Definition: med.h:344
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
med_bool
med_bool
Definition: med.h:262
med_access_mode
med_access_mode
Definition: med.h:122
MEDfileClose
MEDC_EXPORT med_err MEDfileClose(med_idt fid)
Fermeture d'un fichier MED.
Definition: MEDfileClose.c:30
med_class
med_class
Definition: med.h:190
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 medclass.
Definition: MEDfileObjectExist.c:47
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
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
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
medC_win_dll.h
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
MEDfileCommentWr
MEDC_EXPORT med_err MEDfileCommentWr(const med_idt fid, const char *const comment)
Ecriture d'un descripteur dans un fichier MED.
Definition: MEDfileCommentWr.c:34
MEDfileOpen
MEDC_EXPORT med_idt MEDfileOpen(const char *const filename, const med_access_mode accessmode)
Ouverture d'un fichier MED.
Definition: MEDfileOpen.c:42
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