70 BESDEBUG(
"ascii",
"In get_data_values_as_ascii; dataset name = " << dds->get_dataset_name() << endl );
71 strm <<
"Dataset: " << dds->get_dataset_name() <<
"\n" ;
73 DDS::Vars_iter i = dds->var_begin();
74 while (i != dds->var_end()) {
82 BESDEBUG(
"ascii",
"Out get_data_values_as_ascii" << endl );
87 BESDEBUG(
"ascii",
"In datadds_to_ascii_datadds" << endl);
92 DataDDS *asciidds =
new DataDDS(dds->get_factory(),
93 dds->get_dataset_name(),
97 DDS::Vars_iter i = dds->var_begin();
98 while (i != dds->var_end()) {
100 asciidds->add_var(abt);
109 asciidds->tag_nested_sequences();
121 return new AsciiByte( dynamic_cast<Byte *>(bt) ) ;
124 return new AsciiInt16( dynamic_cast<Int16 *>(bt) ) ;
127 return new AsciiUInt16( dynamic_cast<UInt16 *>(bt) ) ;
130 return new AsciiInt32( dynamic_cast<Int32 *>(bt) ) ;
133 return new AsciiUInt32( dynamic_cast<UInt32 *>(bt) ) ;
136 return new AsciiFloat32( dynamic_cast<Float32 *>(bt) ) ;
139 return new AsciiFloat64( dynamic_cast<Float64 *>(bt) ) ;
142 return new AsciiStr( dynamic_cast<Str *>(bt) ) ;
145 return new AsciiUrl( dynamic_cast<Url *>(bt) ) ;
148 return new AsciiArray( dynamic_cast<Array *>(bt) ) ;
150 case dods_structure_c:
153 case dods_sequence_c:
157 return new AsciiGrid( dynamic_cast<Grid *>(bt) ) ;
160 throw InternalErr(__FILE__, __LINE__,
"Unknown type");
void get_data_values_as_ascii(DataDDS *dds, ostream &strm)
Using the AsciiOutput::print_ascii(), write the data values to an output file/stream as ASCII...
DataDDS * datadds_to_ascii_datadds(DataDDS *dds)
virtual void print_ascii(ostream &strm, bool print_name=true)
Print an ASCII representation for an instance of BaseType's children.
BaseType * basetype_to_asciitype(BaseType *bt)
#define BESDEBUG(x, y)
macro used to send debug information to the debug stream