Version: 9.15.0
hdfi.h
Go to the documentation of this file.
1 /* Copyright (C) 2007-2025 CEA, EDF, OPEN CASCADE
2  *
3  * Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
4  * CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
5  *
6  * This library is free software; you can redistribute it and/or
7  * modify it under the terms of the GNU Lesser General Public
8  * License as published by the Free Software Foundation; either
9  * version 2.1 of the License, or (at your option) any later version.
10  *
11  * This library is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14  * Lesser General Public License for more details.
15  *
16  * You should have received a copy of the GNU Lesser General Public
17  * License along with this library; if not, write to the Free Software
18  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
19  *
20  * See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
21  */
22 
23 /*----------------------------------------------------------------------
24  SALOME HDFPersist : implementation of HDF persitent ( save/ restore )
25  File : hdfi.h
26  Module : SALOME
27  ----------------------------------------------------------------------*/
28 
29 #ifndef HDFI_H
30 #define HDFI_H
31 
32 #include "HDFtypes.h"
33 
34 /* HDF C INTERFACE */
35 
36 #ifdef __cplusplus
37 extern "C" {
38 #endif
39 /* File Interface */
40 extern
42 
43 extern
45 
46 extern
47 hdf_idt HDFfileOpen(char *name,hdf_access_mode access_mode);
48 
49 extern
50 hdf_err HDFfileMount(hdf_idt id,const char *name,hdf_idt fid);
51 
52 extern
53 hdf_err HDFfileUmount(hdf_idt id,const char *name);
54 
55 /* Group Interface */
56 extern
58 
59 extern
60 hdf_idt HDFgroupOpen(hdf_idt pid, char *name);
61 
62 extern
64 
65 /* DataSet Interface */
66 extern
68 
69 extern
71 
72 extern
74  hdf_size *dimd, int ndim, hdf_byte_order order, hdf_idt arrayId);
75 
76 extern
77 hdf_err HDFdatasetWrite(hdf_idt id, void *val);
78 
79 extern
80 hdf_err HDFdatasetRead(hdf_idt id, void *val);
81 
82 extern
84 
85 extern
87 
88 extern
90 
91 extern
93 
94 extern
95 int HDFarrayGetnDim(hdf_idt id);
96 
97 extern
99 
100 
101 extern
102 hdf_idt HDFarrayCreate(hdf_type dataType,int ndim,hdf_size *dim);
103 
104 extern
105 int HDFdatasetGetnDim(hdf_idt id);
106 
107 extern
109 
110 extern
111 long HDFdatasetGetSize(hdf_idt id);
112 
113 extern
115 
116 /* Attribute interface */
117 extern
118 hdf_idt HDFattrOpen(hdf_idt pid,char *name);
119 
120 extern
122 
123 extern
124 hdf_idt HDFattrCreate(hdf_idt pid,char *name,hdf_type type, size_t size);
125 
126 extern
127 hdf_err HDFattrWrite(hdf_idt id,void *val);
128 
129 extern
130 hdf_err HDFattrRead(hdf_idt id,void *val);
131 
132 extern
134 
135 extern
137 
138 /* HDF Tools */
139 extern
140 void HDFerrorModeLock();
141 
142 extern
143 hdf_err
144 HDFnObjects(hdf_idt fid,const char *path,int *n);
145 
146 extern
147 hdf_err HDFobjectIdentify(hdf_idt fid,const char *path,int i,char *name);
148 
149 extern
151 #ifdef __cplusplus
152 }
153 #endif
154 
155 #endif /* HDFI_H */
herr_t hdf_err
Definition: HDFtypes.h:42
hdf_access_mode
Definition: HDFtypes.h:52
hid_t hdf_idt
Definition: HDFtypes.h:41
hdf_object_type
Definition: HDFtypes.h:64
hdf_type
Definition: HDFtypes.h:55
hsize_t hdf_size
Definition: HDFtypes.h:40
H5T_order_t hdf_byte_order
Definition: HDFtypes.h:44
int HDFdatasetGetnDim(hdf_idt id)
Definition: HDFdatasetGetnDim.c:33
hdf_idt HDFfileOpen(char *name, hdf_access_mode access_mode)
Definition: HDFfileOpen.c:41
void HDFerrorModeLock()
Definition: HDFerrorModeLock.c:37
hdf_idt HDFarrayCreate(hdf_type dataType, int ndim, hdf_size *dim)
Definition: HDFarrayCreate.c:43
hdf_err HDFarrayClose(hdf_idt id)
Definition: HDFarrayClose.c:42
hdf_err HDFdatasetRead(hdf_idt id, void *val)
Definition: HDFdatasetRead.c:41
hdf_err HDFgroupClose(hdf_idt id)
Definition: HDFgroupClose.c:42
int HDFarrayGetnDim(hdf_idt id)
Definition: HDFarrayGetnDim.c:33
hdf_err HDFdatasetClose(hdf_idt id)
Definition: HDFdatasetClose.c:42
hdf_err HDFnObjects(hdf_idt fid, const char *path, int *n)
Definition: HDFnObjects.c:46
hdf_err HDFattrWrite(hdf_idt id, void *val)
Definition: HDFattrWrite.c:41
hdf_err HDFfileMount(hdf_idt id, const char *name, hdf_idt fid)
Definition: HDFfileMount.c:33
hdf_type HDFarrayGetType(hdf_idt id)
Definition: HDFarrayGetType.c:33
hdf_idt HDFarrayGetTypeId(hdf_idt type_id)
Definition: HDFarrayGetTypeId.c:33
hdf_idt HDFdatasetOpen(hdf_idt pid, char *name)
Definition: HDFdatasetOpen.c:43
hdf_err HDFobjectType(hdf_idt id, char *name, hdf_object_type *type)
Definition: HDFobjectType.c:32
hdf_idt HDFattrCreate(hdf_idt pid, char *name, hdf_type type, size_t size)
Definition: HDFattrCreate.c:42
hdf_err HDFdatasetWrite(hdf_idt id, void *val)
Definition: HDFdatasetWrite.c:42
hdf_err HDFobjectIdentify(hdf_idt fid, const char *path, int i, char *name)
Definition: HDFobjectIdentify.c:48
hdf_type HDFattrGetSize(hdf_idt id)
Definition: HDFattrGetSize.c:32
hdf_err HDFattrClose(hdf_idt id)
Definition: HDFattrClose.c:45
hdf_err HDFarrayGetDim(hdf_idt id, hdf_size dim[])
Definition: HDFarrayGetDim.c:34
hdf_idt HDFgroupCreate(hdf_idt pid, char *name)
Definition: HDFgroupCreate.c:43
hdf_err HDFfileClose(hdf_idt fid)
Definition: HDFfileClose.c:41
hdf_idt HDFdatasetCreate(hdf_idt pid, char *name, hdf_type type, hdf_size *dimd, int ndim, hdf_byte_order order, hdf_idt arrayId)
Definition: HDFdatasetCreate.c:45
long HDFdatasetGetSize(hdf_idt id)
Definition: HDFdatasetGetSize.c:32
hdf_byte_order HDFdatasetGetOrder(hdf_idt id)
Definition: HDFdatasetGetOrder.c:33
hdf_type HDFdatasetGetType(hdf_idt id)
Definition: HDFdatasetGetType.c:33
hdf_err HDFdatasetGetDim(hdf_idt id, hdf_size dim[])
Definition: HDFdatasetGetDim.c:34
hdf_type HDFattrGetType(hdf_idt id)
Definition: HDFattrGetType.c:33
hdf_idt HDFgroupOpen(hdf_idt pid, char *name)
Definition: HDFgroupOpen.c:43
hdf_err HDFattrRead(hdf_idt id, void *val)
Definition: HDFattrRead.c:41
hdf_idt HDFfileCreate(char *name)
Definition: HDFfileCreate.c:40
hdf_err HDFfileUmount(hdf_idt id, const char *name)
Definition: HDFfileUmount.c:33
hdf_idt HDFattrOpen(hdf_idt pid, char *name)
Definition: HDFattrOpen.c:40
path
Definition: ORBConfigFile.py:112
string name
Definition: pythfilter.py:56