+ /*
+ <filter type="cql_rpn">
+ <conversion file="pqf.properties"/>
+ </filter>
+ */
+
+ std::string fname;
+ for (xmlnode = xmlnode->children; xmlnode; xmlnode = xmlnode->next)
+ {
+ if (xmlnode->type != XML_ELEMENT_NODE)
+ continue;
+ if (!strcmp((const char *) xmlnode->name, "conversion"))
+ {
+ const struct _xmlAttr *attr;
+ for (attr = xmlnode->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 *)
+ xmlnode->name));
+ }
+ }
+ if (fname.length() == 0)
+ {
+ throw mp::filter::FilterException("Missing conversion configuration "
+ "for filter cql_rpn");
+ }
+
+ int error = 0;
+ if (!m_cql2rpn.parse_spec_file(fname.c_str(), &error))
+ {
+ throw mp::filter::FilterException("Bad or missing "
+ "CQL to RPN configuration "
+ + fname);
+ }