Common functions for DODS server filter programs.
When a DODS server receives a request from a DODS client, the server CGI script dispatches the request to one of several ``filter'' programs. Each filter is responsible for returning a different aspect of the dataset information: one is for data, one is for the dataset DDS, one is for the dataset DAS, and a fourth is for a usage message describing the server itself. Some installations may have additional optional filters. The filter program receives a data request from the dispatch script. It receives its operating parameters from the command line, like any UNIX command, and it returns its output to standard output, which the httpd server packages up into a reply to the client. This class contains some common functions for the filter programs used to make up the DODS data servers. The filter programs do not {\it have} to be called by a CGI program, but that is the normal mechanism by which they are invoked.
bool OK()
bool version()
string get_cgi_version()
string get_ce()
string get_dataset_name()
virtual string get_dataset_version()
virtual string get_cache_dir()
string get_accept_types()
bool read_ancillary_das(DAS &das, string anc_location = "")
bool read_ancillary_dds(DDS &dds, string anc_location = "")
void print_usage()
void send_version_info()
bool send_das(DAS &das)
bool send_dds(DDS &dds, bool constrained = false)
constrained - If this argument is true, evaluate the
current constraint expression and send the `constrained DDS'
back to the client.
bool send_data(DDS &dds, FILE *data_stream)
data_stream - A pointer to the XDR sink into which the data
is to be put for encoding and transmission.
alphabetic index hierarchy of classes
generated by doc++