| 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, char *name, |
|---|
| 58 | void *data, int* datalen, int* iType); |
|---|
| 59 | |
|---|
| 60 | NXstatus NXXgetnextentry (NXhandle fid,NXname name, |
|---|
| 61 | NXname nxclass, int *datatype); |
|---|
| 62 | extern NXstatus NXXgetnextattr(NXhandle handle, |
|---|
| 63 | NXname pName, int *iLength, int *iType); |
|---|
| 64 | extern NXstatus NXXinitgroupdir(NXhandle handle); |
|---|
| 65 | extern NXstatus NXXinitattrdir(NXhandle handle); |
|---|
| 66 | extern NXstatus NXXgetattrinfo (NXhandle fid, int *iN); |
|---|
| 67 | extern NXstatus NXXgetgroupinfo (NXhandle fid, int *iN, |
|---|
| 68 | NXname pName, NXname pClass); |
|---|
| 69 | |
|---|
| 70 | extern NXstatus NXXgetdataID (NXhandle fid, NXlink* sRes); |
|---|
| 71 | extern NXstatus NXXgetgroupID (NXhandle fid, NXlink* sRes); |
|---|
| 72 | extern NXstatus NXXmakelink (NXhandle fid, NXlink* sLink); |
|---|
| 73 | extern NXstatus NXXprintlink (NXhandle fid, NXlink* sLink); |
|---|
| 74 | extern NXstatus NXXsameID (NXhandle fileid, |
|---|
| 75 | NXlink* pFirstID, NXlink* pSecondID); |
|---|
| 76 | |
|---|
| 77 | void NXXassignFunctions(pNexusFunction fHandle); |
|---|
| 78 | #endif |
|---|