Provide a way to print the DMR++ response.
More...
#include <DMRpp.h>
Provide a way to print the DMR++ response.
Definition at line 44 of file DMRpp.h.
◆ DMRpp() [1/3]
◆ DMRpp() [2/3]
dmrpp::DMRpp::DMRpp |
( |
const DMRpp & | dmrpp | ) |
|
|
inline |
◆ DMRpp() [3/3]
dmrpp::DMRpp::DMRpp |
( |
DmrppTypeFactory * | factory, |
|
|
const std::string & | name = "" ) |
◆ ~DMRpp()
virtual dmrpp::DMRpp::~DMRpp |
( |
| ) |
|
|
inlinevirtual |
◆ get_href()
virtual std::string dmrpp::DMRpp::get_href |
( |
| ) |
const |
|
inlinevirtual |
◆ get_print_chunks()
virtual bool dmrpp::DMRpp::get_print_chunks |
( |
| ) |
const |
|
inlinevirtual |
◆ get_version()
virtual std::string dmrpp::DMRpp::get_version |
( |
| ) |
const |
|
inlinevirtual |
◆ getDDS()
libdap::DDS * dmrpp::DMRpp::getDDS |
( |
| ) |
|
|
virtual |
◆ print_dap4()
void dmrpp::DMRpp::print_dap4 |
( |
libdap::XMLWriter & | xml, |
|
|
bool | constrained = false ) |
override DMR::print_dap4() so the chunk info will print too.
- Parameters
-
Definition at line 142 of file DMRpp.cc.
◆ print_dmrpp()
void dmrpp::DMRpp::print_dmrpp |
( |
libdap::XMLWriter & | xml, |
|
|
const std::string & | href = "", |
|
|
bool | constrained = false, |
|
|
bool | print_chunks = true ) |
|
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
- print_chunks will set this static class member to true or false, which controls the output of the chunk information. This method resets the field to its previous value on exit.
- Parameters
-
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. |
- See also
- DmrppArray::print_dap4()
-
DmrppCommon::print_dmrpp()
Definition at line 75 of file DMRpp.cc.
◆ set_href()
virtual void dmrpp::DMRpp::set_href |
( |
const std::string & | h | ) |
|
|
inlinevirtual |
◆ set_print_chunks()
virtual void dmrpp::DMRpp::set_print_chunks |
( |
bool | pc | ) |
|
|
inlinevirtual |
◆ set_version()
virtual void dmrpp::DMRpp::set_version |
( |
const std::string & | version | ) |
|
|
inlinevirtual |
The documentation for this class was generated from the following files: