38 #include <sys/types.h>
85 const string c_xml_xsi =
"http://www.w3.org/2001/XMLSchema-instance";
114 DDS::duplicate(
const DDS &dds)
116 DBG(cerr <<
"Entering DDS::duplicate... " <<endl);
122 string d_container_name;
128 string d_dap_version;
129 string d_request_xml_base;
134 vector<BaseType *> vars;
141 long d_max_response_size;
144 d_factory = dds.d_factory;
147 d_filename = dds.d_filename;
148 d_container_name = dds.d_container_name;
149 d_container = dds.d_container;
151 d_dap_major = dds.d_dap_major;
152 d_dap_minor = dds.d_dap_minor;
154 d_dap_version = dds.d_dap_version;
155 d_request_xml_base = dds.d_request_xml_base;
156 d_namespace = dds.d_namespace;
160 DDS &dds_tmp =
const_cast<DDS &
>(dds);
167 d_timeout = dds.d_timeout;
169 d_keywords = dds.d_keywords;
171 d_max_response_size = dds.d_max_response_size;
188 : d_factory(factory), d_name(name), d_container_name(
""), d_container(0),
189 d_request_xml_base(
""),
190 d_timeout(0), d_keywords(), d_max_response_size(0)
192 DBG(cerr <<
"Building a DDS for the default version (3.2)" << endl);
215 : d_factory(factory), d_name(name), d_container_name(
""), d_container(0),
216 d_request_xml_base(
""),
217 d_timeout(0), d_keywords(), d_max_response_size(0)
219 DBG(cerr <<
"Building a DDS for version: " << version << endl);
229 DBG(cerr <<
"Entering DDS(const DDS &rhs) ..." << endl);
231 DBG(cerr <<
" bye." << endl);
237 for (
Vars_iter i = vars.begin(); i != vars.end(); i++) {
239 delete btp ; btp = 0;
246 DBG(cerr <<
"Entering DDS::operator= ..." << endl);
252 DBG(cerr <<
" bye." << endl);
277 "Error transferring attributes: working on a container in dds, but not das");
286 DBG(cerr <<
"Processing the attributes for: " << (*var)->d_name() <<
" a " << (*var)->type_name() << endl);
287 (*var)->transfer_attributes(top_level);
300 while (at_cont_p != top_level->
attr_end()) {
304 if ((*at_cont_p)->type ==
Attr_container && (*at_cont_p)->attributes->is_global_attribute()) {
305 DBG(cerr << (*at_cont_p)->d_name <<
" is a global attribute." << endl);
382 if (d_dap_minor >= 0) {
384 oss << d_dap_major <<
"." << d_dap_minor;
385 d_dap_version = oss.str();
397 if (d_dap_major >= 0) {
399 oss << d_dap_major <<
"." << d_dap_minor;
400 d_dap_version = oss.str();
412 istringstream iss(v);
414 int major = -1, minor = -1;
416 if (!iss.eof() && !iss.fail())
418 if (!iss.eof() && !iss.fail())
420 if (!iss.eof() && !iss.fail())
423 if (major == -1 || minor == -1 or dot !=
'.')
424 throw InternalErr(__FILE__, __LINE__,
"Could not parse dap version. Value given: " + v);
435 switch (d_dap_major) {
446 throw InternalErr(__FILE__, __LINE__,
"Unknown DAP version.");
460 int major = floor(d);
461 int minor = (d-major)*10;
463 DBG(cerr <<
"Major: " << major <<
", Minor: " << minor << endl);
466 oss << major <<
"." << minor;
483 return d_container_name;
511 d_container_name = cn;
538 for (
Vars_iter i = vars.begin(); i != vars.end(); i++) {
541 w += (*i)->width(constrained);
544 w += (*i)->width(constrained);
558 throw InternalErr(__FILE__, __LINE__,
"Trying to add a BaseType object with a NULL pointer.");
560 if (bt->is_dap4_only_type())
561 throw InternalErr(__FILE__, __LINE__,
"Attempt to add a DAP4 type to a DAP2 DDS.");
563 DBG2(cerr <<
"In DDS::add_var(), bt's address is: " << bt << endl);
566 DBG2(cerr <<
"In DDS::add_var(), btp's address is: " << btp << endl);
586 throw InternalErr(__FILE__, __LINE__,
"Trying to add a BaseType object with a NULL pointer.");
589 if (bt->is_dap4_only_type())
590 throw InternalErr(__FILE__, __LINE__,
"Attempt to add a DAP4 type to a DAP2 DDS.");
593 DBG2(cerr <<
"In DDS::add_var(), bt's address is: " << bt << endl);
619 for (
Vars_iter i = vars.begin(); i != vars.end(); i++) {
620 if ((*i)->name() == n) {
636 if (i != vars.end()) {
652 for (
Vars_iter i_tmp = i1; i_tmp != i2; i_tmp++) {
695 return d_container->
var( name,
false, s ) ;
707 DBG(cerr <<
"DDS::leaf_match: Looking for " << n << endl);
709 for (
Vars_iter i = vars.begin(); i != vars.end(); i++) {
711 DBG(cerr <<
"DDS::leaf_match: Looking for " << n <<
" in: " << btp->d_name() << endl);
713 if (btp->
name() == n) {
714 DBG(cerr <<
"Found " << n <<
" in: " << btp->d_name() << endl);
721 DBG(cerr <<
"Found " << n <<
" in: " << btp->d_name() << endl);
725 #if STRUCTURE_ARRAY_SYNTAX_OLD
730 DBG(cerr <<
"Found " << n <<
" in: " << btp->
var()->d_name() << endl);
743 for (
Vars_iter i = vars.begin(); i != vars.end(); i++) {
745 DBG2(cerr <<
"Looking for " << d_name <<
" in: " << btp << endl);
747 if (btp->
name() == name) {
748 DBG2(cerr <<
"Found " << d_name <<
" in: " << btp << endl);
753 string::size_type dot_pos = name.find(
".");
754 if (dot_pos != string::npos) {
755 string aggregate = name.substr(0, dot_pos);
756 string field = name.substr(dot_pos + 1);
760 DBG2(cerr <<
"Descending into " << agg_ptr->
name() << endl);
761 return agg_ptr->
var(field,
true, s);
782 return vars.rbegin();
803 return vars.begin() + i;
812 return *(vars.begin() + i);
823 if (ptr->is_dap4_only_type())
824 throw InternalErr(__FILE__, __LINE__,
"Attempt to add a DAP4 type to a DAP2 DDS.");
840 if (ptr->is_dap4_only_type())
841 throw InternalErr(__FILE__, __LINE__,
"Attempt to add a DAP4 type to a DAP2 DDS.");
865 d_timeout = alarm(0);
887 for (
Vars_iter i = vars.begin(); i != vars.end(); i++) {
889 dynamic_cast<Sequence&>(**i).set_leaf_sequence();
891 dynamic_cast<Structure&>(**i).set_leaf_sequence();
899 FILE *in = fopen(fname.c_str(),
"r");
921 FILE *in = fdopen(_dup(fd),
"r");
923 FILE *in = fdopen(dup(fd),
"r");
927 throw InternalErr(__FILE__, __LINE__,
"Could not access file.");
950 throw InternalErr(__FILE__, __LINE__,
"Null input stream.");
962 DBG2(cout <<
"Status from parser: " << status << endl);
966 if (!status || !arg.
status()) {
978 fwrite(oss.str().data(),
sizeof(char), oss.str().length(), out);
985 out <<
"Dataset {\n" ;
987 for (
Vars_citer i = vars.begin(); i != vars.end(); i++) {
988 (*i)->print_decl(out) ;
991 out <<
"} " <<
id2www(d_name) <<
";\n" ;
1008 out <<
"Attributes {\n" ;
1010 d_attr.
print(out,
" ");
1011 for (
Vars_citer i = vars.begin(); i != vars.end(); i++) {
1012 (*i)->get_attr_table().print(out,
" ");
1033 fwrite(oss.str().data(),
sizeof(char), oss.str().length(), out);
1049 out <<
"Dataset {\n" ;
1051 for (
Vars_citer i = vars.begin(); i != vars.end(); i++) {
1055 (*i)->print_decl(out,
" ",
true,
false,
true) ;
1058 out <<
"} " <<
id2www(d_name) <<
";\n" ;
1079 fwrite(oss.str().data(), 1, oss.str().length(), out);
1099 class VariablePrintXMLWriter :
public unary_function<BaseType *, void>
1104 VariablePrintXMLWriter(
XMLWriter &xml,
bool constrained)
1105 : d_xml(xml), d_constrained(constrained)
1107 void operator()(BaseType *bt)
1109 bt->print_xml_writer(d_xml, d_constrained);
1137 if (xmlTextWriterStartElement(xml.
get_writer(), (
const xmlChar*)
"Group") < 0)
1138 throw InternalErr(__FILE__, __LINE__,
"Could not write Group element");
1139 if (xmlTextWriterWriteAttribute(xml.
get_writer(), (
const xmlChar*)
"name", (
const xmlChar*)d_name.c_str()) < 0)
1140 throw InternalErr(__FILE__, __LINE__,
"Could not write attribute for name");
1142 if (xmlTextWriterWriteAttribute(xml.
get_writer(), (
const xmlChar*)
"dapVersion", (
const xmlChar*)
get_dap_version().c_str()) < 0)
1143 throw InternalErr(__FILE__, __LINE__,
"Could not write attribute for dapVersion");
1146 if (xmlTextWriterWriteAttribute(xml.
get_writer(), (
const xmlChar*)
"xmlns:xml", (
const xmlChar*)
c_xml_namespace.c_str()) < 0)
1147 throw InternalErr(__FILE__, __LINE__,
"Could not write attribute for xmlns:xml");
1150 throw InternalErr(__FILE__, __LINE__,
"Could not write attribute for xml:base");
1153 if (xmlTextWriterWriteAttribute(xml.
get_writer(), (
const xmlChar*)
"xmlns", (
const xmlChar*)
get_namespace().c_str()) < 0)
1154 throw InternalErr(__FILE__, __LINE__,
"Could not write attribute for xmlns");
1158 if (xmlTextWriterStartElement(xml.
get_writer(), (
const xmlChar*)
"Dataset") < 0)
1159 throw InternalErr(__FILE__, __LINE__,
"Could not write Dataset element");
1160 if (xmlTextWriterWriteAttribute(xml.
get_writer(), (
const xmlChar*)
"name", (
const xmlChar*)d_name.c_str()) < 0)
1161 throw InternalErr(__FILE__, __LINE__,
"Could not write attribute for name");
1162 if (xmlTextWriterWriteAttribute(xml.
get_writer(), (
const xmlChar*)
"xmlns:xsi", (
const xmlChar*)
"http://www.w3.org/2001/XMLSchema-instance") < 0)
1163 throw InternalErr(__FILE__, __LINE__,
"Could not write attribute for xmlns:xsi");
1165 if (xmlTextWriterWriteAttribute(xml.
get_writer(), (
const xmlChar*)
"xsi:schemaLocation", (
const xmlChar*)
c_dap_32_n_sl.c_str()) < 0)
1166 throw InternalErr(__FILE__, __LINE__,
"Could not write attribute for xmlns:schemaLocation");
1168 if (xmlTextWriterWriteAttribute(xml.
get_writer(), (
const xmlChar*)
"xmlns:grddl", (
const xmlChar*)
"http://www.w3.org/2003/g/data-view#") < 0)
1169 throw InternalErr(__FILE__, __LINE__,
"Could not write attribute for xmlns:grddl");
1172 throw InternalErr(__FILE__, __LINE__,
"Could not write attribute for xmlns:transformation");
1175 throw InternalErr(__FILE__, __LINE__,
"Could not write attribute for xmlns");
1177 throw InternalErr(__FILE__, __LINE__,
"Could not write attribute for xmlns:dap");
1179 if (xmlTextWriterWriteAttribute(xml.
get_writer(), (
const xmlChar*)
"dapVersion", (
const xmlChar*)
"3.2") < 0)
1180 throw InternalErr(__FILE__, __LINE__,
"Could not write attribute for dapVersion");
1183 if (xmlTextWriterWriteAttribute(xml.
get_writer(), (
const xmlChar*)
"xmlns:xml", (
const xmlChar*)
c_xml_namespace.c_str()) < 0)
1184 throw InternalErr(__FILE__, __LINE__,
"Could not write attribute for xmlns:xml");
1187 throw InternalErr(__FILE__, __LINE__,
"Could not write attribute for xml:base");
1191 if (xmlTextWriterStartElement(xml.
get_writer(), (
const xmlChar*)
"Dataset") < 0)
1192 throw InternalErr(__FILE__, __LINE__,
"Could not write Dataset element");
1193 if (xmlTextWriterWriteAttribute(xml.
get_writer(), (
const xmlChar*)
"name", (
const xmlChar*)d_name.c_str()) < 0)
1194 throw InternalErr(__FILE__, __LINE__,
"Could not write attribute for d_name");
1195 if (xmlTextWriterWriteAttribute(xml.
get_writer(), (
const xmlChar*)
"xmlns:xsi", (
const xmlChar*)
"http://www.w3.org/2001/XMLSchema-instance") < 0)
1196 throw InternalErr(__FILE__, __LINE__,
"Could not write attribute for xmlns:xsi");
1199 throw InternalErr(__FILE__, __LINE__,
"Could not write attribute for xmlns");
1201 if (xmlTextWriterWriteAttribute(xml.
get_writer(), (
const xmlChar*)
"xsi:schemaLocation", (
const xmlChar*)
c_dap_20_n_sl.c_str()) < 0)
1202 throw InternalErr(__FILE__, __LINE__,
"Could not write attribute for xmlns:schemaLocation");
1209 for_each(
var_begin(),
var_end(), VariablePrintXMLWriter(xml, constrained));
1216 if (!blob.empty()) {
1217 if (xmlTextWriterStartElement(xml.
get_writer(), (
const xmlChar*)
"blob") < 0)
1218 throw InternalErr(__FILE__, __LINE__,
"Could not write blob element");
1219 string cid =
"cid:" + blob;
1220 if (xmlTextWriterWriteAttribute(xml.
get_writer(), (
const xmlChar*)
"href", (
const xmlChar*) cid.c_str()) < 0)
1221 throw InternalErr(__FILE__, __LINE__,
"Could not write attribute for d_name");
1222 if (xmlTextWriterEndElement(xml.
get_writer()) < 0)
1223 throw InternalErr(__FILE__, __LINE__,
"Could not end blob element");
1227 if (xmlTextWriterStartElement(xml.
get_writer(), (
const xmlChar*)
"blob") < 0)
1228 throw InternalErr(__FILE__, __LINE__,
"Could not write blob element");
1229 string cid =
"cid:" + blob;
1230 if (xmlTextWriterWriteAttribute(xml.
get_writer(), (
const xmlChar*)
"href", (
const xmlChar*) cid.c_str()) < 0)
1231 throw InternalErr(__FILE__, __LINE__,
"Could not write attribute for d_name");
1232 if (xmlTextWriterEndElement(xml.
get_writer()) < 0)
1233 throw InternalErr(__FILE__, __LINE__,
"Could not end blob element");
1236 if (xmlTextWriterStartElement(xml.
get_writer(), (
const xmlChar*)
"dataBLOB") < 0)
1237 throw InternalErr(__FILE__, __LINE__,
"Could not write dataBLOB element");
1238 if (xmlTextWriterWriteAttribute(xml.
get_writer(), (
const xmlChar*)
"href", (
const xmlChar*)
"") < 0)
1239 throw InternalErr(__FILE__, __LINE__,
"Could not write attribute for d_name");
1240 if (xmlTextWriterEndElement(xml.
get_writer()) < 0)
1241 throw InternalErr(__FILE__, __LINE__,
"Could not end dataBLOB element");
1244 if (xmlTextWriterEndElement(xml.
get_writer()) < 0)
1245 throw InternalErr(__FILE__, __LINE__,
"Could not end Dataset element");
1266 throw InternalErr(__FILE__, __LINE__,
"Tried to print a DMR with DAP major version less than 4");
1271 if (xmlTextWriterStartElement(xml.
get_writer(), (
const xmlChar*)
"Group") < 0)
1272 throw InternalErr(__FILE__, __LINE__,
"Could not write Group element");
1274 if (xmlTextWriterWriteAttribute(xml.
get_writer(), (
const xmlChar*)
"xmlns:xml",
1276 throw InternalErr(__FILE__, __LINE__,
"Could not write attribute for xmlns:xml");
1278 if (xmlTextWriterWriteAttribute(xml.
get_writer(), (
const xmlChar*)
"xmlns:xsi", (
const xmlChar*)
c_xml_xsi.c_str())
1280 throw InternalErr(__FILE__, __LINE__,
"Could not write attribute for xmlns:xsi");
1282 if (xmlTextWriterWriteAttribute(xml.
get_writer(), (
const xmlChar*)
"xsi:schemaLocation",
1284 throw InternalErr(__FILE__, __LINE__,
"Could not write attribute for xmlns:schemaLocation");
1286 if (xmlTextWriterWriteAttribute(xml.
get_writer(), (
const xmlChar*)
"xmlns",
1288 throw InternalErr(__FILE__, __LINE__,
"Could not write attribute for xmlns");
1290 if (xmlTextWriterWriteAttribute(xml.
get_writer(), (
const xmlChar*)
"dapVersion",
1292 throw InternalErr(__FILE__, __LINE__,
"Could not write attribute for dapVersion");
1294 if (xmlTextWriterWriteAttribute(xml.
get_writer(), (
const xmlChar*)
"dmrVersion", (
const xmlChar*)
get_dmr_version().c_str()) < 0)
1295 throw InternalErr(__FILE__, __LINE__,
"Could not write attribute for dapVersion");
1298 if (xmlTextWriterWriteAttribute(xml.
get_writer(), (
const xmlChar*)
"xml:base",
1300 throw InternalErr(__FILE__, __LINE__,
"Could not write attribute for xml:base");
1303 if (xmlTextWriterWriteAttribute(xml.
get_writer(), (
const xmlChar*)
"name", (
const xmlChar*) d_name.c_str()) < 0)
1304 throw InternalErr(__FILE__, __LINE__,
"Could not write attribute for name");
1310 for_each(
var_begin(),
var_end(), VariablePrintXMLWriter(xml, constrained));
1318 if (!blob.empty()) {
1319 if (xmlTextWriterStartElement(xml.
get_writer(), (
const xmlChar*)
"blob") < 0)
1320 throw InternalErr(__FILE__, __LINE__,
"Could not write blob element");
1321 string cid =
"cid:" + blob;
1322 if (xmlTextWriterWriteAttribute(xml.
get_writer(), (
const xmlChar*)
"href", (
const xmlChar*) cid.c_str()) < 0)
1323 throw InternalErr(__FILE__, __LINE__,
"Could not write attribute for d_name");
1324 if (xmlTextWriterEndElement(xml.
get_writer()) < 0)
1325 throw InternalErr(__FILE__, __LINE__,
"Could not end blob element");
1330 if (xmlTextWriterEndElement(xml.
get_writer()) < 0)
1331 throw InternalErr(__FILE__, __LINE__,
"Could not end the top-level Group element");
1356 cerr <<
"A dataset must have a d_name" << endl;
1365 for (
Vars_iter i = vars.begin(); i != vars.end(); i++)
1366 if (!(*i)->check_semantics(msg,
true))
1403 DBG2(cerr <<
"DDS::mark: Looking for " << n << endl);
1407 DBG2(cerr <<
"Could not find variable " << n << endl);
1413 DBG2(cerr <<
"DDS::mark: Set variable " << variable->d_name()
1414 <<
" (a " << variable->
type_name() <<
")" << endl);
1420 while (!s->empty()) {
1421 s->top()->BaseType::set_send_p(state);
1423 DBG2(cerr <<
"DDS::mark: Set variable " << s->top()->d_name()
1424 <<
" (a " << s->top()->type_name() <<
")" << endl);
1427 string parent_name = (s->top()->get_parent()) ? s->top()->get_parent()->name():
"none";
1428 string parent_type = (s->top()->get_parent()) ? s->top()->get_parent()->type_name():
"none";
1429 DBG2(cerr <<
"DDS::mark: Parent variable " << parent_name <<
" (a " << parent_type <<
")" << endl);
1447 for (
Vars_iter i = vars.begin(); i != vars.end(); i++)
1448 (*i)->set_send_p(state);
1462 << (
void *)
this <<
")" << endl ;
1480 for (; i != ie; i++) {
std::vector< entry * >::iterator Attr_iter
const string c_dap32_namespace
void print(FILE *out)
Print the entire DDS to the specified file.
const string c_dap_32_n_sl
virtual Attr_iter attr_end()
virtual BaseType * var(const string &name, bool exact_match=true, btp_stack *s=0)
btp_stack no longer needed; use back pointers (BaseType::get_parent())
void insert_var_nocopy(Vars_iter i, BaseType *ptr)
const string c_dap20_namespace
Contains the attributes for a dataset.
string get_dmr_version() const
void dds_delete_buffer(void *buffer)
Vars_iter get_vars_iter(int i)
Get an iterator.
string get_error_message() const
const string c_default_dap32_schema_location
BaseType * leaf_match(const string &name, BaseType::btp_stack *s=0)
void insert_var(Vars_iter i, BaseType *ptr)
Insert a variable before the referenced element.
Vars_iter var_begin()
Return an iterator to the first variable.
const string c_default_dap40_schema_location
string get_request_xml_base() const
Get the URL that will return this DDS/DDX/DataThing.
int ddsparse(libdap::parser_arg *arg)
DDS(BaseTypeFactory *factory, const string &name="")
int get_request_size(bool constrained)
Get the estimated response size.
BaseType * var(const string &n, BaseType::btp_stack &s)
virtual void transfer_attributes(DAS *das)
void print_xml(FILE *out, bool constrained, const string &blob="")
void print_xml_writer(XMLWriter &xml)
virtual void add_var_nocopy(BaseType *bt, Part part=nil)
virtual void print(FILE *out, string pad=" ", bool dereference=false)
Prints the attribute table.
std::vector< BaseType * >::const_iterator Vars_citer
void print_xml_writer(ostream &out, bool constrained, const string &blob="")
void add_var_nocopy(BaseType *bt)
Adds the variable to the DDS.
Holds a structure (aggregate) type.
Vars_riter var_rend()
Return a reverse iterator.
virtual void add_var(BaseType *bt, Part part=nil)
virtual string get_name() const
Get the name of this attribute table.
int num_var()
Returns the number of variables in the DDS.
std::vector< BaseType * >::reverse_iterator Vars_riter
stack< BaseType * > btp_stack
bool mark(const string &name, bool state)
Mark the send_p flag of the named variable to state.
A class for software fault reporting.
virtual bool is_vector_type()
Returns true if the instance is a vector (i.e., array) type variable.
void parse(string fname)
Parse a DDS from a file with the given d_name.
DDS & operator=(const DDS &rhs)
const string c_dap40_namespace
virtual bool is_constructor_type()
Returns true if the instance is a constructor (i.e., Structure, Sequence or Grid) type variable...
xmlTextWriterPtr get_writer()
virtual BaseType * var(const string &name="", bool exact_match=true, btp_stack *s=0)
Returns a pointer to a member of a constructor class.
string type_name() const
Returns the type of the class instance as a string.
string get_namespace() const
Get the namespace associated with the DDS - likely set only by DDX responses.
string get_dap_version() const
int get_dap_major() const
Get the DAP major version as sent by the client.
virtual void set_send_p(bool state)
void mark_all(bool state)
virtual AttrTable * append_container(const string &name)
Add a container to the attribute table.
const string c_xml_namespace
std::vector< BaseType * >::iterator Vars_iter
void print_das(ostream &out)
const string c_dap_40_n_sl
void print_dmr(ostream &out, bool constrained)
virtual AttrTable & get_attr_table()
BaseType * get_var_index(int i)
Get a variable.
bool check_semantics(bool all=false)
Check the semantics of each of the variables represented in the DDS.
void * dds_buffer(FILE *fp)
void dds_switch_to_buffer(void *new_buffer)
string name() const
Returns the name of the class instance.
virtual AttrTable * get_top_level_attributes()
Returns the top most set of attributes.
virtual Attr_iter attr_begin()
virtual BaseType * ptr_duplicate()=0
string www2id(const string &in, const string &escape, const string &except)
Vars_iter var_end()
Return an iterator.
BaseType * exact_match(const string &name, BaseType::btp_stack *s=0)
void tag_nested_sequences()
Traverse DDS, set Sequence leaf nodes.
static ostream & LMarg(ostream &strm)
const string c_default_dap20_schema_location
void set_dap_minor(int p)
void set_dataset_name(const string &n)
The basic data type for the DODS DAP types.
libdap base object for common functionality of libdap objects
Pass parameters by reference to a parser.
void del_var(const string &n)
Removes a variable from the DDS.
bool unique_names(vector< BaseType * > l, const string &var_name, const string &type_name, string &msg)
virtual void dump(ostream &strm) const
dumps information about this object
Vars_riter var_rbegin()
Return a reverse iterator.
Hold attribute data for a DAP2 dataset.
const string grddl_transformation_dap32
int get_dap_minor() const
Get the DAP minor version as sent by the client.
A class for error processing.
string get_dataset_name() const
void duplicate(const DDS &dds)
void set_dap_major(int p)
virtual void del_var(const string &name)
void print_constrained(FILE *out)
Print a constrained DDS to the specified file.
virtual void dump(ostream &strm) const
dumps information about this object
virtual string container_name()
Returns the name of the current attribute container when multiple files used to build this DAS...
void set_dap_version(const string &version_string="2.0")
string id2www(string in, const string &allowable)
void add_var(BaseType *bt)
Adds a copy of the variable to the DDS. Using the ptr_duplicate() method, perform a deep copy on the ...
const string c_dap_20_n_sl