OPeNDAP Hyrax Back End Server (BES)  Updated for version 3.8.3
WWWOutput Class Reference

Write various parts of the HTML form for a dataset. More...

#include <WWWOutput.h>

Collaboration diagram for WWWOutput:
Collaboration graph

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
 

Detailed Description

Write various parts of the HTML form for a dataset.

Author
jhrg.

Definition at line 48 of file WWWOutput.h.

Constructor & Destructor Documentation

WWWOutput::WWWOutput ( ostream &  strm,
int  rows = 5,
int  cols = 70 
)

Create a WWWOutput.

Parameters
osThe output stream to which HTML should be sent.
rowsThe number of rows to show in the attribute textbox (default 5).
colsThe number of columns to show in the attribute textbox (default 70).

Definition at line 66 of file WWWOutput.cc.

Member Function Documentation

void WWWOutput::write_attributes ( AttrTable *  attr,
const string  prefix = "" 
)
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.

Parameters
urlThe initial URL to display.
FONcTrue 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.

Parameters
dasThe 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().

Here is the call graph for this function:

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.

Parameters
btpA 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().

Here is the call graph for this function:

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().

Here is the call graph for this function:

void WWWOutput::write_variable_list ( DDS &  dds)

Write the dataset variable list.

This is a scrolling select box.

Deprecated:
Parameters
ddsThe dataset's DDS.

Member Data Documentation

int WWWOutput::d_attr_cols
protected
int WWWOutput::d_attr_rows
protected
ostream* WWWOutput::d_strm
protected

The documentation for this class was generated from the following files: