37 #include "InternalErr.h"
52 array_entire_size = 1;
64 static_cast < Structure & >(*this) = rhs;
75 Constructor::Vars_iter q;
78 <<
">read() dataset=" << dataset()
79 <<
" array_index= " << array_index << endl);
86 for (q = var_begin(); err == 0 && q != var_end(); ++q, ++i) {
87 DBG(cerr <<
"=read() i=" << i << endl);
88 BaseType *p = static_cast < BaseType * >(*q);
95 if (H5Tclose(ty_id) < 0) {
96 throw InternalErr(__FILE__, __LINE__,
"Unable to close the datatype.");
98 if (H5Dclose(dset_id) < 0) {
99 throw InternalErr(__FILE__, __LINE__,
"Unable to close the dset.");
149 array_entire_size = i;
154 return array_entire_size;
HDF5Structure & operator=(const HDF5Structure &rhs)
Assignment operator for dynamic cast into generic Structure.
void set_entire_array_size(int i)
returns the entire array size of this Structure if it's a part of array of structures.
hid_t get_tid()
returns HDF5 datatype id.
This class converts HDF5 compound type into DAP structure for the default option. ...
int get_array_index()
returns the array index of this Structure if it's a part of array of structures.
Data structure and retrieval processing header for the default option.
void set_array_size(int i)
remembers the array size for subsetting if it's a part of array of structures.
virtual BaseType * ptr_duplicate()
Clone this instance.
void set_array_index(int i)
remembers the array index of this Structure if it's a part of array of structures.
hid_t get_did()
returns HDF5 dataset id.
int get_array_size()
returns the array size for subsetting if it's a part of array of structures.
void set_did(hid_t dset)
remembers HDF5 datatype id.
int get_entire_array_size()
returns the entire array size of this Structure if it's a part of array of structures.
virtual bool read()
Reads HDF5 structure data by calling each member's read method in this structure. ...
HDF5Structure(const string &n, const string &d)
Constructor.
void set_tid(hid_t type)
remembers HDF5 datatype id.