bes Updated for version 3.21.1
The Backend Server (BES) is the lower two tiers of the Hyrax data server
|
#include <W10nJsonTransform.h>
Public Member Functions | |
virtual void | dump (std::ostream &strm) const |
dumps information about this transformation object for debugging purposes | |
template<typename T> | |
void | json_simple_type_array (ostream *strm, libdap::Array *a, std::string indent) |
template<typename T> | |
unsigned int | json_simple_type_array_worker (ostream *strm, T *values, unsigned int indx, vector< unsigned int > *shape, unsigned int currentDim, bool flatten) |
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. | |
W10nJsonTransform (libdap::DDS *dds, BESDataHandlerInterface &dhi, std::ostream *ostrm) | |
virtual | ~W10nJsonTransform () |
Destructor. | |
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.
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.
dds | DataDDS object that contains the data structure, attributes and data |
dhi | The data interface containing information about the current request |
localfile | netcdf to create and write the information to |
BESInternalError | if dds provided is empty or not read, if the file is not specified or failed to create the netcdf file |
Definition at line 278 of file W10nJsonTransform.cc.
W10nJsonTransform::W10nJsonTransform | ( | libdap::DDS * | dds, |
BESDataHandlerInterface & | dhi, | ||
std::ostream * | ostrm ) |
Definition at line 294 of file W10nJsonTransform.cc.
|
virtual |
Destructor.
Cleans up any temporary data created during the transformation
Definition at line 314 of file W10nJsonTransform.cc.
|
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.
strm | C++ i/o stream to dump the information to |
Implements BESObj.
Definition at line 327 of file W10nJsonTransform.cc.
void W10nJsonTransform::json_simple_type_array | ( | ostream * | strm, |
libdap::Array * | a, | ||
std::string | indent ) |
Writes the w10n json representation of the passed DAP Array of simple types. If the parameter "sendData" evaluates to true then data will also be sent.
Definition at line 213 of file W10nJsonTransform.cc.
unsigned int W10nJsonTransform::json_simple_type_array_worker | ( | ostream * | strm, |
T * | values, | ||
unsigned int | indx, | ||
vector< unsigned int > * | shape, | ||
unsigned int | currentDim, | ||
bool | flatten ) |
@TODO Handle String and URL Arrays including backslash escaping double quotes in values.
Definition at line 66 of file W10nJsonTransform.cc.
|
virtual |
Definition at line 457 of file W10nJsonTransform.cc.