source: trunk/include/napiu.h @ 1822

Revision 671, 2.9 KB checked in by faa59, 7 years ago (diff)

Clean up NX_EXTERNAL and CALLING_STYLE

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
Line 
1/*---------------------------------------------------------------------------
2  NeXus - Neutron & X-ray Common Data Format
3 
4  NeXus Utility (NXU) Application Program Interface Header File
5 
6  Copyright (C) 2005 Freddie Akeroyd
7 
8  This library is free software; you can redistribute it and/or
9  modify it under the terms of the GNU Lesser General Public
10  License as published by the Free Software Foundation; either
11  version 2 of the License, or (at your option) any later version.
12 
13  This library is distributed in the hope that it will be useful,
14  but WITHOUT ANY WARRANTY; without even the implied warranty of
15  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
16  Lesser General Public License for more details.
17 
18  You should have received a copy of the GNU Lesser General Public
19  License along with this library; if not, write to the Free Software
20  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
21 
22  For further information, see <http://www.nexus.anl.gov/>
23 
24  $Id$
25
26 ----------------------------------------------------------------------------*/
27 
28#ifndef NEXUSAPIU
29#define NEXUSAPIU
30
31#include "napi.h"
32
33#ifdef __cplusplus
34extern "C" {
35#endif /* __cplusplus */
36
37extern  NXstatus  NXUwriteglobals(NXhandle file_id, const char* user, const char* affiliation, const char* address, const char* phone, const char* fax, const char* email);
38
39extern  NXstatus  NXUwritegroup(NXhandle file_id, const char* group_name, const char* group_class);
40
41extern NXstatus  NXUwritedata(NXhandle file_id, const char* data_name, const void* data, int data_type, int rank, const int dim[], const char* units, const int start[], const int size[]);
42
43extern NXstatus  NXUreaddata(NXhandle file_id, const char* data_name, void* data, char* units, const int start[], const int size[]);
44
45extern NXstatus  NXUwritehistogram(NXhandle file_id, const char* data_name, const void* data, const char* units);
46
47extern NXstatus  NXUreadhistogram(NXhandle file_id, const char* data_name, void* data, char* units);
48
49extern NXstatus  NXUsetcompress(NXhandle file_id, int comp_type, int comp_size);
50
51extern NXstatus  NXUfindgroup(NXhandle file_id, const char* group_name, char* group_class);
52
53extern NXstatus  NXUfindclass(NXhandle file_id, const char* group_class, char* group_name, int find_index);
54
55extern NXstatus  NXUfinddata(NXhandle file_id, const char* data_name);
56
57extern NXstatus  NXUfindattr(NXhandle file_id, const char* attr_name);
58
59extern NXstatus  NXUfindsignal(NXhandle file_id, int signal, char* data_name, int* data_rank, int* data_type, int data_dimensions[]);
60
61extern NXstatus  NXUfindaxis(NXhandle file_id, int axis, int primary, char* data_name, int* data_rank, int* data_type, int data_dimensions[]);
62
63extern NXstatus  NXUfindlink(NXhandle file_id, NXlink* group_id, const char* group_class);
64
65extern NXstatus  NXUresumelink(NXhandle file_id, NXlink group_id);
66
67#ifdef __cplusplus
68}
69#endif /* __cplusplus */
70
71#endif /*NEXUSAPIU*/
72
Note: See TracBrowser for help on using the repository browser.