filter factory in working shape, see example in test_filer_factory.cpp
[metaproxy-moved-to-github.git] / src / test_filter2.cpp
index 9325f05..14aa299 100644 (file)
@@ -1,4 +1,4 @@
-/* $Id: test_filter2.cpp,v 1.13 2005-10-26 10:55:26 marc Exp $
+/* $Id: test_filter2.cpp,v 1.14 2005-10-29 22:23:36 marc Exp $
    Copyright (c) 2005, Index Data.
 
 %LICENSE%
@@ -27,6 +27,9 @@ public:
        package.data() = m_constant;
        package.move();
     };
+    const std::string type() const {
+        return "FilterConstant";
+    };
     void configure(const xmlNode* ptr = 0);
     int get_constant() const { return m_constant; };
 private:
@@ -115,6 +118,9 @@ public:
        package.data() = package.data() * 2;
        package.move();
     };
+    const std::string type() const {
+        return "FilterConstant";
+    };
 };
 
     
@@ -122,9 +128,7 @@ BOOST_AUTO_TEST_CASE( testfilter2_1 )
 {
     try {
        FilterConstant fc;
-        fc.name() = "FilterConstant";
        FilterDouble fd;
-        fd.name() = "FilterDouble";
 
        {
            yp2::RouterChain router1;