NEP 4.3.0
NetCDF Expansion Pack
Loading...
Searching...
No Matches
NXCDF_FILE_INFO Struct Reference

Per-file state owned by the nxCDF dispatch layer. More...

#include <nxcdf_internal.h>

Data Fields

hid_t hdfid
hid_t rootid
char * path
int mode
int no_write
int define_mode
int swmr_requested
int swmr_active
int swmr_read
int netcdf4_model
int backend_marked
int created_by_us
char * ncproperties

Detailed Description

Per-file state owned by the nxCDF dispatch layer.

Hung off netcdf-c's NC_FILE_INFO_T::format_file_info by NXCDF_add_file(); holds the open HDF5 handles and the mode flags the dispatch entries consult. See nxCDF Architecture.

Field Documentation

◆ backend_marked

int NXCDF_FILE_INFO::backend_marked

Nonzero when the nxCDF backend marker is present.

◆ created_by_us

int NXCDF_FILE_INFO::created_by_us

Nonzero when this session created the file; only such files get a fresh _NCProperties stamp — an opened file keeps whatever provenance it already carried.

◆ define_mode

int NXCDF_FILE_INFO::define_mode

Nonzero while the file is in define mode.

◆ hdfid

hid_t NXCDF_FILE_INFO::hdfid

Open HDF5 file identifier, or a negative value.

◆ mode

int NXCDF_FILE_INFO::mode

Effective NetCDF create/open mode.

◆ ncproperties

char* NXCDF_FILE_INFO::ncproperties

Owned _NCProperties value: built at create, read from the file at open, or NULL when the file has none.

◆ netcdf4_model

int NXCDF_FILE_INFO::netcdf4_model

Nonzero for NC_NETCDF4_MODEL compatibility mode.

◆ no_write

int NXCDF_FILE_INFO::no_write

Nonzero when the HDF5 file is read-only.

◆ path

char* NXCDF_FILE_INFO::path

Owned copy of the file-system path.

◆ rootid

hid_t NXCDF_FILE_INFO::rootid

Open HDF5 root-group identifier, or a negative value.

◆ swmr_active

int NXCDF_FILE_INFO::swmr_active

HDF5 SWMR writing successfully started this session.

◆ swmr_read

int NXCDF_FILE_INFO::swmr_read

Read-only session opened with H5F_ACC_SWMR_READ (NC_SWMR_READ); gates nc_swmr_refresh(). Mutually exclusive with swmr_requested/swmr_active.

◆ swmr_requested

int NXCDF_FILE_INFO::swmr_requested

Session requests activation after schema commitment.


The documentation for this struct was generated from the following file: