bes Updated for version 3.21.1
The Backend Server (BES) is the lower two tiers of the Hyrax data server
|
Transforms a DDS into JSON document on disk. More...
#include <FoInstanceJsonTransform.h>
Public Member Functions | |
virtual void | dump (std::ostream &strm) const |
dumps information about this transformation object for debugging purposes | |
FoInstanceJsonTransform (libdap::DDS *dds) | |
Constructor that creates transformation object from the specified DataDDS object to the specified file. | |
virtual void | transform (std::ostream &ostrm, bool sendData) |
Transforms the DDS object into a JSON instance object representation. | |
Transforms a DDS into JSON document on disk.
Used to transform a DDS into an instance object representation (meta)data JSON document. The output is written to a local file whose name is passed as a parameter to the constructor.
Definition at line 54 of file FoInstanceJsonTransform.h.
FoInstanceJsonTransform::FoInstanceJsonTransform | ( | libdap::DDS * | dds | ) |
Constructor that creates transformation object from the specified DataDDS object to the specified file.
Build a FoInstanceJsonTransform object.
dds | DataDDS object that contains the data structure, attributes and data |
dhi | The data interface containing information about the current request |
localfile | The file to create and write the JSON document into. |
BESInternalError | if dds provided is empty or not read, if the file is not specified or failed to create the netcdf file |
Constructor that creates transformation object from the specified DataDDS object to the specified stream.
Using this constructor configures the Transform object to write directly to the DataHandlerInterface's output stream without using an intermediate file.
dds | |
dhi | |
ostrm |
Definition at line 226 of file FoInstanceJsonTransform.cc.
|
inlinevirtual |
Definition at line 84 of file FoInstanceJsonTransform.h.
|
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 JSON file.
strm | C++ i/o stream to dump the information to |
Implements BESObj.
Definition at line 240 of file FoInstanceJsonTransform.cc.
|
virtual |
Transforms the DDS object into a JSON instance object representation.
Transforms the DDS and all of it's "projected" variables into a JSON document using an instance object representation.
Modified from the original so that the object can be built using either an output stream or a local temporary file. In the latter case it will open the file and write to it. The object's client sorts it out from there...
sendData | If the sendData parameter is true data will be sent. If sendData is false then the metadata will be sent. |
Definition at line 262 of file FoInstanceJsonTransform.cc.