libdap++  Updated for version 3.12.0
ServerFunction.cc
Go to the documentation of this file.
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 // Author: Nathan Potter <npotter@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  * AbstractFunction.cc
27  *
28  * Created on: Feb 2, 2013
29  * Author: ndp
30  */
31 
32 #include "ServerFunction.h"
33 
34 namespace libdap {
35 
37  setName("abstract_function");
38  setDescriptionString("This function does nothing.");
39  setUsageString("You can't use this function");
40  setRole("http://services.opendap.org/dap4/server-side-function/null");
41  setDocUrl("http://docs.opendap.org/index.php/Server_Side_Processing_Functions");
42  d_bool_func = 0;
43  d_btp_func = 0;
44  d_proj_func = 0;
45 
46 }
47 
48 ServerFunction::ServerFunction(string name, string version, string description, string usage, string doc_url, string role, bool_func f){
49  setName(name);
50  setVersion(version);
51  setDescriptionString(description);
52  setUsageString(usage);
53  setRole(role);
54  setDocUrl(doc_url);
55  setFunction(f);
56 }
57 
58 ServerFunction::ServerFunction(string name, string version, string description, string usage, string doc_url, string role, btp_func f){
59  setName(name);
60  setVersion(version);
61  setDescriptionString(description);
62  setUsageString(usage);
63  setRole(role);
64  setDocUrl(doc_url);
65  setFunction(f);
66 
67 }
68 
69 ServerFunction::ServerFunction(string name, string version, string description, string usage, string doc_url, string role, proj_func f){
70  setName(name);
71  setVersion(version);
72  setDescriptionString(description);
73  setUsageString(usage);
74  setRole(role);
75  setDocUrl(doc_url);
76  setFunction(f);
77 }
78 
79 
81  d_bool_func = 0;
82  d_btp_func = 0;
83  d_proj_func = 0;
84 }
85 
86 
87 
88 } /* namespace libdap */