|
OPeNDAP Hyrax Back End Server (BES)
Updated for version 3.8.3
|
Write various parts of the HTML form for a dataset. More...
#include <WWWOutput.h>

Public Member Functions | |
| void | write_disposition (string url, bool netcdf3_file_response, bool netcdf4_file_response) |
| Write the disposition section of the HTML page. More... | |
| void | write_global_attributes (AttrTable &attr) |
| Given the global attribute table, write the HTML which contains all the global attributes for this dataset. More... | |
| void | write_html_header () |
| Write out the header for the HTML document. More... | |
| void | write_variable_attributes (BaseType *btp) |
| Write a variable's attribute information. More... | |
| void | write_variable_entries (DDS &dds) |
| void | write_variable_list (DDS &dds) |
| Write the dataset variable list. More... | |
| WWWOutput (ostream &strm, int rows=5, int cols=70) | |
| Create a WWWOutput. More... | |
Protected Member Functions | |
| void | write_attributes (AttrTable *attr, const string prefix="") |
Protected Attributes | |
| int | d_attr_cols |
| int | d_attr_rows |
| ostream * | d_strm |
Write various parts of the HTML form for a dataset.
Definition at line 48 of file WWWOutput.h.
| WWWOutput::WWWOutput | ( | ostream & | strm, |
| int | rows = 5, |
||
| int | cols = 70 |
||
| ) |
Create a WWWOutput.
| os | The output stream to which HTML should be sent. |
| rows | The number of rows to show in the attribute textbox (default 5). |
| cols | The number of columns to show in the attribute textbox (default 70). |
Definition at line 66 of file WWWOutput.cc.
|
protected |
Definition at line 110 of file WWWOutput.cc.
References d_strm.
Referenced by write_global_attributes(), and write_variable_attributes().
| void WWWOutput::write_disposition | ( | string | url, |
| bool | netcdf3_file_response, | ||
| bool | netcdf4_file_response | ||
| ) |
Write the disposition section of the HTML page.
This section shows the URL and provides buttons with which the user can choose the type of output.
| url | The initial URL to display. |
| FONc | True if the Fileout netCDF button should be shown. |
Definition at line 80 of file WWWOutput.cc.
References d_attr_cols, and d_strm.
Referenced by dap_html_form::write_html_form_interface().
| void WWWOutput::write_global_attributes | ( | AttrTable & | attr | ) |
Given the global attribute table, write the HTML which contains all the global attributes for this dataset.
A global attribute is defined in the source file DDS.cc by the DDS::transfer_attributes() method.
| das | The AttrTable with the global attributes. |
Definition at line 141 of file WWWOutput.cc.
References d_attr_cols, d_attr_rows, d_strm, and write_attributes().
Referenced by dap_html_form::write_html_form_interface().

| void WWWOutput::write_html_header | ( | ) |
Write out the header for the HTML document.
Definition at line 73 of file WWWOutput.cc.
References d_strm.
Referenced by dap_html_form::write_html_form_interface().
| void WWWOutput::write_variable_attributes | ( | BaseType * | btp | ) |
Write a variable's attribute information.
This method is a jack because this code does not use multiple inheritance and we'd need that to easily add a new method to print attributes according to class. Here I just use a switch stmt.
| btp | A pointer to the variable. |
Definition at line 180 of file WWWOutput.cc.
References d_attr_cols, d_attr_rows, d_strm, and write_attributes().
Referenced by WWWStructure::print_val(), WWWSequence::print_val(), and write_variable_entries().

| void WWWOutput::write_variable_entries | ( | DDS & | dds | ) |
Definition at line 153 of file WWWOutput.cc.
References d_attr_cols, d_attr_rows, d_strm, and write_variable_attributes().
Referenced by dap_html_form::write_html_form_interface().

| void WWWOutput::write_variable_list | ( | DDS & | dds | ) |
Write the dataset variable list.
This is a scrolling select box.
| dds | The dataset's DDS. |
|
protected |
Definition at line 64 of file WWWOutput.h.
Referenced by write_disposition(), write_global_attributes(), write_variable_attributes(), and write_variable_entries().
|
protected |
Definition at line 63 of file WWWOutput.h.
Referenced by write_global_attributes(), write_variable_attributes(), and write_variable_entries().
|
protected |
Definition at line 62 of file WWWOutput.h.
Referenced by write_attributes(), write_disposition(), write_global_attributes(), write_html_header(), write_variable_attributes(), and write_variable_entries().