-// yf::CQLtoRPN::Rep::Rep()
-// {
-
-// }
-
-// yf::CQLtoRPN::CQLtoRPN() : m_p(new CQLtoRPN::Rep)
-// {
-// }
-
-// yf::CQLtoRPN::~CQLtoRPN()
-// {
-
-// }
-
-// void yf::CQLtoRPN::process(mp::Package &package) const
-// {
-// Z_GDU *gdu = package.request().get();
-
-// if (gdu && gdu->which == Z_GDU_Z3950 && gdu->u.z3950->which ==
-// Z_APDU_searchRequest)
-// {
-// Z_APDU *apdu_req = gdu->u.z3950;
-// Z_SearchRequest *sr = gdu->u.z3950->u.searchRequest;
-// if (sr->query && sr->query->which == Z_Query_type_104 &&
-// sr->query->u.type_104->which == Z_External_CQL)
-// {
-// char *addinfo = 0;
-// Z_RPNQuery *rpnquery = 0;
-// mp::odr odr;
-
-// int r = m_p->cql2rpn.query_transform(sr->query->u.type_104->u.cql,
-// &rpnquery, odr,
-// &addinfo);
-// if (r == -3)
-// {
-// yaz_log(YLOG_LOG, "No CQL to RPN table");
-// Z_APDU *f_apdu =
-// odr.create_searchResponse(
-// apdu_req,
-// YAZ_BIB1_TEMPORARY_SYSTEM_ERROR,
-// "Missing CQL to RPN spec");
-// package.response() = f_apdu;
-// return;
-// }
-// else if (r)
-// {
-// int error_code = yaz_diag_srw_to_bib1(r);
-
-// yaz_log(YLOG_LOG, "CQL Conversion error %d", r);
-// Z_APDU *f_apdu =
-// odr.create_searchResponse(apdu_req, error_code, addinfo);
-// package.response() = f_apdu;
-// return;
-// }
-// else
-// { // conversion OK
-
-// sr->query->which = Z_Query_type_1;
-// sr->query->u.type_1 = rpnquery;
-// package.request() = gdu;
-// }
-// }
-// }
-// package.move();
-// }
-
-// void yf::CQLtoRPN::configure(const xmlNode *ptr)
-// {
-
-// /*
-// <filter type="cql_rpn">
-// <conversion file="pqf.properties"/>
-// </filter>
-// */
-
-// std::string fname;
-// for (ptr = ptr->children; ptr; ptr = ptr->next)
-// {
-// if (ptr->type != XML_ELEMENT_NODE)
-// continue;
-// if (!strcmp((const char *) ptr->name, "conversion"))
-// {
-// const struct _xmlAttr *attr;
-// for (attr = ptr->properties; attr; attr = attr->next)
-// {
-// if (!strcmp((const char *) attr->name, "file"))
-// fname = mp::xml::get_text(attr);
-// else
-// throw mp::filter::FilterException(
-// "Bad attribute " + std::string((const char *)
-// attr->name));
-// }
-// }
-// else
-// {
-// throw mp::filter::FilterException("Bad element "
-// + std::string((const char *)
-// ptr->name));
-// }
-// }
-// if (fname.length() == 0)
-// {
-// throw mp::filter::FilterException("Missing conversion spec for "
-// "filter cql_rpn");
-// }
-
-// int error = 0;
-// if (!m_p->cql2rpn.parse_spec_file(fname.c_str(), &error))
-// {
-// throw mp::filter::FilterException("Bad or missing CQL to RPN spec "
-// + fname);
-// }
-// }
-
-
-
-