bes  Updated for version 3.20.6
RoiFunction.h
1 // -*- mode: c++; c-basic-offset:4 -*-
2 
3 // This file is part of the BES, A C++ implementation of the OPeNDAP
4 // Hyrax data server
5 
6 // Copyright (c) 2015 OPeNDAP, Inc.
7 // Author: James Gallagher <jgallagher@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 #include <ServerFunction.h>
26 
27 namespace libdap {
28 class BaseType;
29 class DDS;
30 
31 class D4RValueList;
32 class DMR;
33 }
34 
35 namespace functions {
36 
37 void function_dap2_roi(int argc, libdap::BaseType *argv[], libdap::DDS &dds, libdap::BaseType **btpp);
38 libdap::BaseType *function_dap4_roi(libdap::D4RValueList *args, libdap::DMR &dmr);
39 
40 class RoiFunction: public libdap::ServerFunction
41 {
42 public:
43  RoiFunction()
44  {
45  setName("roi");
46  setDescriptionString("The roi() function subsets N arrays using slicing information read from an Array of Structures like that produced by the bbox() function.");
47  setUsageString("roi(<array0>, <array1>, ..., <arrayn>, Structure slice[M]), where <array0>, ..., has M or more dimensions.");
48  setRole("http://services.opendap.org/dap4/server-side-function/roi");
49  setDocUrl("http://docs.opendap.org/index.php/Server_Side_Processing_Functions#roi");
50  setFunction(function_dap2_roi);
51  setFunction(function_dap4_roi);
52  setVersion("1.0");
53  }
54  virtual ~RoiFunction()
55  {
56  }
57 };
58 
59 } // functions namespace
functions::RoiFunction
Definition: RoiFunction.h:40
libdap
Definition: BESDapFunctionResponseCache.h:35