libdap++  Updated for version 3.13.3
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 "config.h"
33 
34 #include "ServerFunction.h"
35 
36 namespace libdap {
37 
39  setName("abstract_function");
40  setDescriptionString("This function does nothing.");
41  setUsageString("You can't use this function");
42  setRole("http://services.opendap.org/dap4/server-side-function/null");
43  setDocUrl("http://docs.opendap.org/index.php/Server_Side_Processing_Functions");
44  d_bool_func = 0;
45  d_btp_func = 0;
46  d_proj_func = 0;
47 
48 }
49 
50 ServerFunction::ServerFunction(string name, string version, string description, string usage, string doc_url, string role, bool_func f){
51  setName(name);
52  setVersion(version);
53  setDescriptionString(description);
54  setUsageString(usage);
55  setRole(role);
56  setDocUrl(doc_url);
57  setFunction(f);
58 }
59 
60 ServerFunction::ServerFunction(string name, string version, string description, string usage, string doc_url, string role, btp_func f){
61  setName(name);
62  setVersion(version);
63  setDescriptionString(description);
64  setUsageString(usage);
65  setRole(role);
66  setDocUrl(doc_url);
67  setFunction(f);
68 
69 }
70 
71 ServerFunction::ServerFunction(string name, string version, string description, string usage, string doc_url, string role, proj_func f){
72  setName(name);
73  setVersion(version);
74  setDescriptionString(description);
75  setUsageString(usage);
76  setRole(role);
77  setDocUrl(doc_url);
78  setFunction(f);
79 }
80 
81 
83  d_bool_func = 0;
84  d_btp_func = 0;
85  d_proj_func = 0;
86 }
87 
88 
89 
90 } /* namespace libdap */
void setUsageString(const string &u)
void setRole(const string &r)
const string usage
Definition: DODSFilter.cc:84
void setDocUrl(const string &url)
const char * version
Definition: getdap.cc:60
void setName(const string &n)
void setVersion(const string &ver)
void setFunction(bool_func bf)
void setDescriptionString(const string &desc)