-/* $Id: test_filter2.cpp,v 1.11 2005-10-24 10:16:33 adam Exp $
+/* $Id: test_filter2.cpp,v 1.14 2005-10-29 22:23:36 marc Exp $
Copyright (c) 2005, Index Data.
%LICENSE%
#include "config.hpp"
#include "filter.hpp"
-#include "router.hpp"
+#include "router_chain.hpp"
#include "package.hpp"
#include <iostream>
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:
package.data() = package.data() * 2;
package.move();
};
+ const std::string type() const {
+ return "FilterConstant";
+ };
};
{
try {
FilterConstant fc;
- fc.name() = "FilterConstant";
FilterDouble fd;
- fd.name() = "FilterDouble";
{
yp2::RouterChain router1;
// test filter set/get/exception
- router1.rule(fc);
+ router1.append(fc);
- router1.rule(fd);
+ router1.append(fd);
yp2::Session session;
yp2::Origin origin;
{
yp2::RouterChain router2;
- router2.rule(fd);
- router2.rule(fc);
+ router2.append(fd);
+ router2.append(fc);
yp2::Session session;
yp2::Origin origin;