47 #ifdef HAVE_SYS_PARAM_H
48 #include <sys/param.h>
72 const string & hdf_file);
76 BaseType::set_read_p(state);
83 throw Error(unknown_error,
"Could not read from dataset.");
96 string hdf_file = dataset();
97 string hdf_name = this->name();
99 BESDEBUG(
"h4",
" hdf_name = " << hdf_name << endl);
110 vgin.seek(hdf_name.c_str());
148 BESDEBUG(
"h4",
"Entering HDFStructure::transfer_attributes for variable " << name() << endl);
151 Vars_iter var = var_begin();
152 while (var != var_end()) {
154 BESDEBUG(
"h4",
"Processing the attributes for: " << (*var)->name() <<
" a " << (*var)->type_name() << endl);
155 (*var)->transfer_attributes(at);
158 BESDEBUG(
"h4",
"Got this exception: " << e.get_error_message() << endl);
164 AttrTable *mine = at->get_attr_table(name());
167 mine->set_is_global_attribute(
false);
168 AttrTable::Attr_iter at_p = mine->attr_begin();
169 while (at_p != mine->attr_end()) {
170 if (mine->get_attr_type(at_p) == Attr_container)
171 get_attr_table().append_container(
new AttrTable(*mine->get_attr_table(at_p)), mine->get_name(at_p));
173 get_attr_table().append_attr(mine->get_name(at_p), mine->get_type(at_p), mine->get_attr_vector(at_p));
HDFStructure(const string &n, const string &d)
virtual BaseType * ptr_duplicate()
void LoadStructureFromVgroup(HDFStructure *str, const hdf_vgroup &vgroup, const string &hdf_file)
virtual void set_read_p(bool state)
virtual void transfer_attributes(AttrTable *at_container)
Transfer attributes from a separately built DAS to the DDS.
virtual bool read_tagref(int32 tag, int32 ref, int &error)
#define BESDEBUG(x, y)
macro used to send debug information to the debug stream
virtual void seek_ref(int ref)