bes  Updated for version 3.20.5
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 using std::string;
31 
32 #include <DDS.h>
33 #include <ServerFunction.h>
34 #include "BESAbstractModule.h"
35 
42 void promote_function_output_structures(libdap::DDS *fdds);
43 void function_dap2_wrapitup(int argc, libdap::BaseType *argv[], libdap::DDS &dds, libdap::BaseType **btpp);
44 libdap::BaseType *function_dap4_wrapitup(libdap::D4RValueList *dvl_args, libdap::DMR &dmr);
45 
46 
47 class WrapItUp: public libdap::ServerFunction {
48 
49 private:
50 
51 public:
52  WrapItUp()
53 {
54  setName("wrapitup");
55  setDescriptionString(
56  ((string)"This function returns a Structure whose name will invoke the '_unwrap' content activity"));
57  setUsageString("wrapitup()");
58  setRole("http://services.opendap.org/dap4/server-side-function/dap_function_utils/wrapitup");
59  setDocUrl("http://docs.opendap.org/index.php/DapUtilFunctions");
60  setFunction(function_dap2_wrapitup);
61  setFunction(function_dap4_wrapitup);
62  setVersion("1.0");
63 }
64  virtual ~WrapItUp()
65  {
66  }
67 
68 };
69 
70 
71 
72 #endif // DapFunctionUtils_h_
73 
WrapItUp
Definition: DapFunctionUtils.h:47