00001 /* SQLtoLDAPQueryTranslator.h */ 00002 00003 00004 #ifndef SQL_TO_LDAP_QUERY_TRANSLATOR_HH 00005 #define SQL_TO_LDAP_QUERY_TRANSLATOR_HH 00006 00007 #include "SQLQueryTranslator.h" 00008 #include "SQLtoLDAPPredicateTree.h" 00009 00010 00011 namespace LcgInfo{ 00012 /**************************** CLASS SQLtoLDAPQueryTranslator ***************************/ 00013 00024 class SQLtoLDAPQueryTranslator : public SQLQueryTranslator{ 00025 00026 public: 00033 SQLtoLDAPQueryTranslator(); 00034 00042 SQLtoLDAPQueryTranslator(std::string const & pMapFile); 00043 00052 SQLtoLDAPQueryTranslator(LcgConfigBuffer::ConfigBuffer & pMap); 00053 00057 virtual ~SQLtoLDAPQueryTranslator(); 00058 00076 virtual std::vector<std::string> translateQuery(std::string const & pQueryCanonical); 00077 00078 00079 protected: 00083 static std::string const CHARS_TO_DIVIDE_LDAP_WORDS; 00084 00085 00086 };//end of class SQLtoLDAPQueryTranslator 00087 00088 00089 } 00090 #endif