OPeNDAP Hyrax Back End Server (BES)  Updated for version 3.8.3
h5dds.h File Reference

Data structure and retrieval processing header for the default option. More...

#include <H5Gpublic.h>
#include <H5Fpublic.h>
#include <H5Ipublic.h>
#include <H5Tpublic.h>
#include <H5Spublic.h>
#include <H5Apublic.h>
#include <H5public.h>
#include <DDS.h>
Include dependency graph for h5dds.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define MAX_ERROR_MESSAGE   512
 Maximum size of error message buffer. More...
 

Functions

bool depth_first (hid_t, char *, DDS &, const char *)
 will fill DDS table. More...
 
void read_objects (DDS &dds, const string &varname, const string &filename)
 fills in information of a dataset (name, data type, data space) into one DDS table. More...
 

Detailed Description

Data structure and retrieval processing header for the default option.

This file is part of h5_dap_handler, A C++ implementation of the DAP handler for HDF5 data.

It defines functions that describe and retrieve group/dataset from HDF5 files.

Author
Hyo-Kyung Lee hyokl.nosp@m.ee@h.nosp@m.dfgro.nosp@m.up.o.nosp@m.rg
Muqun Yang ymuqu.nosp@m.n@hd.nosp@m.fgrou.nosp@m.p.or.nosp@m.g

Definition in file h5dds.h.

Macro Definition Documentation

#define MAX_ERROR_MESSAGE   512

Maximum size of error message buffer.

Definition at line 41 of file h5dds.h.

Function Documentation

bool depth_first ( hid_t  pid,
char *  gname,
DDS &  dds,
const char *  fname 
)

will fill DDS table.

This function will walk through hdf5 gname group using the depth-first approach to obtain data information (data type and data pattern) of all hdf5 datasets and then put them into ithe dds table.

Parameters
pidgroup id
gnamegroup name (the absolute path from the root group)
ddsreference of DDS object
fnamethe HDF5 file name
Returns
0, if failed.
1, if succeeded.
Remarks
hard link is treated as a dataset.
will return error message to the DAP interface.
See also
depth_first(hid_t pid, char *gname, DAS & das, const char *fname) in h5das.cc

Definition at line 84 of file h5dds.cc.

References depth_first(), DODS_NAMELEN, get_dataset(), get_hardlink(), NULL, and read_objects().

Referenced by depth_first().

Here is the call graph for this function:

void read_objects ( DDS &  dds_table,
const string &  varname,
const string &  filename 
)

fills in information of a dataset (name, data type, data space) into one DDS table.

Parameters
dds_tableDestination for the HDF5 objects.
varnameAbsolute name of an HDF5 dataset.
filenameThe HDF5 file name that maps to the DDS dataset name.
Exceptions
errora string of error message to the dods interface.

Definition at line 746 of file h5dds.cc.

References read_objects_base_type(), read_objects_structure(), and DS::type.

Referenced by depth_first().

Here is the call graph for this function: