MetriVis | Overview | Download | User Manual | Development |
Reference | Overview | Design Documentation | Reference Backend | Reference Frontend |
00001 /* 00002 * MetriVis - Metrics Visualization Application 00003 * 00004 * 00005 * License notice: 00006 * 00007 * This program is free software: you can redistribute it and/or modify 00008 * it under the terms of the GNU General Public License as published by 00009 * the Free Software Foundation, either version 3 of the License, or 00010 * (at your option) any later version. 00011 * 00012 * This program is distributed in the hope that it will be useful, 00013 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00014 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00015 * GNU General Public License for more details. 00016 * 00017 * You should have received a copy of the GNU General Public License 00018 * along with this program. If not, see <http://www.gnu.org/licenses/>. 00019 * 00020 */ 00021 00022 00029 #ifndef _METRIVIS_REQUEST_DESCRIPTION_H 00030 #define _METRIVIS_REQUEST_DESCRIPTION_H 00031 00032 #include <string> 00033 #include <map> 00034 00035 00036 namespace metrivis { 00037 00038 00042 class RequestDescription { 00043 00044 public: 00048 RequestDescription(); 00049 00050 ~RequestDescription(); 00051 00052 00061 std::string Parameter(const std::string& parameter) { 00062 return parameters_[parameter]; 00063 } 00064 00069 void set_parameters(std::map<std::string, std::string>& parameters) { 00070 parameters_ = parameters; 00071 } 00072 00077 void set_file_name(const std::string& file_name) { 00078 file_name_ = file_name; 00079 } 00080 00085 const std::string& file_name() const { 00086 return file_name_; 00087 } 00088 00093 void set_connection_descriptor(int connection_descriptor) { 00094 connection_descriptor_ = connection_descriptor; 00095 } 00096 00101 int connection_descriptor() const { 00102 return connection_descriptor_; 00103 } 00104 00105 private: 00106 00107 std::map<std::string, std::string> parameters_; 00108 std::string file_name_; 00109 00110 int connection_descriptor_; 00111 }; 00112 00113 00114 } // namespace metrivis 00115 00116 #endif // _METRIVIS_REQUEST_DESCRIPTION_H