46 #include "AttrTable.h" 129 string d_container_name ;
136 void duplicate(
const DAS &src);
140 DAS(
const DAS &das) { duplicate(das); }
144 DAS & operator=(
const DAS &rhs);
172 virtual void erase() ;
174 virtual unsigned int get_size()
const ;
177 AttrTable::Attr_iter
var_end() ;
179 string get_name(AttrTable::Attr_iter &i);
187 virtual void parse(
string fname);
188 virtual void parse(
int fd);
189 virtual void parse(FILE *in = stdin);
192 virtual void print(FILE *out,
bool dereference =
false);
193 virtual void print(ostream &out,
bool dereference =
false);
195 virtual void dump(ostream &strm)
const ;
AttrTable * get_table(AttrTable::Attr_iter &i)
Returns the referenced variable attribute table.
Contains the attributes for a dataset.
AttrTable::Attr_iter var_begin()
Returns a reference to the attribute table for the first variable.
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)
top level DAP object to house generic methods
string get_name(AttrTable::Attr_iter &i)
Returns the name of the referenced variable attribute table.
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 void erase()
erase all attributes in this DAS
virtual string container_name() const
Returns the name of the current attribute container when multiple files used to build this DAS...
AttrTable::Attr_iter var_end()
virtual void parse(string fname)
Reads a DAS from the named file.
virtual AttrTable * container()
Returns the current attribute container when multiple files used to build this DAS.
libdap base object for common functionality of libdap objects
virtual void dump(ostream &strm) const
dumps information about this object
Hold attribute data for a DAP2 dataset.