30#include <libdap/BaseType.h>
31#include <libdap/Float64.h>
32#include <libdap/Str.h>
33#include <libdap/Array.h>
34#include <libdap/Grid.h>
35#include <libdap/D4RValue.h>
37#include <libdap/Error.h>
38#include <libdap/DDS.h>
40#include <libdap/debug.h>
41#include <libdap/util.h>
45#include "LinearScaleFunction.h"
52 string(
"<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n")
53 +
"<function name=\"identity\" version=\"1.0\" href=\"http://docs.opendap.org/index.php/Server_Side_Processing_Functions#identity\">\n"
63void function_dap2_identity(
int argc, BaseType * argv[], DDS &, BaseType **btpp)
66 Str *response =
new Str(
"info");
67 response->set_value(identity_info);
82BaseType *function_dap4_identity(D4RValueList *args, DMR &dmr)
84 BESDEBUG(
"function",
"function_dap4_identity() BEGIN " << endl);
87 if (args == 0 || args->size() == 0) {
88 Str *response =
new Str(
"info");
89 response->set_value(identity_info);
94 return args->get_rvalue(0)->value(dmr);