NeXus  4.4.3
 All Data Structures Files Functions Variables Typedefs Macros Pages
nxxml.h
Go to the documentation of this file.
1 /*
2  * This is the header file for the NeXus XML file driver.
3  *
4  * Copyright (C) 2004 Mark Koennecke
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 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  * For further information, see <http://www.nexusformat.org>
21  */
22 #ifndef NEXUSXML
23 #define NEXUSXML
24 
25 extern NXstatus NXXopen(CONSTCHAR *filename,
26  NXaccess access_method,
27  NXhandle* pHandle);
28 extern NXstatus NXXclose(NXhandle* pHandle);
29 extern NXstatus NXXflush(NXhandle* pHandle);
30 
31 NXstatus NXXmakegroup (NXhandle fid, CONSTCHAR *name,
32  CONSTCHAR *nxclass);
33 NXstatus NXXopengroup (NXhandle fid, CONSTCHAR *name,
34  CONSTCHAR *nxclass);
35 NXstatus NXXclosegroup (NXhandle fid);
36 
37 NXstatus NXXcompmakedata64 (NXhandle fid, CONSTCHAR *name,
38  int datatype,
39  int rank,
40  int64_t dimensions[],
41  int compress_type, int64_t chunk_size[]);
42 NXstatus NXXmakedata64 (NXhandle fid,
43  CONSTCHAR *name, int datatype,
44  int rank, int64_t dimensions[]);
45 NXstatus NXXopendata (NXhandle fid, CONSTCHAR *name);
46 NXstatus NXXclosedata (NXhandle fid);
47 NXstatus NXXputdata (NXhandle fid, const void *data);
48 NXstatus NXXgetdata (NXhandle fid, void *data);
49 NXstatus NXXgetinfo64 (NXhandle fid, int *rank,
50  int64_t dimension[], int *iType);
51 NXstatus NXXputslab64 (NXhandle fid, const void *data,
52  const int64_t iStart[], const int64_t iSize[]);
53 NXstatus NXXgetslab64 (NXhandle fid, void *data,
54  const int64_t iStart[], const int64_t iSize[]);
55 NXstatus NXXputattr (NXhandle fid, CONSTCHAR *name, const void *data,
56  int datalen, int iType);
57 NXstatus NXXgetattr (NXhandle fid, const char *name,
58  void *data, int* datalen, int* iType);
59 
60 NXstatus NXXgetnextentry (NXhandle fid,NXname name, NXname nxclass, int *datatype);
61 extern NXstatus NXXgetnextattr(NXhandle handle, NXname pName, int *iLength, int *iType);
62 extern NXstatus NXXinitgroupdir(NXhandle handle);
63 extern NXstatus NXXinitattrdir(NXhandle handle);
64 extern NXstatus NXXgetattrinfo (NXhandle fid, int *iN);
65 extern NXstatus NXXgetgroupinfo (NXhandle fid, int *iN, NXname pName, NXname pClass);
66 
67 extern NXstatus NXXgetdataID (NXhandle fid, NXlink* sRes);
68 extern NXstatus NXXgetgroupID (NXhandle fid, NXlink* sRes);
69 extern NXstatus NXXmakelink (NXhandle fid, NXlink* sLink);
70 extern NXstatus NXXprintlink (NXhandle fid, NXlink* sLink);
71 extern NXstatus NXXsameID (NXhandle fileid, NXlink* pFirstID, NXlink* pSecondID);
72 
73 extern NXstatus NXXputattra(NXhandle handle, CONSTCHAR* name, const void* data, const int rank, const int dim[], const int iType);
74 extern NXstatus NXXgetnextattra(NXhandle handle, NXname pName, int *rank, int dim[], int *iType);
75 extern NXstatus NXXgetattra(NXhandle handle, const char* name, void* data);
76 extern NXstatus NXXgetattrainfo(NXhandle handle, NXname pName, int *rank, int dim[], int *iType);
77 
79 #endif
NXstatus NXXputattra(NXhandle handle, CONSTCHAR *name, const void *data, const int rank, const int dim[], const int iType)
NXstatus NXXgetnextentry(NXhandle fid, NXname name, NXname nxclass, int *datatype)
NXstatus NXXgetnextattra(NXhandle handle, NXname pName, int *rank, int dim[], int *iType)
NXstatus NXXgetslab64(NXhandle fid, void *data, const int64_t iStart[], const int64_t iSize[])
NXstatus NXXgetattrinfo(NXhandle fid, int *iN)
NXstatus NXXgetattra(NXhandle handle, const char *name, void *data)
NXstatus NXXputattr(NXhandle fid, CONSTCHAR *name, const void *data, int datalen, int iType)
NXstatus NXXgetattrainfo(NXhandle handle, NXname pName, int *rank, int dim[], int *iType)
NXstatus NXXgetgroupinfo(NXhandle fid, int *iN, NXname pName, NXname pClass)
NXstatus NXXmakelink(NXhandle fid, NXlink *sLink)
NXstatus NXXopengroup(NXhandle fid, CONSTCHAR *name, CONSTCHAR *nxclass)
NXstatus NXXinitattrdir(NXhandle handle)
NXstatus NXXprintlink(NXhandle fid, NXlink *sLink)
NXstatus NXXmakedata64(NXhandle fid, CONSTCHAR *name, int datatype, int rank, int64_t dimensions[])
NXstatus NXXputdata(NXhandle fid, const void *data)
NXstatus NXXinitgroupdir(NXhandle handle)
NXstatus NXXflush(NXhandle *pHandle)
NXstatus NXXsameID(NXhandle fileid, NXlink *pFirstID, NXlink *pSecondID)
void NXXassignFunctions(pNexusFunction fHandle)
NXstatus NXXgetgroupID(NXhandle fid, NXlink *sRes)
NXstatus NXXclosegroup(NXhandle fid)
NXstatus NXXopendata(NXhandle fid, CONSTCHAR *name)
NXstatus NXXcompmakedata64(NXhandle fid, CONSTCHAR *name, int datatype, int rank, int64_t dimensions[], int compress_type, int64_t chunk_size[])
NXstatus NXXgetnextattr(NXhandle handle, NXname pName, int *iLength, int *iType)
NXstatus NXXgetattr(NXhandle fid, const char *name, void *data, int *datalen, int *iType)
NXstatus NXXgetdata(NXhandle fid, void *data)
NXstatus NXXclosedata(NXhandle fid)
NXstatus NXXgetinfo64(NXhandle fid, int *rank, int64_t dimension[], int *iType)
NXstatus NXXgetdataID(NXhandle fid, NXlink *sRes)
NXstatus NXXputslab64(NXhandle fid, const void *data, const int64_t iStart[], const int64_t iSize[])
NXstatus NXXopen(CONSTCHAR *filename, NXaccess access_method, NXhandle *pHandle)
NXstatus NXXclose(NXhandle *pHandle)
NXstatus NXXmakegroup(NXhandle fid, CONSTCHAR *name, CONSTCHAR *nxclass)