NeXus  4.4.3
 All Data Structures Files Functions Variables Typedefs Macros Pages
Data Structures | Macros | Typedefs | Functions
nxdataset.h File Reference
#include "napiconfig.h"
Include dependency graph for nxdataset.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  pNXDS
 

Macros

#define MAGIC   7776622
 
#define NX_FLOAT32   5
 
#define NX_FLOAT64   6
 
#define NX_INT8   20
 
#define NX_UINT8   21
 
#define NX_INT16   22
 
#define NX_UINT16   23
 
#define NX_INT32   24
 
#define NX_UINT32   25
 
#define NX_INT64   26
 
#define NX_UINT64   27
 
#define NX_CHAR   4
 
#define NX_MAXRANK   32
 

Typedefs

typedef struct pNXDS NXDS
 

Functions

pNXDS createNXDataset (int rank, int typecode, int64_t dim[])
 
pNXDS createTextNXDataset (char *name)
 
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)
 
double getNXDatasetValue (pNXDS dataset, int64_t pos[])
 
double getNXDatasetValueAt (pNXDS dataset, int64_t address)
 
char * getNXDatasetText (pNXDS dataset)
 
int putNXDatasetValue (pNXDS dataset, int64_t pos[], double value)
 
int putNXDatasetValueAt (pNXDS dataset, int64_t address, double value)
 

Macro Definition Documentation

#define MAGIC   7776622
#define NX_CHAR   4
#define NX_FLOAT32   5
Examples:
napi_test.c.

Definition at line 39 of file nxdataset.h.

Referenced by getNXDatasetText(), getNXDatasetValueAt(), NXmalloc64(), and putNXDatasetValueAt().

#define NX_FLOAT64   6
Examples:
napi_test.c.

Definition at line 40 of file nxdataset.h.

Referenced by getNXDatasetText(), getNXDatasetValueAt(), NXmalloc64(), and putNXDatasetValueAt().

#define NX_INT16   22
Examples:
napi_test.c.

Definition at line 43 of file nxdataset.h.

Referenced by getNXDatasetText(), getNXDatasetValueAt(), NXmalloc64(), and putNXDatasetValueAt().

#define NX_INT32   24
Examples:
napi_test.c.

Definition at line 45 of file nxdataset.h.

Referenced by getNXDatasetText(), getNXDatasetValueAt(), NXmalloc64(), and putNXDatasetValueAt().

#define NX_INT64   26
Examples:
napi_test.c.

Definition at line 47 of file nxdataset.h.

Referenced by getNXDatasetText(), getNXDatasetValueAt(), NXmalloc64(), and putNXDatasetValueAt().

#define NX_INT8   20
Examples:
napi_test.c.

Definition at line 41 of file nxdataset.h.

Referenced by NXmalloc64().

#define NX_MAXRANK   32

Definition at line 51 of file nxdataset.h.

Referenced by NXgetdata(), NXgetinfo(), NXgetrawinfo(), NXgetslab(), and NXputslab().

#define NX_UINT16   23

Definition at line 44 of file nxdataset.h.

Referenced by getNXDatasetText(), getNXDatasetValueAt(), NXmalloc64(), and putNXDatasetValueAt().

#define NX_UINT32   25

Definition at line 46 of file nxdataset.h.

Referenced by getNXDatasetText(), getNXDatasetValueAt(), NXmalloc64(), and putNXDatasetValueAt().

#define NX_UINT64   27
Examples:
napi_test.c.

Definition at line 48 of file nxdataset.h.

Referenced by getNXDatasetText(), getNXDatasetValueAt(), NXmalloc64(), and putNXDatasetValueAt().

#define NX_UINT8   21

Definition at line 42 of file nxdataset.h.

Referenced by NXmalloc64().

Typedef Documentation

typedef struct pNXDS NXDS

Function Documentation

pNXDS createNXDataset ( int  rank,
int  typecode,
int64_t  dim[] 
)

Definition at line 36 of file nxdataset.c.

References pNXDS::dim, pNXDS::format, MAGIC, pNXDS::magic, pNXDS::ptr, pNXDS::rank, pNXDS::type, and pNXDS::u.

pNXDS createTextNXDataset ( char *  name)
void dropNXDataset ( pNXDS  dataset)

Definition at line 89 of file nxdataset.c.

References pNXDS::dim, pNXDS::format, MAGIC, pNXDS::magic, pNXDS::ptr, and pNXDS::u.

int getNXDatasetByteLength ( pNXDS  dataset)

Definition at line 157 of file nxdataset.c.

References getNXDatasetLength(), and pNXDS::type.

Here is the call graph for this function:

int getNXDatasetDim ( pNXDS  dataset,
int  which 
)

Definition at line 118 of file nxdataset.c.

References pNXDS::dim, MAGIC, pNXDS::magic, and pNXDS::rank.

int getNXDatasetLength ( pNXDS  dataset)

Definition at line 141 of file nxdataset.c.

References pNXDS::dim, MAGIC, and pNXDS::magic.

Referenced by getNXDatasetByteLength().

int getNXDatasetRank ( pNXDS  dataset)

Definition at line 108 of file nxdataset.c.

References MAGIC, pNXDS::magic, and pNXDS::rank.

char* getNXDatasetText ( pNXDS  dataset)
int getNXDatasetType ( pNXDS  dataset)

Definition at line 131 of file nxdataset.c.

References MAGIC, pNXDS::magic, and pNXDS::type.

double getNXDatasetValue ( pNXDS  dataset,
int64_t  pos[] 
)

Definition at line 180 of file nxdataset.c.

References getNXDatasetValueAt(), MAGIC, and pNXDS::magic.

Here is the call graph for this function:

double getNXDatasetValueAt ( pNXDS  dataset,
int64_t  address 
)
int putNXDatasetValue ( pNXDS  dataset,
int64_t  pos[],
double  value 
)

Definition at line 267 of file nxdataset.c.

References MAGIC, pNXDS::magic, and putNXDatasetValueAt().

Here is the call graph for this function:

int putNXDatasetValueAt ( pNXDS  dataset,
int64_t  address,
double  value 
)