Version: 9.16.0
hdfi.h
Go to the documentation of this file.
1/* Copyright (C) 2007-2026 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
37extern "C" {
38#endif
39/* File Interface */
40extern
42
43extern
45
46extern
47hdf_idt HDFfileOpen(char *name,hdf_access_mode access_mode);
48
49extern
50hdf_err HDFfileMount(hdf_idt id,const char *name,hdf_idt fid);
51
52extern
53hdf_err HDFfileUmount(hdf_idt id,const char *name);
54
55/* Group Interface */
56extern
58
59extern
61
62extern
64
65/* DataSet Interface */
66extern
68
69extern
71
72extern
74 hdf_size *dimd, int ndim, hdf_byte_order order, hdf_idt arrayId);
75
76extern
77hdf_err HDFdatasetWrite(hdf_idt id, void *val);
78
79extern
80hdf_err HDFdatasetRead(hdf_idt id, void *val);
81
82extern
84
85extern
87
88extern
90
91extern
93
94extern
96
97extern
99
100
101extern
102hdf_idt HDFarrayCreate(hdf_type dataType,int ndim,hdf_size *dim);
103
104extern
106
107extern
109
110extern
112
113extern
115
116/* Attribute interface */
117extern
119
120extern
122
123extern
124hdf_idt HDFattrCreate(hdf_idt pid,char *name,hdf_type type, size_t size);
125
126extern
127hdf_err HDFattrWrite(hdf_idt id,void *val);
128
129extern
130hdf_err HDFattrRead(hdf_idt id,void *val);
131
132extern
134
135extern
137
138/* HDF Tools */
139extern
140void HDFerrorModeLock();
141
142extern
144HDFnObjects(hdf_idt fid,const char *path,int *n);
145
146extern
147hdf_err HDFobjectIdentify(hdf_idt fid,const char *path,int i,char *name);
148
149extern
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