MetriVis Overview | Download | User Manual | Development
Reference Overview | Design Documentation | Reference Backend | Reference Frontend

src/SQL2JsonConverter.h

Go to the documentation of this file.
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_XY_PLOT_FILTER_H
00030 #define _METRIVIS_XY_PLOT_FILTER_H
00031 
00032 
00033 #include "container/MultiType.h"
00034 #include "pipeline/PipelineProcess.h"
00035 #include "BaseClass.h"
00036 
00037 
00038 namespace metrivis {
00039 
00040 
00045 class SQL2JsonConverter : public PipelineProcess, public BaseClass {
00046 
00047 public:
00048 
00052   SQL2JsonConverter();
00053 
00057   virtual ~SQL2JsonConverter();
00058 
00065   virtual void Execute();
00066 
00067 
00072   void set_target(const std::string& target) {
00073     target_ = target;
00074   }
00075 
00080   void set_type(const std::string& type) {
00081     type_ = type;
00082   }
00083 
00084 
00094   void set_action(const std::string& action) {
00095     action_ = action;
00096   }
00097 
00098 
00106   void set_callback(const std::string& callback) {
00107     callback_ = callback;
00108   }
00109 
00110 
00111 protected:
00112 
00116   void ExecuteSelect();
00117 
00121   void ExecuteDelete();
00122 
00126   void ExecuteInsert();
00127 
00128 
00129 private:
00130 
00131 
00132   std::string    target_;   
00133   std::string    type_;     
00134   std::string    action_;   
00135   std::string    callback_; 
00136 
00137 };
00138 
00139 }
00140 
00141 #endif // _METRIVIS_XY_PLOT_FILTER_H

Generated on Fri Feb 29 16:47:19 2008 for MetriVis by  doxygen 1.5.3