35#include "../usage/BESUsageTransmit.h"
37#include "../usage/BESUsage.h"
38#include "../usage/usage.h"
39#include "BESDapTransmit.h"
40#include "BESContainer.h"
41#include "BESDataNames.h"
42#include <libdap/mime_util.h>
43#include <libdap/InternalErr.h>
44#include "BESDapError.h"
45#include "BESInternalFatalError.h"
50using namespace dap_usage;
58 DAS *das = usage.get_das()->get_das();
59 DDS *dds = usage.get_dds()->get_dds();
66 BESDEBUG(
"usage",
"writing usage/info" << endl ) ;
68 write_usage_response(dhi.get_output_stream(), *dds, *das, dataset_name,
"",
false);
70 BESDEBUG(
"usage",
"done transmitting usage/info" << endl ) ;
72 catch( InternalErr &e )
74 string err =
"Failed to write usage: " + e.get_error_message() ;
75 throw BESDapError(err,
true, e.get_error_code(), __FILE__, __LINE__ );
79 string err =
"Failed to write usage: " + e.get_error_message() ;
80 throw BESDapError(err,
false, e.get_error_code(), __FILE__, __LINE__ ) ;
87 string err =
"Failed to write usage: Unknown exception caught";
97 set_mime_html( dhi.get_output_stream(), unknown_type, x_plain ) ;
98 BESUsageTransmit::send_basic_usage( obj, dhi ) ;
virtual std::string access()=0
returns the true name of this container
error object created from libdap error objects and can handle those errors
Structure storing information used by the BES to handle the request.
void first_container()
set the container pointer to the first container in the containers list
BESContainer * container
pointer to current container in this interface
Base exception class for the BES with basic string message.
exception thrown if an internal error is found and is fatal to the BES
Abstract base class representing a specific set of information in response to a request to the BES.
container for a DAS and DDS needed to write out the usage information for a dataset.