- Fixes to make SL6 work
- New NeXus libraries - Added new raw binary transfer mode for mass data - Added a check script option to configurable virtual motor SKIPPED: psi/dumprot.c psi/make_gen psi/psi.c psi/rebin.c psi/sanslirebin.c
This commit is contained in:
62
nxdataset.h
62
nxdataset.h
@ -10,26 +10,26 @@
|
||||
#define NXDATASET
|
||||
|
||||
|
||||
#define MAGIC 7776622
|
||||
#define MAGIC 7776622
|
||||
|
||||
#include "napiconfig.h"
|
||||
|
||||
typedef struct {
|
||||
int magic;
|
||||
int rank;
|
||||
int type;
|
||||
int *dim;
|
||||
char *format;
|
||||
union {
|
||||
void *ptr;
|
||||
float *fPtr;
|
||||
double *dPtr;
|
||||
int *iPtr;
|
||||
short int *sPtr;
|
||||
char *cPtr;
|
||||
int64_t *lPtr;
|
||||
} u;
|
||||
} *pNXDS, NXDS;
|
||||
int magic;
|
||||
int rank;
|
||||
int type;
|
||||
int64_t *dim;
|
||||
char *format;
|
||||
union {
|
||||
void *ptr;
|
||||
float *fPtr;
|
||||
double *dPtr;
|
||||
int *iPtr;
|
||||
short int *sPtr;
|
||||
char *cPtr;
|
||||
int64_t *lPtr;
|
||||
} u;
|
||||
}*pNXDS, NXDS;
|
||||
|
||||
/*
|
||||
include NeXus type codes if not already defined
|
||||
@ -38,9 +38,9 @@ typedef struct {
|
||||
|
||||
#define NX_FLOAT32 5
|
||||
#define NX_FLOAT64 6
|
||||
#define NX_INT8 20
|
||||
#define NX_INT8 20
|
||||
#define NX_UINT8 21
|
||||
#define NX_INT16 22
|
||||
#define NX_INT16 22
|
||||
#define NX_UINT16 23
|
||||
#define NX_INT32 24
|
||||
#define NX_UINT32 25
|
||||
@ -53,25 +53,25 @@ typedef struct {
|
||||
#endif
|
||||
|
||||
|
||||
pNXDS createNXDataset(int rank, int typecode, int dim[]);
|
||||
pNXDS createNXDataset(int rank, int typecode, int64_t dim[]);
|
||||
pNXDS createTextNXDataset(char *name);
|
||||
|
||||
void dropNXDataset(pNXDS dataset);
|
||||
void dropNXDataset(pNXDS dataset);
|
||||
|
||||
int getNXDatasetRank(pNXDS dataset);
|
||||
int getNXDatasetDim(pNXDS dataset, int which);
|
||||
int getNXDatasetType(pNXDS dataset);
|
||||
int getNXDatasetLength(pNXDS dataset);
|
||||
int getNXDatasetByteLength(pNXDS dataset);
|
||||
int getNXDatasetRank(pNXDS dataset);
|
||||
int getNXDatasetDim(pNXDS dataset, int which);
|
||||
int getNXDatasetType(pNXDS dataset);
|
||||
int getNXDatasetLength(pNXDS dataset);
|
||||
int getNXDatasetByteLength(pNXDS dataset);
|
||||
|
||||
double getNXDatasetValue(pNXDS dataset, int pos[]);
|
||||
double getNXDatasetValueAt(pNXDS dataset, int address);
|
||||
char *getNXDatasetText(pNXDS dataset);
|
||||
double getNXDatasetValue(pNXDS dataset, int64_t pos[]);
|
||||
double getNXDatasetValueAt(pNXDS dataset, int64_t address);
|
||||
char *getNXDatasetText(pNXDS dataset);
|
||||
|
||||
int putNXDatasetValue(pNXDS dataset, int pos[], double value);
|
||||
int putNXDatasetValueAt(pNXDS dataset, int address, double value);
|
||||
int putNXDatasetValue(pNXDS dataset, int64_t pos[], double value);
|
||||
int putNXDatasetValueAt(pNXDS dataset, int64_t address, double value);
|
||||
|
||||
pNXDS cutNXDataset(pNXDS source, int start[], int end[]);
|
||||
pNXDS cutNXDataset(pNXDS source, int64_t start[], int64_t end[]);
|
||||
pNXDS sumNXDataset(pNXDS source, int dimNo, int start, int end);
|
||||
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user