bes
Updated for version 3.20.13
DapFunctionUtils.h
1
// -*- mode: c++; c-basic-offset:4 -*-
2
3
// This file is part of the BES, a component
4
// of the Hyrax Data Server
5
6
// Copyright (c) 2016 OPeNDAP, Inc.
7
// Authors: Nathan Potter <ndp@opendap.org>
8
//
9
// This library is free software; you can redistribute it and/or
10
// modify it under the terms of the GNU Lesser General Public
11
// License as published by the Free Software Foundation; either
12
// version 2.1 of the License, or (at your option) any later version.
13
//
14
// This library is distributed in the hope that it will be useful,
15
// but WITHOUT ANY WARRANTY; without even the implied warranty of
16
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17
// Lesser General Public License for more details.
18
//
19
// You should have received a copy of the GNU Lesser General Public
20
// License along with this library; if not, write to the Free Software
21
// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
22
//
23
// You can contact OPeNDAP, Inc. at PO Box 112, Saunderstown, RI. 02874-0112.
24
25
26
#ifndef DapFunctionUtils_h_
27
#define DapFunctionUtils_h_ 1
28
29
#include <string>
30
31
#include <libdap/DDS.h>
32
#include <libdap/ServerFunction.h>
33
#include "BESAbstractModule.h"
34
41
void
promote_function_output_structures(libdap::DDS *fdds);
42
void
function_dap2_wrapitup(
int
argc, libdap::BaseType *argv[], libdap::DDS &dds, libdap::BaseType **btpp);
43
libdap::BaseType *function_dap4_wrapitup(libdap::D4RValueList *dvl_args, libdap::DMR &dmr);
44
45
46
class
WrapItUp
:
public
libdap::ServerFunction {
47
48
private
:
49
50
public
:
51
WrapItUp
()
52
{
53
setName(
"wrapitup"
);
54
setDescriptionString(
55
((
string
)
"This function returns a Structure whose name will invoke the '_unwrap' content activity"
));
56
setUsageString(
"wrapitup()"
);
57
setRole(
"http://services.opendap.org/dap4/server-side-function/dap_function_utils/wrapitup"
);
58
setDocUrl(
"https://docs.opendap.org/index.php/DapUtilFunctions"
);
59
setFunction(function_dap2_wrapitup);
60
setFunction(function_dap4_wrapitup);
61
setVersion(
"1.0"
);
62
}
63
virtual
~WrapItUp
()
64
{
65
}
66
67
};
68
69
70
71
#endif
// DapFunctionUtils_h_
72
WrapItUp
Definition
DapFunctionUtils.h:46
dap
DapFunctionUtils.h
Generated by
1.9.8