bes  Updated for version 3.20.6
MakeArrayFunction.h
1 // -*- mode: c++; c-basic-offset:4 -*-
2 
3 // This file is part of libdap, A C++ implementation of the OPeNDAP Data
4 // Access Protocol.
5 
6 // Copyright (c) 2013 OPeNDAP, Inc.
7 // Authors: Nathan Potter <npotter@opendap.org>
8 // James Gallagher <jgallagher@opendap.org>
9 //
10 // This library is free software; you can redistribute it and/or
11 // modify it under the terms of the GNU Lesser General Public
12 // License as published by the Free Software Foundation; either
13 // version 2.1 of the License, or (at your option) any later version.
14 //
15 // This library is distributed in the hope that it will be useful,
16 // but WITHOUT ANY WARRANTY; without even the implied warranty of
17 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
18 // Lesser General Public License for more details.
19 //
20 // You should have received a copy of the GNU Lesser General Public
21 // License along with this library; if not, write to the Free Software
22 // Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
23 //
24 // You can contact OPeNDAP, Inc. at PO Box 112, Saunderstown, RI. 02874-0112.
25 
26 #include <ServerFunction.h>
27 
28 namespace libdap {
29 class BaseType;
30 class DDS;
31 }
32 
33 namespace functions {
34 
35 void function_make_dap2_array(int argc, libdap::BaseType *argv[], libdap::DDS &dds, libdap::BaseType **btpp);
36 libdap::BaseType *function_make_dap4_array(libdap::D4RValueList *args, libdap::DMR &dmr);
37 
43 class MakeArrayFunction: public libdap::ServerFunction
44 {
45 public:
47  {
48  setName("make_array");
49  setDescriptionString("The make_array() function reads a number of values and builds a DAP Array object.");
50  setUsageString("make_array(type,shape,value0,value1,...,valueN)");
51  setRole("http://services.opendap.org/dap4/server-side-function/make_array");
52  setDocUrl("http://docs.opendap.org/index.php/Server_Side_Processing_Functions#make_array");
53  setFunction(function_make_dap2_array);
54  setFunction(function_make_dap4_array);
55  setVersion("1.0");
56  }
57  virtual ~MakeArrayFunction()
58  {
59  }
60 };
61 
62 } // functions namespace
libdap
Definition: BESDapFunctionResponseCache.h:35
functions::MakeArrayFunction
Definition: MakeArrayFunction.h:43