126 string d_container_name;
133 void duplicate(
const DAS &src);
169 virtual void erase();
171 virtual unsigned int get_size()
const;
184 virtual void parse(
string fname);
185 virtual void parse(
int fd);
186 virtual void parse(FILE *in = stdin);
189 virtual void print(FILE *out,
bool dereference =
false);
190 virtual void print(ostream &out,
bool dereference =
false);
192 virtual void dump(ostream &strm)
const;
Contains the attributes for a dataset.
std::vector< entry * >::iterator Attr_iter
Hold attribute data for a DAP2 dataset.
AttrTable::Attr_iter var_begin()
Returns a reference to the attribute table for the first variable.
DAS & operator=(const DAS &rhs)
virtual AttrTable * container()
Returns the current attribute container when multiple files used to build this DAS.
virtual AttrTable * get_top_level_attributes()
Returns the top most set of attributes.
virtual unsigned int get_size() const
Returns the number of attributes in the current attribute table.
virtual AttrTable * add_table(const string &name, AttrTable *at)
Adds a variable attribute table to the DAS or the current dataset container attribute table.
virtual void print(FILE *out, bool dereference=false)
virtual void dump(ostream &strm) const
dumps information about this object
AttrTable::Attr_iter var_end()
virtual void parse(string fname)
Reads a DAS from the named file.
AttrTable * get_table(AttrTable::Attr_iter &i)
Returns the referenced variable attribute table.
virtual void erase()
erase all attributes in this DAS
string get_name(AttrTable::Attr_iter &i)
Returns the name of the referenced variable attribute table.
virtual string container_name() const
Returns the name of the current attribute container when multiple files used to build this DAS.
libdap base object for common functionality of libdap objects
top level DAP object to house generic methods