NeXus  4.4.3
 All Data Structures Files Functions Variables Typedefs Macros Pages
napi4.h
Go to the documentation of this file.
1 #ifndef NAPI4_H
2 #define NAPI4_H
3 
4 #define NXSIGNATURE 959697
5 
6 #include "mfhdf.h"
7 /* #include "napi4.c" */
8 
9 /*
10  * HDF4 interface
11  */
12 
13 extern NXstatus NX4open(CONSTCHAR *filename, NXaccess access_method, NXhandle* pHandle);
14 extern NXstatus NX4close(NXhandle* pHandle);
15 extern NXstatus NX4flush(NXhandle* pHandle);
16 
17 extern NXstatus NX4makegroup (NXhandle handle, CONSTCHAR* Vgroup, CONSTCHAR* NXclass);
18 extern NXstatus NX4opengroup (NXhandle handle, CONSTCHAR* Vgroup, CONSTCHAR* NXclass);
19 extern NXstatus NX4closegroup(NXhandle handle);
20 
21 extern NXstatus NX4makedata64 (NXhandle handle, CONSTCHAR* label, int datatype, int rank, int64_t dim[]);
22 extern NXstatus NX4compmakedata64 (NXhandle handle, CONSTCHAR* label, int datatype, int rank, int64_t dim[], int comp_typ, int64_t bufsize[]);
23 extern NXstatus NX4compress (NXhandle handle, int compr_type);
24 extern NXstatus NX4opendata (NXhandle handle, CONSTCHAR* label);
25 
26 extern NXstatus NX4closedata(NXhandle handle);
27 
28 extern NXstatus NX4getdata(NXhandle handle, void* data);
29 extern NXstatus NX4getslab64(NXhandle handle, void* data, const int64_t start[], const int64_t size[]);
30 extern NXstatus NX4getattr(NXhandle handle, const char* name, void* data, int* iDataLen, int* iType);
31 
32 extern NXstatus NX4putdata(NXhandle handle, const void* data);
33 extern NXstatus NX4putslab64(NXhandle handle, const void* data, const int64_t start[], const int64_t size[]);
34 extern NXstatus NX4putattr(NXhandle handle, CONSTCHAR* name, const void* data, int iDataLen, int iType);
35 
36 extern NXstatus NX4getinfo64(NXhandle handle, int* rank, int64_t dimension[], int* datatype);
37 extern NXstatus NX4getgroupinfo(NXhandle handle, int* no_items, NXname name, NXname nxclass);
38 extern NXstatus NX4initgroupdir(NXhandle handle);
39 extern NXstatus NX4getnextentry(NXhandle handle, NXname name, NXname nxclass, int* datatype);
40 extern NXstatus NX4getattrinfo(NXhandle handle, int* no_items);
41 extern NXstatus NX4initattrdir(NXhandle handle);
42 extern NXstatus NX4getnextattr(NXhandle handle, NXname pName, int *iLength, int *iType);
43 
44 extern NXstatus NX4getgroupID(NXhandle handle, NXlink* pLink);
45 extern NXstatus NX4getdataID(NXhandle handle, NXlink* pLink);
46 extern NXstatus NX4makelink(NXhandle handle, NXlink* pLink);
47 extern NXstatus NX4printlink(NXhandle handle, NXlink* pLink);
48 
49 extern NXstatus NX4putattra(NXhandle handle, CONSTCHAR* name, const void* data, const int rank, const int dim[], const int iType);
50 extern NXstatus NX4getnextattra(NXhandle handle, NXname pName, int *rank, int dim[], int *iType);
51 extern NXstatus NX4getattra(NXhandle handle, const char* name, void* data);
52 extern NXstatus NX4getattrainfo(NXhandle handle, NXname pName, int *rank, int dim[], int *iType);
53 
55 
56 /*
57  * HDF changed from MAX_VAR_DIMS to H4_MAX_VAR_DIMS aronud 9/5/2007
58  * to avoid potential conflicts with NetCDF-3 library
59  */
60 #ifndef H4_MAX_VAR_DIMS
61 #define H4_MAX_VAR_DIMS MAX_VAR_DIMS
62 #endif
63 
64 #endif /* NAPI4_H */
NXstatus NX4close(NXhandle *pHandle)
NXstatus NX4getdataID(NXhandle handle, NXlink *pLink)
NXstatus NX4putattr(NXhandle handle, CONSTCHAR *name, const void *data, int iDataLen, int iType)
NXstatus NX4getinfo64(NXhandle handle, int *rank, int64_t dimension[], int *datatype)
NXstatus NX4compmakedata64(NXhandle handle, CONSTCHAR *label, int datatype, int rank, int64_t dim[], int comp_typ, int64_t bufsize[])
NXstatus NX4makedata64(NXhandle handle, CONSTCHAR *label, int datatype, int rank, int64_t dim[])
NXstatus NX4closegroup(NXhandle handle)
NXstatus NX4putslab64(NXhandle handle, const void *data, const int64_t start[], const int64_t size[])
NXstatus NX4getattrainfo(NXhandle handle, NXname pName, int *rank, int dim[], int *iType)
NXstatus NX4open(CONSTCHAR *filename, NXaccess access_method, NXhandle *pHandle)
NXstatus NX4getattra(NXhandle handle, const char *name, void *data)
NXstatus NX4putattra(NXhandle handle, CONSTCHAR *name, const void *data, const int rank, const int dim[], const int iType)
NXstatus NX4closedata(NXhandle handle)
NXstatus NX4getgroupinfo(NXhandle handle, int *no_items, NXname name, NXname nxclass)
NXstatus NX4opengroup(NXhandle handle, CONSTCHAR *Vgroup, CONSTCHAR *NXclass)
void NX4assignFunctions(pNexusFunction fHandle)
NXstatus NX4flush(NXhandle *pHandle)
NXstatus NX4getnextattr(NXhandle handle, NXname pName, int *iLength, int *iType)
NXstatus NX4makegroup(NXhandle handle, CONSTCHAR *Vgroup, CONSTCHAR *NXclass)
NXstatus NX4getnextattra(NXhandle handle, NXname pName, int *rank, int dim[], int *iType)
NXstatus NX4getdata(NXhandle handle, void *data)
NXstatus NX4makelink(NXhandle handle, NXlink *pLink)
NXstatus NX4getattr(NXhandle handle, const char *name, void *data, int *iDataLen, int *iType)
NXstatus NX4putdata(NXhandle handle, const void *data)
NXstatus NX4opendata(NXhandle handle, CONSTCHAR *label)
NXstatus NX4getnextentry(NXhandle handle, NXname name, NXname nxclass, int *datatype)
NXstatus NX4getgroupID(NXhandle handle, NXlink *pLink)
NXstatus NX4getattrinfo(NXhandle handle, int *no_items)
NXstatus NX4getslab64(NXhandle handle, void *data, const int64_t start[], const int64_t size[])
NXstatus NX4initgroupdir(NXhandle handle)
NXstatus NX4compress(NXhandle handle, int compr_type)
NXstatus NX4printlink(NXhandle handle, NXlink *pLink)
NXstatus NX4initattrdir(NXhandle handle)