42 #include "InternalErr.h"
66 Vars_iter p = bt->var_begin();
67 while (p != bt->var_end()) {
76 BaseType::set_send_p(bt->send_p());
86 Vars_iter p = var_begin();
87 while (p != var_end()) {
88 if ((*p)->is_simple_type())
89 strm << dynamic_cast<AsciiOutput*>(*p)->get_full_name() ;
90 else if ((*p)->type() == dods_structure_c)
95 throw InternalErr(__FILE__, __LINE__,
96 "Support for ASCII output of datasets with structures which contain Sequences or Grids has not been completed.");
105 BESDEBUG(
"ascii",
"In 'AsciiStructure::print_ascii'" << endl);
113 Vars_iter p = var_begin();
114 while (p != var_end()) {
116 dynamic_cast<AsciiOutput*> ((*p))->print_ascii(strm,
false);
118 if (++p != var_end())
123 for (Vars_iter p = var_begin(); p != var_end(); ++p) {
124 if ((*p)->send_p()) {
125 dynamic_cast<AsciiOutput*
> ((*p))->print_ascii(strm,
true);
virtual BaseType * ptr_duplicate()
BaseType * basetype_to_asciitype(BaseType *bt)
AsciiStructure(const string &n)
virtual ~AsciiStructure()
#define BESDEBUG(x, y)
macro used to send debug information to the debug stream
virtual void print_header(ostream &strm)
virtual void print_ascii(ostream &strm, bool print_name=true)
Print an ASCII representation for an instance of BaseType's children.