Copyright (c) 2005-2007, Index Data.
This file is part of Metaproxy.
Copyright (c) 2005-2007, Index Data.
This file is part of Metaproxy.
typedef std::map<std::string,
boost::shared_ptr<const mp::filter::Base > >
typedef std::map<std::string,
boost::shared_ptr<const mp::filter::Base > >
- void parse_xml_filters(xmlDocPtr doc, const xmlNode *node);
- void parse_xml_routes(xmlDocPtr doc, const xmlNode *node);
+ void parse_xml_filters(xmlDocPtr doc, const xmlNode *node,
+ bool test_only);
+ void parse_xml_routes(xmlDocPtr doc, const xmlNode *node,
+ bool test_only);
{
unsigned int filter_nr = 0;
while(node && mp::xml::check_element_mp(node, "filter"))
{
unsigned int filter_nr = 0;
while(node && mp::xml::check_element_mp(node, "filter"))
if (m_id_filter_map.find(id_value) != m_id_filter_map.end())
throw mp::XMLError("Filter " + id_value + " already defined");
if (m_id_filter_map.find(id_value) != m_id_filter_map.end())
throw mp::XMLError("Filter " + id_value + " already defined");
if (mp::xml::is_element_mp(node, "filters"))
{
parse_xml_filters(doc, mp::xml::jump_to_children(node,
if (mp::xml::is_element_mp(node, "filters"))
{
parse_xml_filters(doc, mp::xml::jump_to_children(node,
node = mp::xml::jump_to_next(node, XML_ELEMENT_NODE);
}
// process <routes> node which is expected third element node
mp::xml::check_element_mp(node, "routes");
node = mp::xml::jump_to_next(node, XML_ELEMENT_NODE);
}
// process <routes> node which is expected third element node
mp::xml::check_element_mp(node, "routes");
- parse_xml_routes(doc, mp::xml::jump_to_children(node, XML_ELEMENT_NODE));
+ parse_xml_routes(doc, mp::xml::jump_to_children(node, XML_ELEMENT_NODE),
+ test_only);