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_SQL_2_JSON_FETCHER_H 00030 #define _METRIVIS_SQL_2_JSON_FETCHER_H 00031 00032 00033 #include "container/MultiType.h" 00034 #include "pipeline/PipelineProcess.h" 00035 #include "BaseClass.h" 00036 00037 00038 namespace metrivis { 00039 00040 00046 class SQL2JsonFetcher : public PipelineProcess, BaseClass { 00047 00048 public: 00049 00053 SQL2JsonFetcher(); 00054 00058 virtual ~SQL2JsonFetcher(); 00059 00066 virtual void Execute(); 00067 00068 00076 virtual void Reset(); 00077 00078 00083 void set_table(const std::string& table) { 00084 table_ = table; 00085 } 00086 00087 00092 void set_target(const std::string& target) { 00093 target_ = target; 00094 } 00095 00096 00106 void set_action(const std::string& action) { 00107 action_ = action; 00108 } 00109 00110 00115 void set_argument(const std::string& argument) { 00116 argument_ = argument; 00117 } 00118 00119 00124 void set_type(const std::string& type) { 00125 type_ = type; 00126 } 00127 00128 00135 void set_columns(const std::string& columns) { 00136 columns_ = columns; 00137 } 00138 00145 void set_cached(const std::string& cached) { 00146 cached_ = cached; 00147 } 00148 00149 00150 private: 00151 00152 std::string table_; 00153 std::string target_; 00154 std::string action_; 00155 std::string argument_; 00156 std::string type_; 00157 std::string columns_; 00158 std::string cached_; 00159 00160 }; 00161 00162 } 00163 00164 #endif // _METRIVIS_SQL_2_JSON_FETCHER_H