In tests use BOOST_AUTO_UNIT_TEST instead of BOOST_AUTO_TEST_CASE
[metaproxy-moved-to-github.git] / src / router_chain.hpp
index 294222e..033b277 100644 (file)
@@ -1,4 +1,4 @@
-/* $Id: router_chain.hpp,v 1.2 2005-10-26 10:55:26 marc Exp $
+/* $Id: router_chain.hpp,v 1.3 2005-11-10 23:10:42 adam Exp $
    Copyright (c) 2005, Index Data.
 
 %LICENSE%
@@ -7,40 +7,30 @@
 #ifndef ROUTER_CHAIN_HPP
 #define ROUTER_CHAIN_HPP
 
-#include <stdexcept>
-#include <list>
 
 #include "router.hpp"
 
+#include <boost/scoped_ptr.hpp>
+#include <stdexcept>
 
 namespace yp2 {
-    //namespace filter {
-    //    class Base;
-    //}
-    //class Package;
-    
-    
     class RouterChain : public Router {
+        class Rep;
     public:
-        RouterChain(){};
-        virtual ~RouterChain(){};
+        RouterChain();
+        virtual ~RouterChain();
         virtual const filter::Base *move(const filter::Base *filter,
-                                   const Package *package) const;
-
+                                         const Package *package) const;
+        
         RouterChain & append(const filter::Base &filter);
-
-    protected:
-        std::list<const filter::Base *> m_filter_list;
     private:
+        boost::scoped_ptr<Rep> m_p;
         /// disabled because class is singleton
         RouterChain(const RouterChain &);
 
         /// disabled because class is singleton
         RouterChain& operator=(const RouterChain &);
     };
-  
-
-  
 }
 
 #endif