NeXus  4.4.3
 All Data Structures Files Functions Variables Typedefs Macros Pages
napi5.h
Go to the documentation of this file.
1 #ifndef NAPI5_H
2 #define NAPI5_H
3 
4 #define NX5SIGNATURE 959695
5 
6 /* Hide deprecated API from HDF5 versions before 1.8
7  * Required to build on Ubuntu 12.04 */
8 
9 #include <hdf5.h>
10 
11 /* HDF5 interface */
12 
13 extern NXstatus NX5open(CONSTCHAR *filename, NXaccess access_method, NXhandle* pHandle);
14 extern NXstatus NX5reopen(NXhandle pOrigHandle, NXhandle* pNewHandle);
15 
16 extern NXstatus NX5close(NXhandle* pHandle);
17 extern NXstatus NX5flush(NXhandle* pHandle);
18 
19 extern NXstatus NX5makegroup (NXhandle handle, CONSTCHAR *name, CONSTCHAR* NXclass);
20 extern NXstatus NX5opengroup (NXhandle handle, CONSTCHAR *name, CONSTCHAR* NXclass);
21 extern NXstatus NX5closegroup(NXhandle handle);
22 
23 extern NXstatus NX5makedata64 (NXhandle handle, CONSTCHAR* label, int datatype, int rank, int64_t dim[]);
24 extern NXstatus NX5compmakedata64 (NXhandle handle, CONSTCHAR* label, int datatype, int rank, int64_t dim[], int comp_typ, int64_t bufsize[]);
25 extern NXstatus NX5compress (NXhandle handle, int compr_type);
26 extern NXstatus NX5opendata (NXhandle handle, CONSTCHAR* label);
27 extern NXstatus NX5closedata(NXhandle handle);
28 extern NXstatus NX5putdata(NXhandle handle, const void* data);
29 
30 extern NXstatus NX5putattr(NXhandle handle, CONSTCHAR* name, const void* data, int iDataLen, int iType);
31 extern NXstatus NX5putslab64(NXhandle handle, const void* data, const int64_t start[], const int64_t size[]);
32 
33 extern NXstatus NX5getdataID(NXhandle handle, NXlink* pLink);
34 extern NXstatus NX5makelink(NXhandle handle, NXlink* pLink);
35 extern NXstatus NX5printlink(NXhandle handle, NXlink* pLink);
36 
37 extern NXstatus NX5getdata(NXhandle handle, void* data);
38 extern NXstatus NX5getinfo64(NXhandle handle, int* rank, int64_t dimension[], int* datatype);
39 extern NXstatus NX5getnextentry(NXhandle handle, NXname name, NXname nxclass, int* datatype);
40 
41 extern NXstatus NX5getslab64(NXhandle handle, void* data, const int64_t start[], const int64_t size[]);
42 extern NXstatus NX5getnextattr(NXhandle handle, NXname pName, int *iLength, int *iType);
43 extern NXstatus NX5getattr(NXhandle handle, const char* name, void* data, int* iDataLen, int* iType);
44 extern NXstatus NX5getattrinfo(NXhandle handle, int* no_items);
45 extern NXstatus NX5getgroupID(NXhandle handle, NXlink* pLink);
46 extern NXstatus NX5getgroupinfo(NXhandle handle, int* no_items, NXname name, NXname nxclass);
47 
48 extern NXstatus NX5initgroupdir(NXhandle handle);
49 extern NXstatus NX5initattrdir(NXhandle handle);
50 
51 extern NXstatus NX5putattra(NXhandle handle, CONSTCHAR* name, const void* data, const int rank, const int dim[], const int iType);
52 extern NXstatus NX5getnextattra(NXhandle handle, NXname pName, int *rank, int dim[], int *iType);
53 extern NXstatus NX5getattra(NXhandle handle, const char* name, void* data);
54 extern NXstatus NX5getattrainfo(NXhandle handle, NXname pName, int *rank, int dim[], int *iType);
55 
57 
58 herr_t attr_info(hid_t loc_id, const char *name, const H5A_info_t *unused, void *opdata);
59 herr_t group_info(hid_t loc_id, const char *name, const H5L_info_t *unused, void *opdata);
60 herr_t nxgroup_info(hid_t loc_id, const char *name, const H5L_info_t *unused, void *op_data);
61 
62 #endif /* NAPI5_H */
NXstatus NX5getnextattr(NXhandle handle, NXname pName, int *iLength, int *iType)
NXstatus NX5opendata(NXhandle handle, CONSTCHAR *label)
NXstatus NX5printlink(NXhandle handle, NXlink *pLink)
NXstatus NX5getnextentry(NXhandle handle, NXname name, NXname nxclass, int *datatype)
NXstatus NX5getattrinfo(NXhandle handle, int *no_items)
NXstatus NX5getattrainfo(NXhandle handle, NXname pName, int *rank, int dim[], int *iType)
NXstatus NX5getattr(NXhandle handle, const char *name, void *data, int *iDataLen, int *iType)
NXstatus NX5closedata(NXhandle handle)
NXstatus NX5putslab64(NXhandle handle, const void *data, const int64_t start[], const int64_t size[])
NXstatus NX5makegroup(NXhandle handle, CONSTCHAR *name, CONSTCHAR *NXclass)
NXstatus NX5putattra(NXhandle handle, CONSTCHAR *name, const void *data, const int rank, const int dim[], const int iType)
void NX5assignFunctions(pNexusFunction fHandle)
NXstatus NX5closegroup(NXhandle handle)
NXstatus NX5flush(NXhandle *pHandle)
NXstatus NX5initgroupdir(NXhandle handle)
NXstatus NX5open(CONSTCHAR *filename, NXaccess access_method, NXhandle *pHandle)
NXstatus NX5makedata64(NXhandle handle, CONSTCHAR *label, int datatype, int rank, int64_t dim[])
NXstatus NX5getgroupID(NXhandle handle, NXlink *pLink)
NXstatus NX5putattr(NXhandle handle, CONSTCHAR *name, const void *data, int iDataLen, int iType)
NXstatus NX5compmakedata64(NXhandle handle, CONSTCHAR *label, int datatype, int rank, int64_t dim[], int comp_typ, int64_t bufsize[])
NXstatus NX5reopen(NXhandle pOrigHandle, NXhandle *pNewHandle)
NXstatus NX5getnextattra(NXhandle handle, NXname pName, int *rank, int dim[], int *iType)
NXstatus NX5getgroupinfo(NXhandle handle, int *no_items, NXname name, NXname nxclass)
NXstatus NX5compress(NXhandle handle, int compr_type)
NXstatus NX5initattrdir(NXhandle handle)
NXstatus NX5getslab64(NXhandle handle, void *data, const int64_t start[], const int64_t size[])
NXstatus NX5makelink(NXhandle handle, NXlink *pLink)
herr_t group_info(hid_t loc_id, const char *name, const H5L_info_t *unused, void *opdata)
NXstatus NX5opengroup(NXhandle handle, CONSTCHAR *name, CONSTCHAR *NXclass)
NXstatus NX5putdata(NXhandle handle, const void *data)
NXstatus NX5getinfo64(NXhandle handle, int *rank, int64_t dimension[], int *datatype)
herr_t nxgroup_info(hid_t loc_id, const char *name, const H5L_info_t *unused, void *op_data)
NXstatus NX5getattra(NXhandle handle, const char *name, void *data)
NXstatus NX5close(NXhandle *pHandle)
NXstatus NX5getdata(NXhandle handle, void *data)
NXstatus NX5getdataID(NXhandle handle, NXlink *pLink)
herr_t attr_info(hid_t loc_id, const char *name, const H5A_info_t *unused, void *opdata)