NEP 4.3.0
NetCDF Expansion Pack
Loading...
Searching...
No Matches
pds4dispatch.h File Reference

Public declarations for the PDS4 UDF backend. More...

#include <netcdf.h>
#include <netcdf_dispatch.h>
#include "nep.h"

Go to the source code of this file.

Macros

#define NC_FORMATX_NC_PDS4   NC_FORMATX_UDF0

Functions

NC_Dispatch * NC_PDS4_initialize (void)
 Register the PDS4 dispatch table in its UDF slot.
int NC_PDS4_finalize (void)
 Finalize process-wide PDS4 dispatch state.

Detailed Description

Public declarations for the PDS4 UDF backend.

This header declares only what applications need — the initialize/finalize pair and the extended format identifier.

This header may be included by downstream projects: it depends only on installed netcdf-c headers and nep.h.

Author
Edward Hartnett
Date
2026-07-08

Macro Definition Documentation

◆ NC_FORMATX_NC_PDS4

#define NC_FORMATX_NC_PDS4   NC_FORMATX_UDF0

PDS4 format uses UDF5 slot for dispatch table model field (see nep.h for slot allocation)

Function Documentation

◆ NC_PDS4_finalize()

int NC_PDS4_finalize ( void )
extern

Finalize process-wide PDS4 dispatch state.

Finalize the PDS4 dispatch layer.

No-op in the current implementation.

Returns
NC_NOERR No error.
Author
Edward Hartnett
Date
2026-07-08

◆ NC_PDS4_initialize()

NC_Dispatch * NC_PDS4_initialize ( void )
extern

Register the PDS4 dispatch table in its UDF slot.

Initialize the PDS4 dispatch layer.

Registers the PDS4 handler via nc_def_user_format() for direct calls, and returns the dispatch table pointer for the self-registration (HAVE_NETCDF_UDF_SELF_REGISTRATION) path. Safe to call when the handler has already been registered via .ncrc autoload; in that case NC_EINVAL from nc_def_user_format() is silently ignored.

Returns
Pointer to PDS4 dispatch table, or NULL on failure.
Author
Edward Hartnett
Date
2026-07-08