46 #ifdef HAVE_SYS_PARAM_H
47 #include <sys/param.h>
59 : Sequence(n, d), row(0)
79 throw Error(unknown_error,
"Could not read from dataset.");
85 string hdf_file = dataset();
86 string hdf_name = this->name();
89 if (
vd.
name.length() == 0) {
94 vin.seek(hdf_name.c_str());
129 Vars_iter var = var_begin();
130 while (var != var_end()) {
131 (*var)->transfer_attributes(at);
135 AttrTable *mine = at->get_attr_table(name());
138 mine->set_is_global_attribute(
false);
139 AttrTable::Attr_iter at_p = mine->attr_begin();
140 while (at_p != mine->attr_end()) {
141 if (mine->get_attr_type(at_p) == Attr_container)
142 get_attr_table().append_container(
new AttrTable(
143 *mine->get_attr_table(at_p)), mine->get_name(at_p));
145 get_attr_table().append_attr(mine->get_name(at_p),
146 mine->get_type(at_p), mine->get_attr_vector(at_p));
virtual bool read_tagref(int32 tag, int32 ref, int &error)
vector< hdf_field > fields
void LoadSequenceFromVdata(HDFSequence *seq, hdf_vdata &vd, int row)
virtual void seek_ref(int ref)
virtual BaseType * ptr_duplicate()
virtual void transfer_attributes(AttrTable *at_container)
HDFSequence(const string &n, const string &d)