RouterFleXML now reads XML simple config and make proper runtime
[metaproxy-moved-to-github.git] / src / router_flexml.hpp
index be7b66d..d040664 100644 (file)
@@ -1,4 +1,4 @@
-/* $Id: router_flexml.hpp,v 1.10 2006-01-05 16:39:37 adam Exp $
+/* $Id: router_flexml.hpp,v 1.11 2006-01-09 13:43:59 adam Exp $
    Copyright (c) 2005, Index Data.
 
    %LICENSE%
@@ -18,13 +18,20 @@ namespace yp2
     {
         class Rep;
         class Route;
+        class Pos;
     public:
         RouterFleXML(std::string xmlconf, yp2::FactoryFilter &factory);
+        RouterFleXML(xmlDocPtr doc, yp2::FactoryFilter &factory);
         
         ~RouterFleXML();
-        
+
+#if ROUTE_POS
+        virtual RoutePos *createpos() const;
+#else
+        /// determines next Filter to use from current Filter and Package
         virtual const filter::Base *move(const filter::Base *filter,
                                          const Package *package) const;
+#endif
         class XMLError : public std::runtime_error {
         public:
             XMLError(const std::string msg) :