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
00034
00035
00036
00037
00038 #ifndef _datadds_h
00039 #define _datadds_h 1
00040
00041 #include <iostream>
00042 #include <string>
00043
00044 #ifndef _dds_h
00045 #include "DDS.h"
00046 #endif
00047
00048 namespace libdap
00049 {
00050
00077 class DataDDS : public DDS
00078 {
00079 private:
00080 string d_server_version;
00081 int d_server_version_major;
00082 int d_server_version_minor;
00083
00084 string d_protocol_version;
00085 int d_server_protocol_major;
00086 int d_server_protocol_minor;
00087
00088 void m_version_string_to_numbers();
00089 void m_protocol_string_to_numbers();
00090
00091 public:
00092 DataDDS(BaseTypeFactory *factory, const string &n = "",
00093 const string &v = "", const string &p = "");
00094
00095
00096
00097 virtual ~DataDDS()
00098 {}
00099
00103 void set_version(const string &v)
00104 {
00105 d_server_version = v;
00106 m_version_string_to_numbers();
00107 }
00109 string get_version() const
00110 {
00111 return d_server_version;
00112 }
00114 int get_version_major() const
00115 {
00116 return d_server_version_major;
00117 }
00119 int get_version_minor() const
00120 {
00121 return d_server_version_minor;
00122 }
00123
00124 void set_protocol(const string &p)
00125 {
00126 d_protocol_version = p;
00127 m_protocol_string_to_numbers();
00128 }
00129 string get_protocol() const
00130 {
00131 return d_protocol_version;
00132 }
00133 int get_protocol_major() const
00134 {
00135 return d_server_protocol_major;
00136 }
00137 int get_protocol_minor() const
00138 {
00139 return d_server_protocol_minor;
00140 }
00141
00142 virtual void dump(ostream &strm) const ;
00143 };
00144
00145 }
00146
00147 #endif // _datadds_h