BESDapResponse.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033 #ifndef I_BESDapResponse
00034 #define I_BESDapResponse 1
00035
00036 #include <DAS.h>
00037
00038 #include "BESResponseObject.h"
00039 #include "BESDataHandlerInterface.h"
00040
00041 using namespace libdap ;
00042
00045 class BESDapResponse: public BESResponseObject {
00046 private:
00047 #if 0
00048 DAS * _das;
00049 #endif
00050 string d_dap_client_protocol;
00051 bool d_explicit_containers;
00052
00053 string d_request_xml_base;
00054
00055 protected:
00056 bool is_dap2();
00057 void read_contexts();
00058 public:
00059 BESDapResponse() :
00060 BESResponseObject(), d_dap_client_protocol("2.0"),
00061 d_explicit_containers(true), d_request_xml_base("")
00062 {
00063 read_contexts();
00064 }
00065
00066 virtual ~BESDapResponse()
00067 {
00068 }
00069
00071 string get_dap_client_protocol() const { return d_dap_client_protocol; }
00072
00074 bool get_explicit_containers() const { return d_explicit_containers; }
00075
00077 string get_request_xml_base() const { return d_request_xml_base; }
00078
00079 virtual void set_container(const string &cn) = 0;
00080 virtual void set_constraint( BESDataHandlerInterface &dhi ) ;
00081 virtual void clear_container() = 0;
00082
00083 virtual void dump(ostream &strm) const;
00084 };
00085
00086 #endif // I_BESDapResponse
00087