bes
Updated for version 3.20.6
|
#include <WWWOutput.h>
Public Member Functions | |
void | write_disposition (string url, bool netcdf3_file_response, bool netcdf4_file_response) |
void | write_global_attributes (AttrTable &attr) |
void | write_html_header () |
void | write_variable_attributes (BaseType *btp) |
void | write_variable_entries (DDS &dds) |
void | write_variable_list (DDS &dds) |
WWWOutput (ostream &strm, int rows=5, int cols=70) | |
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.
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.
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 142 of file WWWOutput.cc.
void WWWOutput::write_html_header | ( | ) |
Write out the header for the HTML document.
Definition at line 73 of file WWWOutput.cc.
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 181 of file WWWOutput.cc.
void WWWOutput::write_variable_list | ( | DDS & | dds | ) |
Write the dataset variable list. This is a scrolling select box.
dds | The dataset's DDS. |