/home/martin/workspace/OpenStreetNav/src/sqllib/strings/KeyValFilterTranslator.h
Go to the documentation of this file.
00001 /*
00002  * KeyValFilterTranslator.h
00003  *
00004  *  Created on: Dec 5, 2011
00005  *      Author: martin
00006  */
00007 
00008 #ifndef KEYVALFILTERTRANSLATOR_H_
00009 #define KEYVALFILTERTRANSLATOR_H_
00010 
00011 #include <boost/property_tree/ptree.hpp>
00012 
00013 namespace sqllib
00014 {
00015 
00016 class KeyValFilterTranslator
00017 {
00018 public:
00019     KeyValFilterTranslator(std::string const& cols, std::string const& tables, std::string const& where, std::string const& kvtable, std::vector<std::string> const& types, std::string const& order_by);
00020     boost::property_tree::ptree translate(boost::property_tree::ptree const& input);
00021 private:
00022     std::string cols;
00023     std::string tables;
00024     std::string where_cond;
00025     std::string kvtable;
00026     std::vector<std::string> types;
00027     std::string order_by;
00028 };
00029 
00030 } /* namespace sqllib */
00031 #endif /* KEYVALFILTERTRANSLATOR_H_ */
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines