source: trunk/include/nxxml.h @ 1822

Revision 1792, 3.1 KB checked in by Freddie Akeroyd, 6 months ago (diff)

Fix constness of various functions. Refs #286

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
Line 
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
25extern  NXstatus  NXXopen(CONSTCHAR *filename, 
26                                            NXaccess access_method, 
27                                            NXhandle* pHandle);
28extern  NXstatus  NXXclose(NXhandle* pHandle);
29extern  NXstatus  NXXflush(NXhandle* pHandle);
30
31NXstatus  NXXmakegroup (NXhandle fid, CONSTCHAR *name, 
32                                     CONSTCHAR *nxclass);
33NXstatus  NXXopengroup (NXhandle fid, CONSTCHAR *name, 
34                                     CONSTCHAR *nxclass);
35NXstatus  NXXclosegroup (NXhandle fid);
36
37NXstatus  NXXcompmakedata64 (NXhandle fid, CONSTCHAR *name, 
38                                        int datatype, 
39                                        int rank, 
40                                        int64_t dimensions[],
41                                        int compress_type, int64_t chunk_size[]);
42NXstatus  NXXmakedata64 (NXhandle fid, 
43                                    CONSTCHAR *name, int datatype, 
44                                    int rank, int64_t dimensions[]);
45NXstatus  NXXopendata (NXhandle fid, CONSTCHAR *name);
46NXstatus  NXXclosedata (NXhandle fid);
47NXstatus  NXXputdata (NXhandle fid, const void *data);
48NXstatus  NXXgetdata (NXhandle fid, void *data);
49NXstatus  NXXgetinfo64 (NXhandle fid, int *rank, 
50                                   int64_t dimension[], int *iType);
51NXstatus  NXXputslab64 (NXhandle fid, const void *data, 
52                                   const int64_t iStart[], const int64_t iSize[]);
53NXstatus  NXXgetslab64 (NXhandle fid, void *data, 
54                                   const int64_t iStart[], const int64_t iSize[]);
55NXstatus  NXXputattr (NXhandle fid, CONSTCHAR *name, const void *data, 
56                                   int datalen, int iType);
57NXstatus  NXXgetattr (NXhandle fid, char *name, 
58                                   void *data, int* datalen, int* iType);
59
60NXstatus  NXXgetnextentry (NXhandle fid,NXname name, 
61                                        NXname nxclass, int *datatype);
62extern  NXstatus  NXXgetnextattr(NXhandle handle, 
63                                NXname pName, int *iLength, int *iType);
64extern  NXstatus  NXXinitgroupdir(NXhandle handle);
65extern  NXstatus  NXXinitattrdir(NXhandle handle);
66extern  NXstatus  NXXgetattrinfo (NXhandle fid, int *iN);
67extern  NXstatus  NXXgetgroupinfo (NXhandle fid, int *iN, 
68                                        NXname pName, NXname pClass);
69
70extern NXstatus  NXXgetdataID (NXhandle fid, NXlink* sRes);
71extern NXstatus  NXXgetgroupID (NXhandle fid, NXlink* sRes);
72extern NXstatus  NXXmakelink (NXhandle fid, NXlink* sLink);
73extern NXstatus  NXXprintlink (NXhandle fid, NXlink* sLink);
74extern NXstatus  NXXsameID (NXhandle fileid, 
75                                              NXlink* pFirstID, NXlink* pSecondID);
76
77void NXXassignFunctions(pNexusFunction fHandle);
78#endif
Note: See TracBrowser for help on using the repository browser.