bes  Updated for version 3.20.6
WWWOutput Class Reference

#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)
 
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
 

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::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

◆ write_disposition()

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.

◆ write_global_attributes()

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 142 of file WWWOutput.cc.

◆ write_html_header()

void WWWOutput::write_html_header ( )

Write out the header for the HTML document.

Definition at line 73 of file WWWOutput.cc.

◆ write_variable_attributes()

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 181 of file WWWOutput.cc.

◆ write_variable_list()

void WWWOutput::write_variable_list ( DDS &  dds)

Write the dataset variable list. This is a scrolling select box.

Deprecated:
Parameters
ddsThe dataset's DDS.

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