OPeNDAP Hyrax Back End Server (BES)  Updated for version 3.8.3
W10nJsonTransform Class Reference

Used to transform a DDS into a w10n JSON metadata or w10n JSON data document. More...

#include <W10nJsonTransform.h>

Inheritance diagram for W10nJsonTransform:
Inheritance graph
Collaboration diagram for W10nJsonTransform:
Collaboration graph

Public Member Functions

virtual void dump (std::ostream &strm) const
 dumps information about this transformation object for debugging purposes More...
 
virtual void sendW10nDataForVariable (string &vName)
 
virtual void sendW10nMetaForDDS ()
 
virtual void sendW10nMetaForVariable (string &vName, bool isTop)
 
 W10nJsonTransform (libdap::DDS *dds, BESDataHandlerInterface &dhi, const std::string &localfile)
 Constructor that creates transformation object from the specified DataDDS object to the specified file. More...
 
 W10nJsonTransform (libdap::DDS *dds, BESDataHandlerInterface &dhi, std::ostream *ostrm)
 
virtual ~W10nJsonTransform ()
 Destructor. More...
 

Detailed Description

Used to transform a DDS into a w10n JSON metadata or w10n JSON data document.

The output is written to a local file whose name is passed as a parameter to the constructor.

Definition at line 50 of file W10nJsonTransform.h.

Constructor & Destructor Documentation

W10nJsonTransform::W10nJsonTransform ( libdap::DDS *  dds,
BESDataHandlerInterface dhi,
const std::string &  localfile 
)

Constructor that creates transformation object from the specified DataDDS object to the specified file.

Parameters
ddsDataDDS object that contains the data structure, attributes and data
dhiThe data interface containing information about the current request
localfilenetcdf to create and write the information to
Exceptions
BESInternalErrorif dds provided is empty or not read, if the file is not specified or failed to create the netcdf file

Definition at line 423 of file W10nJsonTransform.cc.

References BESDEBUG, and W10N_DEBUG_KEY.

W10nJsonTransform::W10nJsonTransform ( libdap::DDS *  dds,
BESDataHandlerInterface dhi,
std::ostream *  ostrm 
)

Definition at line 439 of file W10nJsonTransform.cc.

References BESDEBUG, and W10N_DEBUG_KEY.

W10nJsonTransform::~W10nJsonTransform ( )
virtual

Destructor.

Cleans up any temporary data created during the transformation

Definition at line 459 of file W10nJsonTransform.cc.

Member Function Documentation

void W10nJsonTransform::dump ( std::ostream &  strm) const
virtual

dumps information about this transformation object for debugging purposes

Displays the pointer value of this instance plus instance data, including all of the FoJson objects converted from DAP objects that are to be sent to the netcdf file.

Parameters
strmC++ i/o stream to dump the information to

Implements BESObj.

Definition at line 472 of file W10nJsonTransform.cc.

References BESIndent::Indent(), BESIndent::LMarg(), and BESIndent::UnIndent().

Here is the call graph for this function:

void W10nJsonTransform::sendW10nDataForVariable ( std::string &  vName)
virtual

Definition at line 909 of file W10nJsonTransform.cc.

References BESDEBUG, and W10N_DEBUG_KEY.

void W10nJsonTransform::sendW10nMetaForDDS ( )
virtual

Definition at line 611 of file W10nJsonTransform.cc.

void W10nJsonTransform::sendW10nMetaForVariable ( std::string &  vName,
bool  isTop 
)
virtual

Definition at line 882 of file W10nJsonTransform.cc.

References BESDEBUG, and W10N_DEBUG_KEY.


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