bes Updated for version 3.21.1
The Backend Server (BES) is the lower two tiers of the Hyrax data server
dmrpp::DMRpp Class Reference

Provide a way to print the DMR++ response. More...

#include <DMRpp.h>

Inheritance diagram for dmrpp::DMRpp:
Inheritance graph
Collaboration diagram for dmrpp::DMRpp:
Collaboration graph

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.
 
virtual void print_dmrpp (libdap::XMLWriter &xml, const std::string &href="", bool constrained=false, bool print_chunks=true)
 Print the DMR++ response.
 
virtual void set_href (const std::string &h)
 
virtual void set_print_chunks (bool pc)
 
virtual void set_version (const std::string &version)
 

Detailed Description

Provide a way to print the DMR++ response.

Definition at line 44 of file DMRpp.h.

Constructor & Destructor Documentation

◆ DMRpp() [1/3]

dmrpp::DMRpp::DMRpp ( )
inline

Definition at line 51 of file DMRpp.h.

◆ DMRpp() [2/3]

dmrpp::DMRpp::DMRpp ( const DMRpp & dmrpp)
inline

Definition at line 52 of file DMRpp.h.

◆ DMRpp() [3/3]

dmrpp::DMRpp::DMRpp ( DmrppTypeFactory * factory,
const std::string & name = "" )

Definition at line 44 of file DMRpp.cc.

◆ ~DMRpp()

virtual dmrpp::DMRpp::~DMRpp ( )
inlinevirtual

Definition at line 56 of file DMRpp.h.

Member Function Documentation

◆ get_href()

virtual std::string dmrpp::DMRpp::get_href ( ) const
inlinevirtual

Definition at line 58 of file DMRpp.h.

◆ get_print_chunks()

virtual bool dmrpp::DMRpp::get_print_chunks ( ) const
inlinevirtual

Definition at line 66 of file DMRpp.h.

◆ get_version()

virtual std::string dmrpp::DMRpp::get_version ( ) const
inlinevirtual

Definition at line 63 of file DMRpp.h.

◆ getDDS()

libdap::DDS * dmrpp::DMRpp::getDDS ( )
virtual

Definition at line 147 of file DMRpp.cc.

◆ 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
xml
constrained

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
xmlWriter the XML to this instance of XMLWriter
hrefWhen 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.
constrainedShould the DMR++ be constrained, in the same sense that the DMR::print_dap4() method can print a constrained DMR. False by default.
print_chunksPrint 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

Definition at line 59 of file DMRpp.h.

◆ set_print_chunks()

virtual void dmrpp::DMRpp::set_print_chunks ( bool pc)
inlinevirtual

Definition at line 67 of file DMRpp.h.

◆ set_version()

virtual void dmrpp::DMRpp::set_version ( const std::string & version)
inlinevirtual

Definition at line 64 of file DMRpp.h.


The documentation for this class was generated from the following files: