-/* $Id: filter_frontend_net.cpp,v 1.19 2006-06-10 14:29:12 adam Exp $
+/* $Id: filter_frontend_net.cpp,v 1.20 2006-08-30 09:56:41 marc Exp $
Copyright (c) 2005-2006, Index Data.
See the LICENSE file for details
m_no_requests = 0;
m_delete_flag = false;
m_package = package;
+ // TODO why is m_origin not set here someplace ?? MC ??
}
-/* $Id: package.cpp,v 1.13 2006-08-30 08:49:13 marc Exp $
+/* $Id: package.cpp,v 1.14 2006-08-30 09:56:41 marc Exp $
Copyright (c) 2005-2006, Index Data.
See the LICENSE file for details
{
}
-mp::Package::Package(mp::Session &session,
- const mp::Origin &origin, const mp::Origin &target)
- : m_session(session), m_origin(origin), m_target(target),
- m_route_pos(0), m_data(0)
-{
-}
mp::Package & mp::Package::copy_filter(const Package &p)
{
return *this;
}
-mp::Origin mp::Package::target() const
-{
- return m_target;
-}
-
-mp::Origin & mp::Package::target()
-{
- return m_target;
-}
-
-mp::Package & mp::Package::target(const Origin & target)
-{
- m_target = target;
- return *this;
-}
-
mp::Package & mp::Package::router(const mp::Router &router)
{
m_route_pos = router.createpos();
std::ostream& std::operator<<(std::ostream& os, mp::Package& p)
{
os << p.session().id() << " ";
- os << p.origin() << " ";
- os << p.target();
+ os << p.origin();
return os;
}
-/* $Id: package.hpp,v 1.20 2006-08-30 08:44:29 marc Exp $
+/* $Id: package.hpp,v 1.21 2006-08-30 09:56:41 marc Exp $
Copyright (c) 2005-2006, Index Data.
See the LICENSE file for details
Package(metaproxy_1::Session &session,
const metaproxy_1::Origin &origin);
-
- Package(metaproxy_1::Session &session,
- const metaproxy_1::Origin &origin,
- const metaproxy_1::Origin &target);
Package & copy_filter(const Package &p);
/// set function - can be chained
Package & origin(const Origin & origin);
- /// get function - right val in assignment
- Origin target() const;
-
- /// set function - left val in assignment
- Origin & target();
-
- /// set function - can be chained
- Package & target(const Origin & target);
-
Package & router(const Router &router);
yazpp_1::GDU &request();
private:
Session m_session;
Origin m_origin;
- Origin m_target;
RoutePos *m_route_pos;