bes
Updated for version 3.20.10
|
Provide a way to print the DMR++ response. More...
#include <DMRpp.h>
Public Member Functions | |
DMRpp (const DMRpp &dmrpp) | |
DMRpp (DmrppTypeFactory *factory, const std::string &name="") | |
virtual std::string | get_href () const |
virtual bool | get_print_chunks () const |
virtual std::string | get_version () const |
virtual libdap::DDS * | getDDS () |
void | print_dap4 (libdap::XMLWriter &xml, bool constrained=false) |
override DMR::print_dap4() so the chunk info will print too. More... | |
virtual void | print_dmrpp (libdap::XMLWriter &xml, const std::string &href="", bool constrained=false, bool print_chunks=true) |
Print the DMR++ response. More... | |
virtual void | set_href (const std::string &h) |
virtual void | set_print_chunks (bool pc) |
virtual void | set_version (const std::string &version) |
void dmrpp::DMRpp::print_dap4 | ( | libdap::XMLWriter & | xml, |
bool | constrained = false |
||
) |
|
virtual |
Print the DMR++ response.
This is a clone of DMR::print_dap4() modified to include the DMR++ namespace and to print the DMR++ XML which is the standard DMR XML with the addition of new elements that include information about the 'chunks' that hold data values.
It uses a static field defined in DmrppCommon to control whether the chunk information should be printed. The third argument
xml | Writer the XML to this instance of XMLWriter |
href | When writing the XML root element, include this as the href attribute. This href will be used as the data source when other code reads the raw (e.g., chunked) data. Default is the empty string and the attribute will not be printed. |
constrained | Should the DMR++ be constrained, in the same sense that the DMR::print_dap4() method can print a constrained DMR. False by default. |
print_chunks | Print the chunks? This parameter sets the DmrppCommon::d_print_chunks static field. That field is used by other methods in the Dmrpp<Type> classes to control if they print the chunk information. True by default. |