musrfit 1.10.0
nxH4 Namespace Reference

HDF4 implementation of the NeXus file reader/writer. More...

Classes

class  PNeXus
 NeXus HDF4 file reader with case-insensitive path lookup. More...
 
class  PNeXusDeadTime
 Dead time correction calculator for muon detector data. More...
 
class  PNXdata
 Template class for storing HDF4 dataset content with attributes. More...
 

Enumerations

enum class  H4DataType {
  kINT32 , kFLOAT32 , kFLOAT64 , kCHAR8 ,
  kUINT32 , kINT16 , kUINT16 , kINT8 ,
  kUINT8
}
 HDF4 data type enumeration. More...
 

Detailed Description

HDF4 implementation of the NeXus file reader/writer.

The nxH4 namespace provides classes and functions for reading and writing NeXus files in HDF4 format. This implementation uses the HDF4 C API (mfhdf.h, hdf.h) and provides case-insensitive path lookup.

Key Classes:

  • PNeXus: Main file reader/writer class
  • PNXdata: Template class for storing dataset content
  • PNeXusDeadTime: Dead time correction calculator

Requirements:

  • HDF4 library (libmfhdf, libhdf)
  • HAVE_HDF4 must be defined at compile time
Note
This namespace is only available if compiled with HAVE_HDF4 defined
See also
nxH5 for the HDF5 implementation
nxs::checkHDFType() to determine file format before reading

Enumeration Type Documentation

◆ H4DataType

enum class nxH4::H4DataType
strong

HDF4 data type enumeration.

This enum maps to HDF4 numeric types (DFNT_*) for type-safe dataset handling

Enumerator
kINT32 

32-bit signed integer (DFNT_INT32)

kFLOAT32 

32-bit floating point (DFNT_FLOAT32)

kFLOAT64 

64-bit floating point (DFNT_FLOAT64)

kCHAR8 

8-bit character (DFNT_CHAR8)

kUINT32 

32-bit unsigned integer (DFNT_UINT32)

kINT16 

16-bit signed integer (DFNT_INT16)

kUINT16 

16-bit unsigned integer (DFNT_UINT16)

kINT8 

8-bit signed integer (DFNT_INT8)

kUINT8 

8-bit unsigned integer (DFNT_UINT8)

Examples
/workspace/LMU/musrfit/src/external/nexus/PNeXus.cpp, and /workspace/LMU/musrfit/src/external/nexus/PNeXus.h.

Definition at line 329 of file PNeXus.h.