bes Updated for version 3.21.1
The Backend Server (BES) is the lower two tiers of the Hyrax data server
get_html_form.h
1
2// -*- mode: c++; c-basic-offset:4 -*-
3
4// Copyright (c) 2006 OPeNDAP, Inc.
5// Author: James Gallagher <jgallagher@opendap.org>
6//
7// This is free software; you can redistribute it and/or modify it under the
8// terms of the GNU Lesser General Public License as published by the Free
9// Software Foundation; either version 2.1 of the License, or (at your
10// option) any later version.
11//
12// This is distributed in the hope that it will be useful, but WITHOUT ANY
13// WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
14// FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for
15// more details.
16//
17// You should have received a copy of the GNU Lesser General Public
18// License along with this library; if not, write to the Free Software
19// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
20//
21// You can contact OPeNDAP, Inc. at PO Box 112, Saunderstown, RI. 02874-0112.
22
23// This file holds the interface for the 'get data as ascii' function of the
24// OPeNDAP/HAO data server. This function is called by the BES when it loads
25// this as a module. The functions in the file ascii_val.cc also use this, so
26// the same basic processing software can be used both by Hyrax and tie older
27// Server3.
28
29#include <libdap/BaseType.h>
30#include <libdap/DDS.h>
31#include "WWWOutput.h"
32
33namespace dap_html_form {
34
35extern WWWOutput *wo;
36
37BaseType *basetype_to_wwwtype( BaseType *bt );
38DDS *dds_to_www_dds( DDS *dds );
39
40#ifdef FILE_METHODS
41void write_html_form_interface(FILE *dest, DDS *dds,
42 const string &url,
43 bool html_header = true,
44 const string &admin_name = "support@opendap.org",
45 const string &help_location = "http://www.opendap.org/online_help_files/opendap_form_help.html");
46#endif
47
48void write_html_form_interface(ostream &strm, DDS *dds,
49 const string &url,
50 bool html_header = true,
51 bool netcdf3_file_response = false, bool netcdf4_file_response = false,
52 const string &admin_name = "support@opendap.org",
53 const string &help_location = "http://www.opendap.org/online_help_files/opendap_form_help.html");
54
60void write_simple_variable(FILE *os, BaseType *var);
61 // const string &name,
62 // const string &type);
63void write_simple_variable(ostream &strm, BaseType *var);
64 // const string &name,
65 // const string &type);
66#if 0
67void write_attributes(ostream &os, AttrTable &attr, const string &prefix);
68void write_simple_var_attributes(ostream &os, int rows, int cols, BaseType *btp);
69#endif
70
75string fancy_typename(BaseType *v);
76
91
92string name_for_js_code(const string &dods_name);
93
94string get_fqn(BaseType *var);
95
96} // namespace dap_html_form