OPeNDAP Hyrax Back End Server (BES)  Updated for version 3.8.3
fojson Namespace Reference

Functions

long computeConstrainedShape (libdap::Array *a, std::vector< unsigned int > *shape)
 Compute the constrained shape of the Array and return it in a vector. More...
 
std::string escape_for_json (const std::string &input)
 

Function Documentation

long fojson::computeConstrainedShape ( libdap::Array *  a,
std::vector< unsigned int > *  shape 
)

Compute the constrained shape of the Array and return it in a vector.

Also return the total number of elements in the constrained array.

Parameters
aThe Array to examine
shapeThe shape of the Array, taking into account the constraint
Returns
The total number of elements in the constrained Array.

Definition at line 61 of file fojson_utils.cc.

References BESDEBUG, and utils_debug_key.

std::string fojson::escape_for_json ( const std::string &  input)

Definition at line 41 of file fojson_utils.cc.