#include <FoDapCovJsonTransform.h>
|
virtual void | addTestAxis (std::string name, std::string values) |
|
virtual void | addTestParameter (std::string id, std::string name, std::string type, std::string dataType, std::string unit, std::string longName, std::string standardName, std::string shape, std::string values) |
|
template<typename T > |
void | covjsonSimpleTypeArray (ostream *strm, libdap::Array *a, string indent, bool sendData) |
|
template<typename T > |
unsigned int | covjsonSimpleTypeArrayWorker (ostream *strm, T *values, unsigned int indx, vector< unsigned int > *shape, unsigned int currentDim, bool is_axis_t_sgeo, libdap::Type a_type) |
|
virtual void | dump (std::ostream &strm) const |
| Dumps information about this transformation object for debugging purposes. More...
|
|
| FoDapCovJsonTransform (libdap::DDS *dds) |
| Get the CovJSON encoding for a DDS. More...
|
|
virtual void | printAxes (std::ostream &ostrm, std::string indent) |
|
virtual void | printCoverage (std::ostream &ostrm, std::string indent) |
|
virtual void | printDomain (std::ostream &ostrm, std::string indent) |
|
virtual void | printParameters (std::ostream &ostrm, std::string indent) |
|
virtual void | printRanges (std::ostream &ostrm, std::string indent) |
|
virtual void | printReference (std::ostream &ostrm, std::string indent) |
|
virtual void | setTestAxesExistence (bool x, bool y, bool z, bool t) |
|
virtual void | setTestDomainType (int domainType) |
|
virtual void | transform (std::ostream &ostrm, bool sendData, bool testOverride) |
| Transforms each of the marked variables of the DDS to CovJSON. More...
|
|
virtual | ~FoDapCovJsonTransform () |
| Destructs the FoDapCovJsonTransform object and frees all memory. More...
|
|
Used to transform a DDS into a CovJSON metadata or CovJSON data document. The output is written to a local file whose name is passed as a parameter the constructor.
Definition at line 51 of file FoDapCovJsonTransform.h.
◆ FoDapCovJsonTransform()
FoDapCovJsonTransform::FoDapCovJsonTransform |
( |
libdap::DDS * |
dds | ) |
|
Get the CovJSON encoding for a DDS.
Set up the CovJSON output transform object. This constructor builds an object that will build a CovJSON encoding for a DDS. This class can return both the entire DDS, including data, and a metadata-only response.
- Note
- The 'transform' method is used to build the response and a bool flag is passed to it to select data or metadata. However, if that flag is true and the DDS does not already contain data, the result is undefined.
- Parameters
-
- Exceptions
-
Definition at line 976 of file FoDapCovJsonTransform.cc.
◆ ~FoDapCovJsonTransform()
virtual FoDapCovJsonTransform::~FoDapCovJsonTransform |
( |
| ) |
|
|
inlinevirtual |
◆ addTestAxis()
virtual void FoDapCovJsonTransform::addTestAxis |
( |
std::string |
name, |
|
|
std::string |
values |
|
) |
| |
|
inlinevirtual |
◆ addTestParameter()
virtual void FoDapCovJsonTransform::addTestParameter |
( |
std::string |
id, |
|
|
std::string |
name, |
|
|
std::string |
type, |
|
|
std::string |
dataType, |
|
|
std::string |
unit, |
|
|
std::string |
longName, |
|
|
std::string |
standardName, |
|
|
std::string |
shape, |
|
|
std::string |
values |
|
) |
| |
|
inlinevirtual |
◆ covjsonSimpleTypeArray()
template<typename T >
void FoDapCovJsonTransform::covjsonSimpleTypeArray |
( |
ostream * |
strm, |
|
|
libdap::Array * |
a, |
|
|
string |
indent, |
|
|
bool |
sendData |
|
) |
| |
◆ covjsonSimpleTypeArrayWorker()
template<typename T >
unsigned int FoDapCovJsonTransform::covjsonSimpleTypeArrayWorker |
( |
ostream * |
strm, |
|
|
T * |
values, |
|
|
unsigned int |
indx, |
|
|
vector< unsigned int > * |
shape, |
|
|
unsigned int |
currentDim, |
|
|
bool |
is_axis_t_sgeo, |
|
|
libdap::Type |
a_type |
|
) |
| |
◆ dump()
void FoDapCovJsonTransform::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 FoCovJson objects converted from DAP objects that are to be sent to the netcdf file.
- Parameters
-
strm | C++ i/o stream to dump the information to |
Implements BESObj.
Definition at line 984 of file FoDapCovJsonTransform.cc.
◆ printAxes()
virtual void FoDapCovJsonTransform::printAxes |
( |
std::ostream & |
ostrm, |
|
|
std::string |
indent |
|
) |
| |
|
inlinevirtual |
◆ printCoverage()
virtual void FoDapCovJsonTransform::printCoverage |
( |
std::ostream & |
ostrm, |
|
|
std::string |
indent |
|
) |
| |
|
inlinevirtual |
◆ printDomain()
virtual void FoDapCovJsonTransform::printDomain |
( |
std::ostream & |
ostrm, |
|
|
std::string |
indent |
|
) |
| |
|
inlinevirtual |
◆ printParameters()
virtual void FoDapCovJsonTransform::printParameters |
( |
std::ostream & |
ostrm, |
|
|
std::string |
indent |
|
) |
| |
|
inlinevirtual |
◆ printRanges()
virtual void FoDapCovJsonTransform::printRanges |
( |
std::ostream & |
ostrm, |
|
|
std::string |
indent |
|
) |
| |
|
inlinevirtual |
◆ printReference()
virtual void FoDapCovJsonTransform::printReference |
( |
std::ostream & |
ostrm, |
|
|
std::string |
indent |
|
) |
| |
|
inlinevirtual |
◆ setTestAxesExistence()
virtual void FoDapCovJsonTransform::setTestAxesExistence |
( |
bool |
x, |
|
|
bool |
y, |
|
|
bool |
z, |
|
|
bool |
t |
|
) |
| |
|
inlinevirtual |
◆ setTestDomainType()
virtual void FoDapCovJsonTransform::setTestDomainType |
( |
int |
domainType | ) |
|
|
inlinevirtual |
◆ transform()
virtual void FoDapCovJsonTransform::transform |
( |
std::ostream & |
ostrm, |
|
|
bool |
sendData, |
|
|
bool |
testOverride |
|
) |
| |
|
virtual |
Transforms each of the marked variables of the DDS to CovJSON.
For each variable in the DDS, write out that variable and its attributes as CovJSON. Each OPeNDAP data type translates into a particular CovJSON type. Also write out any global attributes stored at the top level of the DataDDS.
- Parameters
-
ostrm | Write the CovJSON to this stream |
sendData | True if data should be sent, False to send only metadata. |
testOverride | true: print to stream regardless of whether the file can be converted to CoverageJSON (for testing purposes) false: run normally |
The documentation for this class was generated from the following files: